@novu/api 0.0.1-alpha.83 → 0.0.1-alpha.88
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 +0 -30
- package/hooks/novu-custom-hook.js +1 -1
- package/hooks/novu-custom-hook.js.map +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/index.d.ts +0 -7
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +0 -7
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +8 -8
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +14 -13
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/notificationfeeditemdto.d.ts +4 -4
- package/models/components/notificationfeeditemdto.d.ts.map +1 -1
- package/models/components/notificationfeeditemdto.js +2 -2
- package/models/components/notificationfeeditemdto.js.map +1 -1
- package/models/components/stepfilter.d.ts +8 -8
- package/models/components/stepfilter.d.ts.map +1 -1
- package/models/components/stepfilter.js +13 -13
- package/models/components/stepfilter.js.map +1 -1
- package/models/components/topicpayloaddto.d.ts +27 -2
- package/models/components/topicpayloaddto.d.ts.map +1 -1
- package/models/components/topicpayloaddto.js +22 -4
- package/models/components/topicpayloaddto.js.map +1 -1
- package/models/components/triggereventrequestdto.d.ts +28 -4
- package/models/components/triggereventrequestdto.d.ts.map +1 -1
- package/models/components/triggereventrequestdto.js +57 -5
- package/models/components/triggereventrequestdto.js.map +1 -1
- package/models/components/triggereventresponsedto.d.ts +8 -8
- package/models/components/triggereventresponsedto.d.ts.map +1 -1
- package/models/components/triggereventresponsedto.js +14 -13
- package/models/components/triggereventresponsedto.js.map +1 -1
- package/models/operations/index.d.ts +0 -9
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -9
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -9
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -15
- package/sdk/sdk.js.map +1 -1
- package/src/hooks/novu-custom-hook.ts +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/index.ts +0 -7
- package/src/models/components/integrationresponsedto.ts +14 -18
- package/src/models/components/notificationfeeditemdto.ts +4 -4
- package/src/models/components/stepfilter.ts +16 -15
- package/src/models/components/topicpayloaddto.ts +30 -8
- package/src/models/components/triggereventrequestdto.ts +109 -17
- package/src/models/components/triggereventresponsedto.ts +14 -18
- package/src/models/operations/index.ts +0 -9
- package/src/sdk/sdk.ts +0 -18
- package/docs/sdks/apikeys/README.md +0 -79
- package/docs/sdks/environments/README.md +0 -154
- package/docs/sdks/executiondetails/README.md +0 -84
- package/docs/sdks/workflowgroups/README.md +0 -382
- package/funcs/environmentsApiKeysList.d.ts +0 -12
- package/funcs/environmentsApiKeysList.d.ts.map +0 -1
- package/funcs/environmentsApiKeysList.js +0 -97
- package/funcs/environmentsApiKeysList.js.map +0 -1
- package/funcs/environmentsList.d.ts +0 -12
- package/funcs/environmentsList.d.ts.map +0 -1
- package/funcs/environmentsList.js +0 -97
- package/funcs/environmentsList.js.map +0 -1
- package/funcs/environmentsRetrieve.d.ts +0 -12
- package/funcs/environmentsRetrieve.d.ts.map +0 -1
- package/funcs/environmentsRetrieve.js +0 -97
- package/funcs/environmentsRetrieve.js.map +0 -1
- package/funcs/executionDetailsRetrieve.d.ts +0 -12
- package/funcs/executionDetailsRetrieve.d.ts.map +0 -1
- package/funcs/executionDetailsRetrieve.js +0 -117
- package/funcs/executionDetailsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsCreate.d.ts +0 -16
- package/funcs/workflowGroupsCreate.d.ts.map +0 -1
- package/funcs/workflowGroupsCreate.js +0 -111
- package/funcs/workflowGroupsCreate.js.map +0 -1
- package/funcs/workflowGroupsDelete.d.ts +0 -15
- package/funcs/workflowGroupsDelete.d.ts.map +0 -1
- package/funcs/workflowGroupsDelete.js +0 -120
- package/funcs/workflowGroupsDelete.js.map +0 -1
- package/funcs/workflowGroupsList.d.ts +0 -15
- package/funcs/workflowGroupsList.d.ts.map +0 -1
- package/funcs/workflowGroupsList.js +0 -100
- package/funcs/workflowGroupsList.js.map +0 -1
- package/funcs/workflowGroupsRetrieve.d.ts +0 -15
- package/funcs/workflowGroupsRetrieve.d.ts.map +0 -1
- package/funcs/workflowGroupsRetrieve.js +0 -120
- package/funcs/workflowGroupsRetrieve.js.map +0 -1
- package/funcs/workflowGroupsUpdate.d.ts +0 -16
- package/funcs/workflowGroupsUpdate.d.ts.map +0 -1
- package/funcs/workflowGroupsUpdate.js +0 -124
- package/funcs/workflowGroupsUpdate.js.map +0 -1
- package/models/components/apikey.d.ts +0 -31
- package/models/components/apikey.d.ts.map +0 -1
- package/models/components/apikey.js +0 -71
- package/models/components/apikey.js.map +0 -1
- package/models/components/createnotificationgrouprequestdto.d.ts +0 -29
- package/models/components/createnotificationgrouprequestdto.d.ts.map +0 -1
- package/models/components/createnotificationgrouprequestdto.js +0 -59
- package/models/components/createnotificationgrouprequestdto.js.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.d.ts +0 -66
- package/models/components/deletenotificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/deletenotificationgroupresponsedto.js +0 -83
- package/models/components/deletenotificationgroupresponsedto.js.map +0 -1
- package/models/components/environmentresponsedto.d.ts +0 -41
- package/models/components/environmentresponsedto.d.ts.map +0 -1
- package/models/components/environmentresponsedto.js +0 -84
- package/models/components/environmentresponsedto.js.map +0 -1
- package/models/components/executiondetailsresponsedto.d.ts +0 -176
- package/models/components/executiondetailsresponsedto.d.ts.map +0 -1
- package/models/components/executiondetailsresponsedto.js +0 -187
- package/models/components/executiondetailsresponsedto.js.map +0 -1
- package/models/components/notificationgroupresponsedto.d.ts +0 -37
- package/models/components/notificationgroupresponsedto.d.ts.map +0 -1
- package/models/components/notificationgroupresponsedto.js +0 -82
- package/models/components/notificationgroupresponsedto.js.map +0 -1
- package/models/components/triggerrecipientstypeenum.d.ts +0 -28
- package/models/components/triggerrecipientstypeenum.d.ts.map +0 -1
- package/models/components/triggerrecipientstypeenum.js +0 -50
- package/models/components/triggerrecipientstypeenum.js.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts +0 -36
- package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js +0 -73
- package/models/operations/environmentscontrollerv1getcurrentenvironment.js.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listmyenvironments.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listmyenvironments.js +0 -73
- package/models/operations/environmentscontrollerv1listmyenvironments.js.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts +0 -36
- package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts.map +0 -1
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js +0 -75
- package/models/operations/environmentscontrollerv1listorganizationapikeys.js.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts +0 -63
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts.map +0 -1
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js +0 -106
- package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts +0 -36
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js +0 -75
- package/models/operations/notificationgroupscontrollercreatenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts +0 -61
- package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js +0 -104
- package/models/operations/notificationgroupscontrollergetnotificationgroup.js.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts +0 -36
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js +0 -75
- package/models/operations/notificationgroupscontrollerlistnotificationgroups.js.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts +0 -63
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts.map +0 -1
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js +0 -114
- package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js.map +0 -1
- package/sdk/apikeys.d.ts +0 -9
- package/sdk/apikeys.d.ts.map +0 -1
- package/sdk/apikeys.js +0 -19
- package/sdk/apikeys.js.map +0 -1
- package/sdk/environments.d.ts +0 -16
- package/sdk/environments.d.ts.map +0 -1
- package/sdk/environments.js +0 -31
- package/sdk/environments.js.map +0 -1
- package/sdk/executiondetails.d.ts +0 -9
- package/sdk/executiondetails.d.ts.map +0 -1
- package/sdk/executiondetails.js +0 -19
- package/sdk/executiondetails.js.map +0 -1
- package/sdk/workflowgroups.d.ts +0 -41
- package/sdk/workflowgroups.d.ts.map +0 -1
- package/sdk/workflowgroups.js +0 -62
- package/sdk/workflowgroups.js.map +0 -1
- package/src/funcs/environmentsApiKeysList.ts +0 -124
- package/src/funcs/environmentsList.ts +0 -124
- package/src/funcs/environmentsRetrieve.ts +0 -124
- package/src/funcs/executionDetailsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsCreate.ts +0 -145
- package/src/funcs/workflowGroupsDelete.ts +0 -157
- package/src/funcs/workflowGroupsList.ts +0 -127
- package/src/funcs/workflowGroupsRetrieve.ts +0 -157
- package/src/funcs/workflowGroupsUpdate.ts +0 -164
- package/src/models/components/apikey.ts +0 -72
- package/src/models/components/createnotificationgrouprequestdto.ts +0 -69
- package/src/models/components/deletenotificationgroupresponsedto.ts +0 -117
- package/src/models/components/environmentresponsedto.ts +0 -103
- package/src/models/components/executiondetailsresponsedto.ts +0 -244
- package/src/models/components/notificationgroupresponsedto.ts +0 -99
- package/src/models/components/triggerrecipientstypeenum.ts +0 -35
- package/src/models/operations/environmentscontrollerv1getcurrentenvironment.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listmyenvironments.ts +0 -96
- package/src/models/operations/environmentscontrollerv1listorganizationapikeys.ts +0 -94
- package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts +0 -176
- package/src/models/operations/notificationgroupscontrollercreatenotificationgroup.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerdeletenotificationgroup.ts +0 -166
- package/src/models/operations/notificationgroupscontrollergetnotificationgroup.ts +0 -165
- package/src/models/operations/notificationgroupscontrollerlistnotificationgroups.ts +0 -95
- package/src/models/operations/notificationgroupscontrollerupdatenotificationgroup.ts +0 -182
- package/src/sdk/apikeys.ts +0 -24
- package/src/sdk/environments.ts +0 -41
- package/src/sdk/executiondetails.ts +0 -28
- package/src/sdk/workflowgroups.ts +0 -111
package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts
DELETED
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest =
|
|
13
|
-
{
|
|
14
|
-
notificationId: string;
|
|
15
|
-
subscriberId: string;
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export type ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse =
|
|
19
|
-
{
|
|
20
|
-
headers: { [k: string]: Array<string> };
|
|
21
|
-
result: Array<components.ExecutionDetailsResponseDto>;
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
/** @internal */
|
|
25
|
-
export const ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$inboundSchema:
|
|
26
|
-
z.ZodType<
|
|
27
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest,
|
|
28
|
-
z.ZodTypeDef,
|
|
29
|
-
unknown
|
|
30
|
-
> = z.object({
|
|
31
|
-
notificationId: z.string(),
|
|
32
|
-
subscriberId: z.string(),
|
|
33
|
-
});
|
|
34
|
-
|
|
35
|
-
/** @internal */
|
|
36
|
-
export type ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$Outbound =
|
|
37
|
-
{
|
|
38
|
-
notificationId: string;
|
|
39
|
-
subscriberId: string;
|
|
40
|
-
};
|
|
41
|
-
|
|
42
|
-
/** @internal */
|
|
43
|
-
export const ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$outboundSchema:
|
|
44
|
-
z.ZodType<
|
|
45
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$Outbound,
|
|
46
|
-
z.ZodTypeDef,
|
|
47
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest
|
|
48
|
-
> = z.object({
|
|
49
|
-
notificationId: z.string(),
|
|
50
|
-
subscriberId: z.string(),
|
|
51
|
-
});
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* @internal
|
|
55
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
56
|
-
*/
|
|
57
|
-
export namespace ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$ {
|
|
58
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$inboundSchema` instead. */
|
|
59
|
-
export const inboundSchema =
|
|
60
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$inboundSchema;
|
|
61
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$outboundSchema` instead. */
|
|
62
|
-
export const outboundSchema =
|
|
63
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$outboundSchema;
|
|
64
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$Outbound` instead. */
|
|
65
|
-
export type Outbound =
|
|
66
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$Outbound;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
export function executionDetailsControllerGetExecutionDetailsForNotificationRequestToJSON(
|
|
70
|
-
executionDetailsControllerGetExecutionDetailsForNotificationRequest:
|
|
71
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest,
|
|
72
|
-
): string {
|
|
73
|
-
return JSON.stringify(
|
|
74
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$outboundSchema
|
|
75
|
-
.parse(
|
|
76
|
-
executionDetailsControllerGetExecutionDetailsForNotificationRequest,
|
|
77
|
-
),
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
export function executionDetailsControllerGetExecutionDetailsForNotificationRequestFromJSON(
|
|
82
|
-
jsonString: string,
|
|
83
|
-
): SafeParseResult<
|
|
84
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest,
|
|
85
|
-
SDKValidationError
|
|
86
|
-
> {
|
|
87
|
-
return safeParse(
|
|
88
|
-
jsonString,
|
|
89
|
-
(x) =>
|
|
90
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest$inboundSchema
|
|
91
|
-
.parse(JSON.parse(x)),
|
|
92
|
-
`Failed to parse 'ExecutionDetailsControllerGetExecutionDetailsForNotificationRequest' from JSON`,
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
/** @internal */
|
|
97
|
-
export const ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$inboundSchema:
|
|
98
|
-
z.ZodType<
|
|
99
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse,
|
|
100
|
-
z.ZodTypeDef,
|
|
101
|
-
unknown
|
|
102
|
-
> = z.object({
|
|
103
|
-
Headers: z.record(z.array(z.string())),
|
|
104
|
-
Result: z.array(components.ExecutionDetailsResponseDto$inboundSchema),
|
|
105
|
-
}).transform((v) => {
|
|
106
|
-
return remap$(v, {
|
|
107
|
-
"Headers": "headers",
|
|
108
|
-
"Result": "result",
|
|
109
|
-
});
|
|
110
|
-
});
|
|
111
|
-
|
|
112
|
-
/** @internal */
|
|
113
|
-
export type ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$Outbound =
|
|
114
|
-
{
|
|
115
|
-
Headers: { [k: string]: Array<string> };
|
|
116
|
-
Result: Array<components.ExecutionDetailsResponseDto$Outbound>;
|
|
117
|
-
};
|
|
118
|
-
|
|
119
|
-
/** @internal */
|
|
120
|
-
export const ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$outboundSchema:
|
|
121
|
-
z.ZodType<
|
|
122
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$Outbound,
|
|
123
|
-
z.ZodTypeDef,
|
|
124
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse
|
|
125
|
-
> = z.object({
|
|
126
|
-
headers: z.record(z.array(z.string())),
|
|
127
|
-
result: z.array(components.ExecutionDetailsResponseDto$outboundSchema),
|
|
128
|
-
}).transform((v) => {
|
|
129
|
-
return remap$(v, {
|
|
130
|
-
headers: "Headers",
|
|
131
|
-
result: "Result",
|
|
132
|
-
});
|
|
133
|
-
});
|
|
134
|
-
|
|
135
|
-
/**
|
|
136
|
-
* @internal
|
|
137
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
138
|
-
*/
|
|
139
|
-
export namespace ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$ {
|
|
140
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$inboundSchema` instead. */
|
|
141
|
-
export const inboundSchema =
|
|
142
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$inboundSchema;
|
|
143
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$outboundSchema` instead. */
|
|
144
|
-
export const outboundSchema =
|
|
145
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$outboundSchema;
|
|
146
|
-
/** @deprecated use `ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$Outbound` instead. */
|
|
147
|
-
export type Outbound =
|
|
148
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$Outbound;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
export function executionDetailsControllerGetExecutionDetailsForNotificationResponseToJSON(
|
|
152
|
-
executionDetailsControllerGetExecutionDetailsForNotificationResponse:
|
|
153
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse,
|
|
154
|
-
): string {
|
|
155
|
-
return JSON.stringify(
|
|
156
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$outboundSchema
|
|
157
|
-
.parse(
|
|
158
|
-
executionDetailsControllerGetExecutionDetailsForNotificationResponse,
|
|
159
|
-
),
|
|
160
|
-
);
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
export function executionDetailsControllerGetExecutionDetailsForNotificationResponseFromJSON(
|
|
164
|
-
jsonString: string,
|
|
165
|
-
): SafeParseResult<
|
|
166
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse,
|
|
167
|
-
SDKValidationError
|
|
168
|
-
> {
|
|
169
|
-
return safeParse(
|
|
170
|
-
jsonString,
|
|
171
|
-
(x) =>
|
|
172
|
-
ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse$inboundSchema
|
|
173
|
-
.parse(JSON.parse(x)),
|
|
174
|
-
`Failed to parse 'ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse' from JSON`,
|
|
175
|
-
);
|
|
176
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type NotificationGroupsControllerCreateNotificationGroupResponse = {
|
|
13
|
-
headers: { [k: string]: Array<string> };
|
|
14
|
-
result: components.NotificationGroupResponseDto;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const NotificationGroupsControllerCreateNotificationGroupResponse$inboundSchema:
|
|
19
|
-
z.ZodType<
|
|
20
|
-
NotificationGroupsControllerCreateNotificationGroupResponse,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
Headers: z.record(z.array(z.string())),
|
|
25
|
-
Result: components.NotificationGroupResponseDto$inboundSchema,
|
|
26
|
-
}).transform((v) => {
|
|
27
|
-
return remap$(v, {
|
|
28
|
-
"Headers": "headers",
|
|
29
|
-
"Result": "result",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type NotificationGroupsControllerCreateNotificationGroupResponse$Outbound =
|
|
35
|
-
{
|
|
36
|
-
Headers: { [k: string]: Array<string> };
|
|
37
|
-
Result: components.NotificationGroupResponseDto$Outbound;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const NotificationGroupsControllerCreateNotificationGroupResponse$outboundSchema:
|
|
42
|
-
z.ZodType<
|
|
43
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$Outbound,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
NotificationGroupsControllerCreateNotificationGroupResponse
|
|
46
|
-
> = z.object({
|
|
47
|
-
headers: z.record(z.array(z.string())),
|
|
48
|
-
result: components.NotificationGroupResponseDto$outboundSchema,
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return remap$(v, {
|
|
51
|
-
headers: "Headers",
|
|
52
|
-
result: "Result",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace NotificationGroupsControllerCreateNotificationGroupResponse$ {
|
|
61
|
-
/** @deprecated use `NotificationGroupsControllerCreateNotificationGroupResponse$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema =
|
|
63
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$inboundSchema;
|
|
64
|
-
/** @deprecated use `NotificationGroupsControllerCreateNotificationGroupResponse$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema =
|
|
66
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$outboundSchema;
|
|
67
|
-
/** @deprecated use `NotificationGroupsControllerCreateNotificationGroupResponse$Outbound` instead. */
|
|
68
|
-
export type Outbound =
|
|
69
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$Outbound;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function notificationGroupsControllerCreateNotificationGroupResponseToJSON(
|
|
73
|
-
notificationGroupsControllerCreateNotificationGroupResponse:
|
|
74
|
-
NotificationGroupsControllerCreateNotificationGroupResponse,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$outboundSchema
|
|
78
|
-
.parse(notificationGroupsControllerCreateNotificationGroupResponse),
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function notificationGroupsControllerCreateNotificationGroupResponseFromJSON(
|
|
83
|
-
jsonString: string,
|
|
84
|
-
): SafeParseResult<
|
|
85
|
-
NotificationGroupsControllerCreateNotificationGroupResponse,
|
|
86
|
-
SDKValidationError
|
|
87
|
-
> {
|
|
88
|
-
return safeParse(
|
|
89
|
-
jsonString,
|
|
90
|
-
(x) =>
|
|
91
|
-
NotificationGroupsControllerCreateNotificationGroupResponse$inboundSchema
|
|
92
|
-
.parse(JSON.parse(x)),
|
|
93
|
-
`Failed to parse 'NotificationGroupsControllerCreateNotificationGroupResponse' from JSON`,
|
|
94
|
-
);
|
|
95
|
-
}
|
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type NotificationGroupsControllerDeleteNotificationGroupRequest = {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type NotificationGroupsControllerDeleteNotificationGroupResponse = {
|
|
17
|
-
headers: { [k: string]: Array<string> };
|
|
18
|
-
result: components.DeleteNotificationGroupResponseDto;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const NotificationGroupsControllerDeleteNotificationGroupRequest$inboundSchema:
|
|
23
|
-
z.ZodType<
|
|
24
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
id: z.string(),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type NotificationGroupsControllerDeleteNotificationGroupRequest$Outbound =
|
|
33
|
-
{
|
|
34
|
-
id: string;
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
/** @internal */
|
|
38
|
-
export const NotificationGroupsControllerDeleteNotificationGroupRequest$outboundSchema:
|
|
39
|
-
z.ZodType<
|
|
40
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$Outbound,
|
|
41
|
-
z.ZodTypeDef,
|
|
42
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest
|
|
43
|
-
> = z.object({
|
|
44
|
-
id: z.string(),
|
|
45
|
-
});
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* @internal
|
|
49
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
-
*/
|
|
51
|
-
export namespace NotificationGroupsControllerDeleteNotificationGroupRequest$ {
|
|
52
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupRequest$inboundSchema` instead. */
|
|
53
|
-
export const inboundSchema =
|
|
54
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$inboundSchema;
|
|
55
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupRequest$outboundSchema` instead. */
|
|
56
|
-
export const outboundSchema =
|
|
57
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$outboundSchema;
|
|
58
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupRequest$Outbound` instead. */
|
|
59
|
-
export type Outbound =
|
|
60
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$Outbound;
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
export function notificationGroupsControllerDeleteNotificationGroupRequestToJSON(
|
|
64
|
-
notificationGroupsControllerDeleteNotificationGroupRequest:
|
|
65
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest,
|
|
66
|
-
): string {
|
|
67
|
-
return JSON.stringify(
|
|
68
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$outboundSchema
|
|
69
|
-
.parse(notificationGroupsControllerDeleteNotificationGroupRequest),
|
|
70
|
-
);
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function notificationGroupsControllerDeleteNotificationGroupRequestFromJSON(
|
|
74
|
-
jsonString: string,
|
|
75
|
-
): SafeParseResult<
|
|
76
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest,
|
|
77
|
-
SDKValidationError
|
|
78
|
-
> {
|
|
79
|
-
return safeParse(
|
|
80
|
-
jsonString,
|
|
81
|
-
(x) =>
|
|
82
|
-
NotificationGroupsControllerDeleteNotificationGroupRequest$inboundSchema
|
|
83
|
-
.parse(JSON.parse(x)),
|
|
84
|
-
`Failed to parse 'NotificationGroupsControllerDeleteNotificationGroupRequest' from JSON`,
|
|
85
|
-
);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
/** @internal */
|
|
89
|
-
export const NotificationGroupsControllerDeleteNotificationGroupResponse$inboundSchema:
|
|
90
|
-
z.ZodType<
|
|
91
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse,
|
|
92
|
-
z.ZodTypeDef,
|
|
93
|
-
unknown
|
|
94
|
-
> = z.object({
|
|
95
|
-
Headers: z.record(z.array(z.string())),
|
|
96
|
-
Result: components.DeleteNotificationGroupResponseDto$inboundSchema,
|
|
97
|
-
}).transform((v) => {
|
|
98
|
-
return remap$(v, {
|
|
99
|
-
"Headers": "headers",
|
|
100
|
-
"Result": "result",
|
|
101
|
-
});
|
|
102
|
-
});
|
|
103
|
-
|
|
104
|
-
/** @internal */
|
|
105
|
-
export type NotificationGroupsControllerDeleteNotificationGroupResponse$Outbound =
|
|
106
|
-
{
|
|
107
|
-
Headers: { [k: string]: Array<string> };
|
|
108
|
-
Result: components.DeleteNotificationGroupResponseDto$Outbound;
|
|
109
|
-
};
|
|
110
|
-
|
|
111
|
-
/** @internal */
|
|
112
|
-
export const NotificationGroupsControllerDeleteNotificationGroupResponse$outboundSchema:
|
|
113
|
-
z.ZodType<
|
|
114
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$Outbound,
|
|
115
|
-
z.ZodTypeDef,
|
|
116
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse
|
|
117
|
-
> = z.object({
|
|
118
|
-
headers: z.record(z.array(z.string())),
|
|
119
|
-
result: components.DeleteNotificationGroupResponseDto$outboundSchema,
|
|
120
|
-
}).transform((v) => {
|
|
121
|
-
return remap$(v, {
|
|
122
|
-
headers: "Headers",
|
|
123
|
-
result: "Result",
|
|
124
|
-
});
|
|
125
|
-
});
|
|
126
|
-
|
|
127
|
-
/**
|
|
128
|
-
* @internal
|
|
129
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
130
|
-
*/
|
|
131
|
-
export namespace NotificationGroupsControllerDeleteNotificationGroupResponse$ {
|
|
132
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupResponse$inboundSchema` instead. */
|
|
133
|
-
export const inboundSchema =
|
|
134
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$inboundSchema;
|
|
135
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupResponse$outboundSchema` instead. */
|
|
136
|
-
export const outboundSchema =
|
|
137
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$outboundSchema;
|
|
138
|
-
/** @deprecated use `NotificationGroupsControllerDeleteNotificationGroupResponse$Outbound` instead. */
|
|
139
|
-
export type Outbound =
|
|
140
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$Outbound;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export function notificationGroupsControllerDeleteNotificationGroupResponseToJSON(
|
|
144
|
-
notificationGroupsControllerDeleteNotificationGroupResponse:
|
|
145
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse,
|
|
146
|
-
): string {
|
|
147
|
-
return JSON.stringify(
|
|
148
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$outboundSchema
|
|
149
|
-
.parse(notificationGroupsControllerDeleteNotificationGroupResponse),
|
|
150
|
-
);
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
export function notificationGroupsControllerDeleteNotificationGroupResponseFromJSON(
|
|
154
|
-
jsonString: string,
|
|
155
|
-
): SafeParseResult<
|
|
156
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse,
|
|
157
|
-
SDKValidationError
|
|
158
|
-
> {
|
|
159
|
-
return safeParse(
|
|
160
|
-
jsonString,
|
|
161
|
-
(x) =>
|
|
162
|
-
NotificationGroupsControllerDeleteNotificationGroupResponse$inboundSchema
|
|
163
|
-
.parse(JSON.parse(x)),
|
|
164
|
-
`Failed to parse 'NotificationGroupsControllerDeleteNotificationGroupResponse' from JSON`,
|
|
165
|
-
);
|
|
166
|
-
}
|
|
@@ -1,165 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type NotificationGroupsControllerGetNotificationGroupRequest = {
|
|
13
|
-
id: string;
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export type NotificationGroupsControllerGetNotificationGroupResponse = {
|
|
17
|
-
headers: { [k: string]: Array<string> };
|
|
18
|
-
result: components.NotificationGroupResponseDto;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const NotificationGroupsControllerGetNotificationGroupRequest$inboundSchema:
|
|
23
|
-
z.ZodType<
|
|
24
|
-
NotificationGroupsControllerGetNotificationGroupRequest,
|
|
25
|
-
z.ZodTypeDef,
|
|
26
|
-
unknown
|
|
27
|
-
> = z.object({
|
|
28
|
-
id: z.string(),
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export type NotificationGroupsControllerGetNotificationGroupRequest$Outbound = {
|
|
33
|
-
id: string;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const NotificationGroupsControllerGetNotificationGroupRequest$outboundSchema:
|
|
38
|
-
z.ZodType<
|
|
39
|
-
NotificationGroupsControllerGetNotificationGroupRequest$Outbound,
|
|
40
|
-
z.ZodTypeDef,
|
|
41
|
-
NotificationGroupsControllerGetNotificationGroupRequest
|
|
42
|
-
> = z.object({
|
|
43
|
-
id: z.string(),
|
|
44
|
-
});
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* @internal
|
|
48
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
-
*/
|
|
50
|
-
export namespace NotificationGroupsControllerGetNotificationGroupRequest$ {
|
|
51
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupRequest$inboundSchema` instead. */
|
|
52
|
-
export const inboundSchema =
|
|
53
|
-
NotificationGroupsControllerGetNotificationGroupRequest$inboundSchema;
|
|
54
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupRequest$outboundSchema` instead. */
|
|
55
|
-
export const outboundSchema =
|
|
56
|
-
NotificationGroupsControllerGetNotificationGroupRequest$outboundSchema;
|
|
57
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupRequest$Outbound` instead. */
|
|
58
|
-
export type Outbound =
|
|
59
|
-
NotificationGroupsControllerGetNotificationGroupRequest$Outbound;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function notificationGroupsControllerGetNotificationGroupRequestToJSON(
|
|
63
|
-
notificationGroupsControllerGetNotificationGroupRequest:
|
|
64
|
-
NotificationGroupsControllerGetNotificationGroupRequest,
|
|
65
|
-
): string {
|
|
66
|
-
return JSON.stringify(
|
|
67
|
-
NotificationGroupsControllerGetNotificationGroupRequest$outboundSchema
|
|
68
|
-
.parse(notificationGroupsControllerGetNotificationGroupRequest),
|
|
69
|
-
);
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function notificationGroupsControllerGetNotificationGroupRequestFromJSON(
|
|
73
|
-
jsonString: string,
|
|
74
|
-
): SafeParseResult<
|
|
75
|
-
NotificationGroupsControllerGetNotificationGroupRequest,
|
|
76
|
-
SDKValidationError
|
|
77
|
-
> {
|
|
78
|
-
return safeParse(
|
|
79
|
-
jsonString,
|
|
80
|
-
(x) =>
|
|
81
|
-
NotificationGroupsControllerGetNotificationGroupRequest$inboundSchema
|
|
82
|
-
.parse(JSON.parse(x)),
|
|
83
|
-
`Failed to parse 'NotificationGroupsControllerGetNotificationGroupRequest' from JSON`,
|
|
84
|
-
);
|
|
85
|
-
}
|
|
86
|
-
|
|
87
|
-
/** @internal */
|
|
88
|
-
export const NotificationGroupsControllerGetNotificationGroupResponse$inboundSchema:
|
|
89
|
-
z.ZodType<
|
|
90
|
-
NotificationGroupsControllerGetNotificationGroupResponse,
|
|
91
|
-
z.ZodTypeDef,
|
|
92
|
-
unknown
|
|
93
|
-
> = z.object({
|
|
94
|
-
Headers: z.record(z.array(z.string())),
|
|
95
|
-
Result: components.NotificationGroupResponseDto$inboundSchema,
|
|
96
|
-
}).transform((v) => {
|
|
97
|
-
return remap$(v, {
|
|
98
|
-
"Headers": "headers",
|
|
99
|
-
"Result": "result",
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
/** @internal */
|
|
104
|
-
export type NotificationGroupsControllerGetNotificationGroupResponse$Outbound =
|
|
105
|
-
{
|
|
106
|
-
Headers: { [k: string]: Array<string> };
|
|
107
|
-
Result: components.NotificationGroupResponseDto$Outbound;
|
|
108
|
-
};
|
|
109
|
-
|
|
110
|
-
/** @internal */
|
|
111
|
-
export const NotificationGroupsControllerGetNotificationGroupResponse$outboundSchema:
|
|
112
|
-
z.ZodType<
|
|
113
|
-
NotificationGroupsControllerGetNotificationGroupResponse$Outbound,
|
|
114
|
-
z.ZodTypeDef,
|
|
115
|
-
NotificationGroupsControllerGetNotificationGroupResponse
|
|
116
|
-
> = z.object({
|
|
117
|
-
headers: z.record(z.array(z.string())),
|
|
118
|
-
result: components.NotificationGroupResponseDto$outboundSchema,
|
|
119
|
-
}).transform((v) => {
|
|
120
|
-
return remap$(v, {
|
|
121
|
-
headers: "Headers",
|
|
122
|
-
result: "Result",
|
|
123
|
-
});
|
|
124
|
-
});
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @internal
|
|
128
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
129
|
-
*/
|
|
130
|
-
export namespace NotificationGroupsControllerGetNotificationGroupResponse$ {
|
|
131
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupResponse$inboundSchema` instead. */
|
|
132
|
-
export const inboundSchema =
|
|
133
|
-
NotificationGroupsControllerGetNotificationGroupResponse$inboundSchema;
|
|
134
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupResponse$outboundSchema` instead. */
|
|
135
|
-
export const outboundSchema =
|
|
136
|
-
NotificationGroupsControllerGetNotificationGroupResponse$outboundSchema;
|
|
137
|
-
/** @deprecated use `NotificationGroupsControllerGetNotificationGroupResponse$Outbound` instead. */
|
|
138
|
-
export type Outbound =
|
|
139
|
-
NotificationGroupsControllerGetNotificationGroupResponse$Outbound;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
export function notificationGroupsControllerGetNotificationGroupResponseToJSON(
|
|
143
|
-
notificationGroupsControllerGetNotificationGroupResponse:
|
|
144
|
-
NotificationGroupsControllerGetNotificationGroupResponse,
|
|
145
|
-
): string {
|
|
146
|
-
return JSON.stringify(
|
|
147
|
-
NotificationGroupsControllerGetNotificationGroupResponse$outboundSchema
|
|
148
|
-
.parse(notificationGroupsControllerGetNotificationGroupResponse),
|
|
149
|
-
);
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
export function notificationGroupsControllerGetNotificationGroupResponseFromJSON(
|
|
153
|
-
jsonString: string,
|
|
154
|
-
): SafeParseResult<
|
|
155
|
-
NotificationGroupsControllerGetNotificationGroupResponse,
|
|
156
|
-
SDKValidationError
|
|
157
|
-
> {
|
|
158
|
-
return safeParse(
|
|
159
|
-
jsonString,
|
|
160
|
-
(x) =>
|
|
161
|
-
NotificationGroupsControllerGetNotificationGroupResponse$inboundSchema
|
|
162
|
-
.parse(JSON.parse(x)),
|
|
163
|
-
`Failed to parse 'NotificationGroupsControllerGetNotificationGroupResponse' from JSON`,
|
|
164
|
-
);
|
|
165
|
-
}
|
|
@@ -1,95 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type NotificationGroupsControllerListNotificationGroupsResponse = {
|
|
13
|
-
headers: { [k: string]: Array<string> };
|
|
14
|
-
result: Array<components.NotificationGroupResponseDto>;
|
|
15
|
-
};
|
|
16
|
-
|
|
17
|
-
/** @internal */
|
|
18
|
-
export const NotificationGroupsControllerListNotificationGroupsResponse$inboundSchema:
|
|
19
|
-
z.ZodType<
|
|
20
|
-
NotificationGroupsControllerListNotificationGroupsResponse,
|
|
21
|
-
z.ZodTypeDef,
|
|
22
|
-
unknown
|
|
23
|
-
> = z.object({
|
|
24
|
-
Headers: z.record(z.array(z.string())),
|
|
25
|
-
Result: z.array(components.NotificationGroupResponseDto$inboundSchema),
|
|
26
|
-
}).transform((v) => {
|
|
27
|
-
return remap$(v, {
|
|
28
|
-
"Headers": "headers",
|
|
29
|
-
"Result": "result",
|
|
30
|
-
});
|
|
31
|
-
});
|
|
32
|
-
|
|
33
|
-
/** @internal */
|
|
34
|
-
export type NotificationGroupsControllerListNotificationGroupsResponse$Outbound =
|
|
35
|
-
{
|
|
36
|
-
Headers: { [k: string]: Array<string> };
|
|
37
|
-
Result: Array<components.NotificationGroupResponseDto$Outbound>;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const NotificationGroupsControllerListNotificationGroupsResponse$outboundSchema:
|
|
42
|
-
z.ZodType<
|
|
43
|
-
NotificationGroupsControllerListNotificationGroupsResponse$Outbound,
|
|
44
|
-
z.ZodTypeDef,
|
|
45
|
-
NotificationGroupsControllerListNotificationGroupsResponse
|
|
46
|
-
> = z.object({
|
|
47
|
-
headers: z.record(z.array(z.string())),
|
|
48
|
-
result: z.array(components.NotificationGroupResponseDto$outboundSchema),
|
|
49
|
-
}).transform((v) => {
|
|
50
|
-
return remap$(v, {
|
|
51
|
-
headers: "Headers",
|
|
52
|
-
result: "Result",
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* @internal
|
|
58
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
59
|
-
*/
|
|
60
|
-
export namespace NotificationGroupsControllerListNotificationGroupsResponse$ {
|
|
61
|
-
/** @deprecated use `NotificationGroupsControllerListNotificationGroupsResponse$inboundSchema` instead. */
|
|
62
|
-
export const inboundSchema =
|
|
63
|
-
NotificationGroupsControllerListNotificationGroupsResponse$inboundSchema;
|
|
64
|
-
/** @deprecated use `NotificationGroupsControllerListNotificationGroupsResponse$outboundSchema` instead. */
|
|
65
|
-
export const outboundSchema =
|
|
66
|
-
NotificationGroupsControllerListNotificationGroupsResponse$outboundSchema;
|
|
67
|
-
/** @deprecated use `NotificationGroupsControllerListNotificationGroupsResponse$Outbound` instead. */
|
|
68
|
-
export type Outbound =
|
|
69
|
-
NotificationGroupsControllerListNotificationGroupsResponse$Outbound;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
export function notificationGroupsControllerListNotificationGroupsResponseToJSON(
|
|
73
|
-
notificationGroupsControllerListNotificationGroupsResponse:
|
|
74
|
-
NotificationGroupsControllerListNotificationGroupsResponse,
|
|
75
|
-
): string {
|
|
76
|
-
return JSON.stringify(
|
|
77
|
-
NotificationGroupsControllerListNotificationGroupsResponse$outboundSchema
|
|
78
|
-
.parse(notificationGroupsControllerListNotificationGroupsResponse),
|
|
79
|
-
);
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
export function notificationGroupsControllerListNotificationGroupsResponseFromJSON(
|
|
83
|
-
jsonString: string,
|
|
84
|
-
): SafeParseResult<
|
|
85
|
-
NotificationGroupsControllerListNotificationGroupsResponse,
|
|
86
|
-
SDKValidationError
|
|
87
|
-
> {
|
|
88
|
-
return safeParse(
|
|
89
|
-
jsonString,
|
|
90
|
-
(x) =>
|
|
91
|
-
NotificationGroupsControllerListNotificationGroupsResponse$inboundSchema
|
|
92
|
-
.parse(JSON.parse(x)),
|
|
93
|
-
`Failed to parse 'NotificationGroupsControllerListNotificationGroupsResponse' from JSON`,
|
|
94
|
-
);
|
|
95
|
-
}
|