@novu/api 3.14.0 → 3.14.1
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 +7 -3
- package/funcs/environmentsDiff.d.ts +19 -0
- package/funcs/environmentsDiff.d.ts.map +1 -0
- package/funcs/environmentsDiff.js +156 -0
- package/funcs/environmentsDiff.js.map +1 -0
- package/funcs/environmentsPublish.d.ts +19 -0
- package/funcs/environmentsPublish.d.ts.map +1 -0
- package/funcs/environmentsPublish.js +156 -0
- package/funcs/environmentsPublish.js.map +1 -0
- package/funcs/translationsMasterUpload.js +7 -0
- package/funcs/translationsMasterUpload.js.map +1 -1
- package/funcs/translationsUpload.js +8 -1
- package/funcs/translationsUpload.js.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +0 -1
- package/lib/matchers.js.map +1 -1
- package/lib/security.d.ts.map +1 -1
- package/lib/security.js +1 -2
- package/lib/security.js.map +1 -1
- package/models/components/chatstepresponsedto.d.ts +4 -0
- package/models/components/chatstepresponsedto.d.ts.map +1 -1
- package/models/components/chatstepresponsedto.js +1 -0
- package/models/components/chatstepresponsedto.js.map +1 -1
- package/models/components/customstepresponsedto.d.ts +4 -0
- package/models/components/customstepresponsedto.d.ts.map +1 -1
- package/models/components/customstepresponsedto.js +1 -0
- package/models/components/customstepresponsedto.js.map +1 -1
- package/models/components/delaystepresponsedto.d.ts +4 -0
- package/models/components/delaystepresponsedto.d.ts.map +1 -1
- package/models/components/delaystepresponsedto.js +1 -0
- package/models/components/delaystepresponsedto.js.map +1 -1
- package/models/components/dependencyreasonenum.d.ts +16 -0
- package/models/components/dependencyreasonenum.d.ts.map +1 -0
- package/models/components/dependencyreasonenum.js +50 -0
- package/models/components/dependencyreasonenum.js.map +1 -0
- package/models/components/diffactionenum.d.ts +19 -0
- package/models/components/diffactionenum.d.ts.map +1 -0
- package/models/components/diffactionenum.js +53 -0
- package/models/components/diffactionenum.js.map +1 -0
- package/models/components/diffenvironmentrequestdto.d.ts +15 -0
- package/models/components/diffenvironmentrequestdto.d.ts.map +1 -0
- package/models/components/diffenvironmentrequestdto.js +49 -0
- package/models/components/diffenvironmentrequestdto.js.map +1 -0
- package/models/components/diffenvironmentresponsedto.d.ts +27 -0
- package/models/components/diffenvironmentresponsedto.d.ts.map +1 -0
- package/models/components/diffenvironmentresponsedto.js +55 -0
- package/models/components/diffenvironmentresponsedto.js.map +1 -0
- package/models/components/diffsummarydto.d.ts +25 -0
- package/models/components/diffsummarydto.d.ts.map +1 -0
- package/models/components/diffsummarydto.js +53 -0
- package/models/components/diffsummarydto.js.map +1 -0
- package/models/components/digeststepresponsedto.d.ts +4 -0
- package/models/components/digeststepresponsedto.d.ts.map +1 -1
- package/models/components/digeststepresponsedto.js +1 -0
- package/models/components/digeststepresponsedto.js.map +1 -1
- package/models/components/emailcontroldto.d.ts +20 -0
- package/models/components/emailcontroldto.d.ts.map +1 -1
- package/models/components/emailcontroldto.js +14 -1
- package/models/components/emailcontroldto.js.map +1 -1
- package/models/components/emailstepresponsedto.d.ts +21 -0
- package/models/components/emailstepresponsedto.d.ts.map +1 -1
- package/models/components/emailstepresponsedto.js +12 -1
- package/models/components/emailstepresponsedto.js.map +1 -1
- package/models/components/environmentdiffsummarydto.d.ts +21 -0
- package/models/components/environmentdiffsummarydto.d.ts.map +1 -0
- package/models/components/environmentdiffsummarydto.js +52 -0
- package/models/components/environmentdiffsummarydto.js.map +1 -0
- package/models/components/failedworkflowdto.d.ts +30 -0
- package/models/components/failedworkflowdto.d.ts.map +1 -0
- package/models/components/failedworkflowdto.js +55 -0
- package/models/components/failedworkflowdto.js.map +1 -0
- package/models/components/inappstepresponsedto.d.ts +4 -0
- package/models/components/inappstepresponsedto.d.ts.map +1 -1
- package/models/components/inappstepresponsedto.js +1 -0
- package/models/components/inappstepresponsedto.js.map +1 -1
- package/models/components/index.d.ts +18 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +18 -0
- package/models/components/index.js.map +1 -1
- package/models/components/publishenvironmentrequestdto.d.ts +26 -0
- package/models/components/publishenvironmentrequestdto.d.ts.map +1 -0
- package/models/components/publishenvironmentrequestdto.js +52 -0
- package/models/components/publishenvironmentrequestdto.js.map +1 -0
- package/models/components/publishenvironmentresponsedto.d.ts +19 -0
- package/models/components/publishenvironmentresponsedto.d.ts.map +1 -0
- package/models/components/publishenvironmentresponsedto.js +53 -0
- package/models/components/publishenvironmentresponsedto.js.map +1 -0
- package/models/components/publishsummarydto.d.ts +25 -0
- package/models/components/publishsummarydto.d.ts.map +1 -0
- package/models/components/publishsummarydto.js +53 -0
- package/models/components/publishsummarydto.js.map +1 -0
- package/models/components/pushstepresponsedto.d.ts +4 -0
- package/models/components/pushstepresponsedto.d.ts.map +1 -1
- package/models/components/pushstepresponsedto.js +1 -0
- package/models/components/pushstepresponsedto.js.map +1 -1
- package/models/components/resourcedependencydto.d.ts +31 -0
- package/models/components/resourcedependencydto.d.ts.map +1 -0
- package/models/components/resourcedependencydto.js +56 -0
- package/models/components/resourcedependencydto.js.map +1 -0
- package/models/components/resourcediffdto.d.ts +159 -0
- package/models/components/resourcediffdto.d.ts.map +1 -0
- package/models/components/resourcediffdto.js +123 -0
- package/models/components/resourcediffdto.js.map +1 -0
- package/models/components/resourcediffresultdto.d.ts +133 -0
- package/models/components/resourcediffresultdto.d.ts.map +1 -0
- package/models/components/resourcediffresultdto.js +114 -0
- package/models/components/resourcediffresultdto.js.map +1 -0
- package/models/components/resourcetopublishdto.d.ts +21 -0
- package/models/components/resourcetopublishdto.d.ts.map +1 -0
- package/models/components/resourcetopublishdto.js +51 -0
- package/models/components/resourcetopublishdto.js.map +1 -0
- package/models/components/resourcetypeenum.d.ts +2 -0
- package/models/components/resourcetypeenum.d.ts.map +1 -1
- package/models/components/resourcetypeenum.js +3 -1
- package/models/components/resourcetypeenum.js.map +1 -1
- package/models/components/skippedworkflowdto.d.ts +26 -0
- package/models/components/skippedworkflowdto.d.ts.map +1 -0
- package/models/components/skippedworkflowdto.js +54 -0
- package/models/components/skippedworkflowdto.js.map +1 -0
- package/models/components/smsstepresponsedto.d.ts +4 -0
- package/models/components/smsstepresponsedto.d.ts.map +1 -1
- package/models/components/smsstepresponsedto.js +1 -0
- package/models/components/smsstepresponsedto.js.map +1 -1
- package/models/components/stepresponsedto.d.ts +4 -0
- package/models/components/stepresponsedto.d.ts.map +1 -1
- package/models/components/stepresponsedto.js +1 -0
- package/models/components/stepresponsedto.js.map +1 -1
- package/models/components/syncactionenum.d.ts +18 -0
- package/models/components/syncactionenum.d.ts.map +1 -0
- package/models/components/syncactionenum.js +52 -0
- package/models/components/syncactionenum.js.map +1 -0
- package/models/components/syncedworkflowdto.d.ts +27 -0
- package/models/components/syncedworkflowdto.d.ts.map +1 -0
- package/models/components/syncedworkflowdto.js +55 -0
- package/models/components/syncedworkflowdto.js.map +1 -0
- package/models/components/syncresultdto.d.ts +33 -0
- package/models/components/syncresultdto.d.ts.map +1 -0
- package/models/components/syncresultdto.js +58 -0
- package/models/components/syncresultdto.js.map +1 -0
- package/models/components/throttlestepresponsedto.d.ts +4 -0
- package/models/components/throttlestepresponsedto.d.ts.map +1 -1
- package/models/components/throttlestepresponsedto.js +1 -0
- package/models/components/throttlestepresponsedto.js.map +1 -1
- package/models/components/uicomponentenum.d.ts +4 -3
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +3 -2
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/workflowcreationsourceenum.d.ts +1 -0
- package/models/components/workflowcreationsourceenum.d.ts.map +1 -1
- package/models/components/workflowcreationsourceenum.js +1 -0
- package/models/components/workflowcreationsourceenum.js.map +1 -1
- package/models/operations/environmentscontrollerdiffenvironment.d.ts +37 -0
- package/models/operations/environmentscontrollerdiffenvironment.d.ts.map +1 -0
- package/models/operations/environmentscontrollerdiffenvironment.js +73 -0
- package/models/operations/environmentscontrollerdiffenvironment.js.map +1 -0
- package/models/operations/environmentscontrollerpublishenvironment.d.ts +37 -0
- package/models/operations/environmentscontrollerpublishenvironment.d.ts.map +1 -0
- package/models/operations/environmentscontrollerpublishenvironment.js +73 -0
- package/models/operations/environmentscontrollerpublishenvironment.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/package.json +1 -1
- package/sdk/environments.d.ts +14 -0
- package/sdk/environments.d.ts.map +1 -1
- package/sdk/environments.js +20 -0
- package/sdk/environments.js.map +1 -1
- package/src/funcs/environmentsDiff.ts +243 -0
- package/src/funcs/environmentsPublish.ts +243 -0
- package/src/funcs/translationsMasterUpload.ts +12 -0
- package/src/funcs/translationsUpload.ts +12 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/matchers.ts +3 -2
- package/src/lib/security.ts +1 -2
- package/src/models/components/chatstepresponsedto.ts +5 -0
- package/src/models/components/customstepresponsedto.ts +5 -0
- package/src/models/components/delaystepresponsedto.ts +5 -0
- package/src/models/components/dependencyreasonenum.ts +23 -0
- package/src/models/components/diffactionenum.ts +26 -0
- package/src/models/components/diffenvironmentrequestdto.ts +34 -0
- package/src/models/components/diffenvironmentresponsedto.ts +57 -0
- package/src/models/components/diffsummarydto.ts +49 -0
- package/src/models/components/digeststepresponsedto.ts +5 -0
- package/src/models/components/emailcontroldto.ts +26 -0
- package/src/models/components/emailstepresponsedto.ts +31 -0
- package/src/models/components/environmentdiffsummarydto.ts +44 -0
- package/src/models/components/failedworkflowdto.ts +58 -0
- package/src/models/components/inappstepresponsedto.ts +5 -0
- package/src/models/components/index.ts +18 -0
- package/src/models/components/publishenvironmentrequestdto.ts +53 -0
- package/src/models/components/publishenvironmentresponsedto.ts +44 -0
- package/src/models/components/publishsummarydto.ts +49 -0
- package/src/models/components/pushstepresponsedto.ts +5 -0
- package/src/models/components/resourcedependencydto.ts +62 -0
- package/src/models/components/resourcediffdto.ts +305 -0
- package/src/models/components/resourcediffresultdto.ts +277 -0
- package/src/models/components/resourcetopublishdto.ts +44 -0
- package/src/models/components/resourcetypeenum.ts +4 -0
- package/src/models/components/skippedworkflowdto.ts +53 -0
- package/src/models/components/smsstepresponsedto.ts +5 -0
- package/src/models/components/stepresponsedto.ts +5 -0
- package/src/models/components/syncactionenum.ts +25 -0
- package/src/models/components/syncedworkflowdto.ts +57 -0
- package/src/models/components/syncresultdto.ts +70 -0
- package/src/models/components/throttlestepresponsedto.ts +5 -0
- package/src/models/components/uicomponentenum.ts +9 -5
- package/src/models/components/workflowcreationsourceenum.ts +1 -0
- package/src/models/operations/environmentscontrollerdiffenvironment.ts +98 -0
- package/src/models/operations/environmentscontrollerpublishenvironment.ts +99 -0
- package/src/models/operations/index.ts +2 -0
- package/src/sdk/environments.ts +44 -0
- package/_speakeasy/.github/action-inputs-config.json +0 -53
- package/_speakeasy/.github/action-security-config.json +0 -88
- package/codeSamples.json +0 -1772
- package/examples/package-lock.json +0 -610
- package/examples/package.json +0 -18
- package/sources/code-samples.json +0 -2105
- package/sources/json-development.json +0 -55438
- package/sources/openapi.sdk.json +0 -13193
- package/tsconfig.json +0 -40
|
@@ -35,6 +35,20 @@ export type EmailStepResponseDtoEditorType = ClosedEnum<
|
|
|
35
35
|
typeof EmailStepResponseDtoEditorType
|
|
36
36
|
>;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Type of renderer to use (raw HTML or React Email step resolver)
|
|
40
|
+
*/
|
|
41
|
+
export const EmailStepResponseDtoRendererType = {
|
|
42
|
+
Html: "html",
|
|
43
|
+
ReactEmail: "react-email",
|
|
44
|
+
} as const;
|
|
45
|
+
/**
|
|
46
|
+
* Type of renderer to use (raw HTML or React Email step resolver)
|
|
47
|
+
*/
|
|
48
|
+
export type EmailStepResponseDtoRendererType = ClosedEnum<
|
|
49
|
+
typeof EmailStepResponseDtoRendererType
|
|
50
|
+
>;
|
|
51
|
+
|
|
38
52
|
/**
|
|
39
53
|
* Control values for the email step
|
|
40
54
|
*/
|
|
@@ -55,6 +69,10 @@ export type EmailStepResponseDtoControlValues = {
|
|
|
55
69
|
* Type of editor to use for the body.
|
|
56
70
|
*/
|
|
57
71
|
editorType: EmailStepResponseDtoEditorType;
|
|
72
|
+
/**
|
|
73
|
+
* Type of renderer to use (raw HTML or React Email step resolver)
|
|
74
|
+
*/
|
|
75
|
+
rendererType: EmailStepResponseDtoRendererType;
|
|
58
76
|
/**
|
|
59
77
|
* Disable sanitization of the output.
|
|
60
78
|
*/
|
|
@@ -115,6 +133,10 @@ export type EmailStepResponseDto = {
|
|
|
115
133
|
* Issues associated with the step
|
|
116
134
|
*/
|
|
117
135
|
issues?: StepIssuesDto | undefined;
|
|
136
|
+
/**
|
|
137
|
+
* Hash identifying the deployed Cloudflare Worker for this step
|
|
138
|
+
*/
|
|
139
|
+
stepResolverHash?: string | undefined;
|
|
118
140
|
};
|
|
119
141
|
|
|
120
142
|
/** @internal */
|
|
@@ -122,6 +144,11 @@ export const EmailStepResponseDtoEditorType$inboundSchema: z.ZodNativeEnum<
|
|
|
122
144
|
typeof EmailStepResponseDtoEditorType
|
|
123
145
|
> = z.nativeEnum(EmailStepResponseDtoEditorType);
|
|
124
146
|
|
|
147
|
+
/** @internal */
|
|
148
|
+
export const EmailStepResponseDtoRendererType$inboundSchema: z.ZodNativeEnum<
|
|
149
|
+
typeof EmailStepResponseDtoRendererType
|
|
150
|
+
> = z.nativeEnum(EmailStepResponseDtoRendererType);
|
|
151
|
+
|
|
125
152
|
/** @internal */
|
|
126
153
|
export const EmailStepResponseDtoControlValues$inboundSchema: z.ZodType<
|
|
127
154
|
EmailStepResponseDtoControlValues,
|
|
@@ -133,6 +160,9 @@ export const EmailStepResponseDtoControlValues$inboundSchema: z.ZodType<
|
|
|
133
160
|
subject: z.string(),
|
|
134
161
|
body: z.string().default(""),
|
|
135
162
|
editorType: EmailStepResponseDtoEditorType$inboundSchema.default("block"),
|
|
163
|
+
rendererType: EmailStepResponseDtoRendererType$inboundSchema.default(
|
|
164
|
+
"html",
|
|
165
|
+
),
|
|
136
166
|
disableOutputSanitization: z.boolean().default(false),
|
|
137
167
|
layoutId: z.nullable(z.string()).optional(),
|
|
138
168
|
}).catchall(z.any()),
|
|
@@ -169,6 +199,7 @@ export const EmailStepResponseDto$inboundSchema: z.ZodType<
|
|
|
169
199
|
workflowId: z.string(),
|
|
170
200
|
workflowDatabaseId: z.string(),
|
|
171
201
|
issues: StepIssuesDto$inboundSchema.optional(),
|
|
202
|
+
stepResolverHash: z.string().optional(),
|
|
172
203
|
}).transform((v) => {
|
|
173
204
|
return remap$(v, {
|
|
174
205
|
"_id": "id",
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 EnvironmentDiffSummaryDto = {
|
|
11
|
+
/**
|
|
12
|
+
* Total number of entities compared
|
|
13
|
+
*/
|
|
14
|
+
totalEntities: number;
|
|
15
|
+
/**
|
|
16
|
+
* Total number of changes detected
|
|
17
|
+
*/
|
|
18
|
+
totalChanges: number;
|
|
19
|
+
/**
|
|
20
|
+
* Whether any changes were detected
|
|
21
|
+
*/
|
|
22
|
+
hasChanges: boolean;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const EnvironmentDiffSummaryDto$inboundSchema: z.ZodType<
|
|
27
|
+
EnvironmentDiffSummaryDto,
|
|
28
|
+
z.ZodTypeDef,
|
|
29
|
+
unknown
|
|
30
|
+
> = z.object({
|
|
31
|
+
totalEntities: z.number(),
|
|
32
|
+
totalChanges: z.number(),
|
|
33
|
+
hasChanges: z.boolean(),
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function environmentDiffSummaryDtoFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<EnvironmentDiffSummaryDto, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => EnvironmentDiffSummaryDto$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'EnvironmentDiffSummaryDto' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ResourceTypeEnum,
|
|
11
|
+
ResourceTypeEnum$inboundSchema,
|
|
12
|
+
} from "./resourcetypeenum.js";
|
|
13
|
+
|
|
14
|
+
export type FailedWorkflowDto = {
|
|
15
|
+
/**
|
|
16
|
+
* Type of the layout
|
|
17
|
+
*/
|
|
18
|
+
resourceType: ResourceTypeEnum;
|
|
19
|
+
/**
|
|
20
|
+
* Resource ID
|
|
21
|
+
*/
|
|
22
|
+
resourceId: string;
|
|
23
|
+
/**
|
|
24
|
+
* Resource name
|
|
25
|
+
*/
|
|
26
|
+
resourceName: string;
|
|
27
|
+
/**
|
|
28
|
+
* Error message
|
|
29
|
+
*/
|
|
30
|
+
error: string;
|
|
31
|
+
/**
|
|
32
|
+
* Error stack trace
|
|
33
|
+
*/
|
|
34
|
+
stack?: string | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/** @internal */
|
|
38
|
+
export const FailedWorkflowDto$inboundSchema: z.ZodType<
|
|
39
|
+
FailedWorkflowDto,
|
|
40
|
+
z.ZodTypeDef,
|
|
41
|
+
unknown
|
|
42
|
+
> = z.object({
|
|
43
|
+
resourceType: ResourceTypeEnum$inboundSchema,
|
|
44
|
+
resourceId: z.string(),
|
|
45
|
+
resourceName: z.string(),
|
|
46
|
+
error: z.string(),
|
|
47
|
+
stack: z.string().optional(),
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
export function failedWorkflowDtoFromJSON(
|
|
51
|
+
jsonString: string,
|
|
52
|
+
): SafeParseResult<FailedWorkflowDto, SDKValidationError> {
|
|
53
|
+
return safeParse(
|
|
54
|
+
jsonString,
|
|
55
|
+
(x) => FailedWorkflowDto$inboundSchema.parse(JSON.parse(x)),
|
|
56
|
+
`Failed to parse 'FailedWorkflowDto' from JSON`,
|
|
57
|
+
);
|
|
58
|
+
}
|
|
@@ -114,6 +114,10 @@ export type InAppStepResponseDto = {
|
|
|
114
114
|
* Issues associated with the step
|
|
115
115
|
*/
|
|
116
116
|
issues?: StepIssuesDto | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* Hash identifying the deployed Cloudflare Worker for this step
|
|
119
|
+
*/
|
|
120
|
+
stepResolverHash?: string | undefined;
|
|
117
121
|
};
|
|
118
122
|
|
|
119
123
|
/** @internal */
|
|
@@ -166,6 +170,7 @@ export const InAppStepResponseDto$inboundSchema: z.ZodType<
|
|
|
166
170
|
workflowId: z.string(),
|
|
167
171
|
workflowDatabaseId: z.string(),
|
|
168
172
|
issues: StepIssuesDto$inboundSchema.optional(),
|
|
173
|
+
stepResolverHash: z.string().optional(),
|
|
169
174
|
}).transform((v) => {
|
|
170
175
|
return remap$(v, {
|
|
171
176
|
"_id": "id",
|
|
@@ -73,6 +73,11 @@ export * from "./deletetopicresponsedto.js";
|
|
|
73
73
|
export * from "./deletetopicsubscriberidentifierdto.js";
|
|
74
74
|
export * from "./deletetopicsubscriptionsrequestdto.js";
|
|
75
75
|
export * from "./deletetopicsubscriptionsresponsedto.js";
|
|
76
|
+
export * from "./dependencyreasonenum.js";
|
|
77
|
+
export * from "./diffactionenum.js";
|
|
78
|
+
export * from "./diffenvironmentrequestdto.js";
|
|
79
|
+
export * from "./diffenvironmentresponsedto.js";
|
|
80
|
+
export * from "./diffsummarydto.js";
|
|
76
81
|
export * from "./digestcontroldto.js";
|
|
77
82
|
export * from "./digestcontrolsmetadataresponsedto.js";
|
|
78
83
|
export * from "./digestmetadatadto.js";
|
|
@@ -95,11 +100,13 @@ export * from "./emailcontrolsmetadataresponsedto.js";
|
|
|
95
100
|
export * from "./emaillayoutrenderoutput.js";
|
|
96
101
|
export * from "./emailstepresponsedto.js";
|
|
97
102
|
export * from "./emailstepupsertdto.js";
|
|
103
|
+
export * from "./environmentdiffsummarydto.js";
|
|
98
104
|
export * from "./environmentresponsedto.js";
|
|
99
105
|
export * from "./eventbody.js";
|
|
100
106
|
export * from "./executiondetailssourceenum.js";
|
|
101
107
|
export * from "./executiondetailsstatusenum.js";
|
|
102
108
|
export * from "./failedoperationdto.js";
|
|
109
|
+
export * from "./failedworkflowdto.js";
|
|
103
110
|
export * from "./feedresponsedto.js";
|
|
104
111
|
export * from "./fieldfilterpartdto.js";
|
|
105
112
|
export * from "./generatechatoauthurlrequestdto.js";
|
|
@@ -177,6 +184,9 @@ export * from "./preferencelevelenum.js";
|
|
|
177
184
|
export * from "./preferenceoverridesourceenum.js";
|
|
178
185
|
export * from "./preferencesrequestdto.js";
|
|
179
186
|
export * from "./providersidenum.js";
|
|
187
|
+
export * from "./publishenvironmentrequestdto.js";
|
|
188
|
+
export * from "./publishenvironmentresponsedto.js";
|
|
189
|
+
export * from "./publishsummarydto.js";
|
|
180
190
|
export * from "./pushcontroldto.js";
|
|
181
191
|
export * from "./pushcontrolsmetadataresponsedto.js";
|
|
182
192
|
export * from "./pushstepresponsedto.js";
|
|
@@ -184,12 +194,17 @@ export * from "./pushstepupsertdto.js";
|
|
|
184
194
|
export * from "./redirectdto.js";
|
|
185
195
|
export * from "./removesubscriberresponsedto.js";
|
|
186
196
|
export * from "./replycallback.js";
|
|
197
|
+
export * from "./resourcedependencydto.js";
|
|
198
|
+
export * from "./resourcediffdto.js";
|
|
199
|
+
export * from "./resourcediffresultdto.js";
|
|
187
200
|
export * from "./resourceoriginenum.js";
|
|
201
|
+
export * from "./resourcetopublishdto.js";
|
|
188
202
|
export * from "./resourcetypeenum.js";
|
|
189
203
|
export * from "./runtimeissuedto.js";
|
|
190
204
|
export * from "./scheduledto.js";
|
|
191
205
|
export * from "./security.js";
|
|
192
206
|
export * from "./severitylevelenum.js";
|
|
207
|
+
export * from "./skippedworkflowdto.js";
|
|
193
208
|
export * from "./slackchannelendpointdto.js";
|
|
194
209
|
export * from "./slackuserendpointdto.js";
|
|
195
210
|
export * from "./smscontroldto.js";
|
|
@@ -220,6 +235,9 @@ export * from "./subscriptionerrordto.js";
|
|
|
220
235
|
export * from "./subscriptionpreferencedto.js";
|
|
221
236
|
export * from "./subscriptionresponsedto.js";
|
|
222
237
|
export * from "./subscriptionsdeleteerrordto.js";
|
|
238
|
+
export * from "./syncactionenum.js";
|
|
239
|
+
export * from "./syncedworkflowdto.js";
|
|
240
|
+
export * from "./syncresultdto.js";
|
|
223
241
|
export * from "./syncworkflowdto.js";
|
|
224
242
|
export * from "./tenantpayloaddto.js";
|
|
225
243
|
export * from "./textalignenum.js";
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import {
|
|
7
|
+
ResourceToPublishDto,
|
|
8
|
+
ResourceToPublishDto$Outbound,
|
|
9
|
+
ResourceToPublishDto$outboundSchema,
|
|
10
|
+
} from "./resourcetopublishdto.js";
|
|
11
|
+
|
|
12
|
+
export type PublishEnvironmentRequestDto = {
|
|
13
|
+
/**
|
|
14
|
+
* Source environment ID to sync from. Defaults to the Development environment if not provided.
|
|
15
|
+
*/
|
|
16
|
+
sourceEnvironmentId?: string | undefined;
|
|
17
|
+
/**
|
|
18
|
+
* Perform a dry run without making actual changes
|
|
19
|
+
*/
|
|
20
|
+
dryRun?: boolean | undefined;
|
|
21
|
+
/**
|
|
22
|
+
* Array of specific resources to publish. If not provided, all resources will be published.
|
|
23
|
+
*/
|
|
24
|
+
resources?: Array<ResourceToPublishDto> | undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export type PublishEnvironmentRequestDto$Outbound = {
|
|
29
|
+
sourceEnvironmentId?: string | undefined;
|
|
30
|
+
dryRun: boolean;
|
|
31
|
+
resources?: Array<ResourceToPublishDto$Outbound> | undefined;
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
/** @internal */
|
|
35
|
+
export const PublishEnvironmentRequestDto$outboundSchema: z.ZodType<
|
|
36
|
+
PublishEnvironmentRequestDto$Outbound,
|
|
37
|
+
z.ZodTypeDef,
|
|
38
|
+
PublishEnvironmentRequestDto
|
|
39
|
+
> = z.object({
|
|
40
|
+
sourceEnvironmentId: z.string().optional(),
|
|
41
|
+
dryRun: z.boolean().default(false),
|
|
42
|
+
resources: z.array(ResourceToPublishDto$outboundSchema).optional(),
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
export function publishEnvironmentRequestDtoToJSON(
|
|
46
|
+
publishEnvironmentRequestDto: PublishEnvironmentRequestDto,
|
|
47
|
+
): string {
|
|
48
|
+
return JSON.stringify(
|
|
49
|
+
PublishEnvironmentRequestDto$outboundSchema.parse(
|
|
50
|
+
publishEnvironmentRequestDto,
|
|
51
|
+
),
|
|
52
|
+
);
|
|
53
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
PublishSummaryDto,
|
|
11
|
+
PublishSummaryDto$inboundSchema,
|
|
12
|
+
} from "./publishsummarydto.js";
|
|
13
|
+
import { SyncResultDto, SyncResultDto$inboundSchema } from "./syncresultdto.js";
|
|
14
|
+
|
|
15
|
+
export type PublishEnvironmentResponseDto = {
|
|
16
|
+
/**
|
|
17
|
+
* Sync results by resource type
|
|
18
|
+
*/
|
|
19
|
+
results: Array<SyncResultDto>;
|
|
20
|
+
/**
|
|
21
|
+
* Summary of the sync operation
|
|
22
|
+
*/
|
|
23
|
+
summary: PublishSummaryDto;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
/** @internal */
|
|
27
|
+
export const PublishEnvironmentResponseDto$inboundSchema: z.ZodType<
|
|
28
|
+
PublishEnvironmentResponseDto,
|
|
29
|
+
z.ZodTypeDef,
|
|
30
|
+
unknown
|
|
31
|
+
> = z.object({
|
|
32
|
+
results: z.array(SyncResultDto$inboundSchema),
|
|
33
|
+
summary: PublishSummaryDto$inboundSchema,
|
|
34
|
+
});
|
|
35
|
+
|
|
36
|
+
export function publishEnvironmentResponseDtoFromJSON(
|
|
37
|
+
jsonString: string,
|
|
38
|
+
): SafeParseResult<PublishEnvironmentResponseDto, SDKValidationError> {
|
|
39
|
+
return safeParse(
|
|
40
|
+
jsonString,
|
|
41
|
+
(x) => PublishEnvironmentResponseDto$inboundSchema.parse(JSON.parse(x)),
|
|
42
|
+
`Failed to parse 'PublishEnvironmentResponseDto' from JSON`,
|
|
43
|
+
);
|
|
44
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 PublishSummaryDto = {
|
|
11
|
+
/**
|
|
12
|
+
* Number of resources processed
|
|
13
|
+
*/
|
|
14
|
+
resources: number;
|
|
15
|
+
/**
|
|
16
|
+
* Number of successful syncs
|
|
17
|
+
*/
|
|
18
|
+
successful: number;
|
|
19
|
+
/**
|
|
20
|
+
* Number of failed syncs
|
|
21
|
+
*/
|
|
22
|
+
failed: number;
|
|
23
|
+
/**
|
|
24
|
+
* Number of skipped resources
|
|
25
|
+
*/
|
|
26
|
+
skipped: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const PublishSummaryDto$inboundSchema: z.ZodType<
|
|
31
|
+
PublishSummaryDto,
|
|
32
|
+
z.ZodTypeDef,
|
|
33
|
+
unknown
|
|
34
|
+
> = z.object({
|
|
35
|
+
resources: z.number(),
|
|
36
|
+
successful: z.number(),
|
|
37
|
+
failed: z.number(),
|
|
38
|
+
skipped: z.number(),
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function publishSummaryDtoFromJSON(
|
|
42
|
+
jsonString: string,
|
|
43
|
+
): SafeParseResult<PublishSummaryDto, SDKValidationError> {
|
|
44
|
+
return safeParse(
|
|
45
|
+
jsonString,
|
|
46
|
+
(x) => PublishSummaryDto$inboundSchema.parse(JSON.parse(x)),
|
|
47
|
+
`Failed to parse 'PublishSummaryDto' from JSON`,
|
|
48
|
+
);
|
|
49
|
+
}
|
|
@@ -88,6 +88,10 @@ export type PushStepResponseDto = {
|
|
|
88
88
|
* Issues associated with the step
|
|
89
89
|
*/
|
|
90
90
|
issues?: StepIssuesDto | undefined;
|
|
91
|
+
/**
|
|
92
|
+
* Hash identifying the deployed Cloudflare Worker for this step
|
|
93
|
+
*/
|
|
94
|
+
stepResolverHash?: string | undefined;
|
|
91
95
|
};
|
|
92
96
|
|
|
93
97
|
/** @internal */
|
|
@@ -134,6 +138,7 @@ export const PushStepResponseDto$inboundSchema: z.ZodType<
|
|
|
134
138
|
workflowId: z.string(),
|
|
135
139
|
workflowDatabaseId: z.string(),
|
|
136
140
|
issues: StepIssuesDto$inboundSchema.optional(),
|
|
141
|
+
stepResolverHash: z.string().optional(),
|
|
137
142
|
}).transform((v) => {
|
|
138
143
|
return remap$(v, {
|
|
139
144
|
"_id": "id",
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
7
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DependencyReasonEnum,
|
|
11
|
+
DependencyReasonEnum$inboundSchema,
|
|
12
|
+
} from "./dependencyreasonenum.js";
|
|
13
|
+
import {
|
|
14
|
+
ResourceTypeEnum,
|
|
15
|
+
ResourceTypeEnum$inboundSchema,
|
|
16
|
+
} from "./resourcetypeenum.js";
|
|
17
|
+
|
|
18
|
+
export type ResourceDependencyDto = {
|
|
19
|
+
/**
|
|
20
|
+
* Type of the layout
|
|
21
|
+
*/
|
|
22
|
+
resourceType: ResourceTypeEnum;
|
|
23
|
+
/**
|
|
24
|
+
* ID of the dependent resource
|
|
25
|
+
*/
|
|
26
|
+
resourceId: string;
|
|
27
|
+
/**
|
|
28
|
+
* Name of the dependent resource
|
|
29
|
+
*/
|
|
30
|
+
resourceName: string;
|
|
31
|
+
/**
|
|
32
|
+
* Whether this dependency blocks the operation
|
|
33
|
+
*/
|
|
34
|
+
isBlocking: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Reason for the dependency
|
|
37
|
+
*/
|
|
38
|
+
reason: DependencyReasonEnum;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/** @internal */
|
|
42
|
+
export const ResourceDependencyDto$inboundSchema: z.ZodType<
|
|
43
|
+
ResourceDependencyDto,
|
|
44
|
+
z.ZodTypeDef,
|
|
45
|
+
unknown
|
|
46
|
+
> = z.object({
|
|
47
|
+
resourceType: ResourceTypeEnum$inboundSchema,
|
|
48
|
+
resourceId: z.string(),
|
|
49
|
+
resourceName: z.string(),
|
|
50
|
+
isBlocking: z.boolean(),
|
|
51
|
+
reason: DependencyReasonEnum$inboundSchema,
|
|
52
|
+
});
|
|
53
|
+
|
|
54
|
+
export function resourceDependencyDtoFromJSON(
|
|
55
|
+
jsonString: string,
|
|
56
|
+
): SafeParseResult<ResourceDependencyDto, SDKValidationError> {
|
|
57
|
+
return safeParse(
|
|
58
|
+
jsonString,
|
|
59
|
+
(x) => ResourceDependencyDto$inboundSchema.parse(JSON.parse(x)),
|
|
60
|
+
`Failed to parse 'ResourceDependencyDto' from JSON`,
|
|
61
|
+
);
|
|
62
|
+
}
|