@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.
Files changed (203) hide show
  1. package/README.md +0 -30
  2. package/hooks/novu-custom-hook.js +1 -1
  3. package/hooks/novu-custom-hook.js.map +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/lib/config.js.map +1 -1
  7. package/models/components/index.d.ts +0 -7
  8. package/models/components/index.d.ts.map +1 -1
  9. package/models/components/index.js +0 -7
  10. package/models/components/index.js.map +1 -1
  11. package/models/components/integrationresponsedto.d.ts +8 -8
  12. package/models/components/integrationresponsedto.d.ts.map +1 -1
  13. package/models/components/integrationresponsedto.js +14 -13
  14. package/models/components/integrationresponsedto.js.map +1 -1
  15. package/models/components/notificationfeeditemdto.d.ts +4 -4
  16. package/models/components/notificationfeeditemdto.d.ts.map +1 -1
  17. package/models/components/notificationfeeditemdto.js +2 -2
  18. package/models/components/notificationfeeditemdto.js.map +1 -1
  19. package/models/components/stepfilter.d.ts +8 -8
  20. package/models/components/stepfilter.d.ts.map +1 -1
  21. package/models/components/stepfilter.js +13 -13
  22. package/models/components/stepfilter.js.map +1 -1
  23. package/models/components/topicpayloaddto.d.ts +27 -2
  24. package/models/components/topicpayloaddto.d.ts.map +1 -1
  25. package/models/components/topicpayloaddto.js +22 -4
  26. package/models/components/topicpayloaddto.js.map +1 -1
  27. package/models/components/triggereventrequestdto.d.ts +28 -4
  28. package/models/components/triggereventrequestdto.d.ts.map +1 -1
  29. package/models/components/triggereventrequestdto.js +57 -5
  30. package/models/components/triggereventrequestdto.js.map +1 -1
  31. package/models/components/triggereventresponsedto.d.ts +8 -8
  32. package/models/components/triggereventresponsedto.d.ts.map +1 -1
  33. package/models/components/triggereventresponsedto.js +14 -13
  34. package/models/components/triggereventresponsedto.js.map +1 -1
  35. package/models/operations/index.d.ts +0 -9
  36. package/models/operations/index.d.ts.map +1 -1
  37. package/models/operations/index.js +0 -9
  38. package/models/operations/index.js.map +1 -1
  39. package/package.json +1 -1
  40. package/sdk/sdk.d.ts +0 -9
  41. package/sdk/sdk.d.ts.map +1 -1
  42. package/sdk/sdk.js +0 -15
  43. package/sdk/sdk.js.map +1 -1
  44. package/src/hooks/novu-custom-hook.ts +1 -1
  45. package/src/lib/config.ts +3 -3
  46. package/src/models/components/index.ts +0 -7
  47. package/src/models/components/integrationresponsedto.ts +14 -18
  48. package/src/models/components/notificationfeeditemdto.ts +4 -4
  49. package/src/models/components/stepfilter.ts +16 -15
  50. package/src/models/components/topicpayloaddto.ts +30 -8
  51. package/src/models/components/triggereventrequestdto.ts +109 -17
  52. package/src/models/components/triggereventresponsedto.ts +14 -18
  53. package/src/models/operations/index.ts +0 -9
  54. package/src/sdk/sdk.ts +0 -18
  55. package/docs/sdks/apikeys/README.md +0 -79
  56. package/docs/sdks/environments/README.md +0 -154
  57. package/docs/sdks/executiondetails/README.md +0 -84
  58. package/docs/sdks/workflowgroups/README.md +0 -382
  59. package/funcs/environmentsApiKeysList.d.ts +0 -12
  60. package/funcs/environmentsApiKeysList.d.ts.map +0 -1
  61. package/funcs/environmentsApiKeysList.js +0 -97
  62. package/funcs/environmentsApiKeysList.js.map +0 -1
  63. package/funcs/environmentsList.d.ts +0 -12
  64. package/funcs/environmentsList.d.ts.map +0 -1
  65. package/funcs/environmentsList.js +0 -97
  66. package/funcs/environmentsList.js.map +0 -1
  67. package/funcs/environmentsRetrieve.d.ts +0 -12
  68. package/funcs/environmentsRetrieve.d.ts.map +0 -1
  69. package/funcs/environmentsRetrieve.js +0 -97
  70. package/funcs/environmentsRetrieve.js.map +0 -1
  71. package/funcs/executionDetailsRetrieve.d.ts +0 -12
  72. package/funcs/executionDetailsRetrieve.d.ts.map +0 -1
  73. package/funcs/executionDetailsRetrieve.js +0 -117
  74. package/funcs/executionDetailsRetrieve.js.map +0 -1
  75. package/funcs/workflowGroupsCreate.d.ts +0 -16
  76. package/funcs/workflowGroupsCreate.d.ts.map +0 -1
  77. package/funcs/workflowGroupsCreate.js +0 -111
  78. package/funcs/workflowGroupsCreate.js.map +0 -1
  79. package/funcs/workflowGroupsDelete.d.ts +0 -15
  80. package/funcs/workflowGroupsDelete.d.ts.map +0 -1
  81. package/funcs/workflowGroupsDelete.js +0 -120
  82. package/funcs/workflowGroupsDelete.js.map +0 -1
  83. package/funcs/workflowGroupsList.d.ts +0 -15
  84. package/funcs/workflowGroupsList.d.ts.map +0 -1
  85. package/funcs/workflowGroupsList.js +0 -100
  86. package/funcs/workflowGroupsList.js.map +0 -1
  87. package/funcs/workflowGroupsRetrieve.d.ts +0 -15
  88. package/funcs/workflowGroupsRetrieve.d.ts.map +0 -1
  89. package/funcs/workflowGroupsRetrieve.js +0 -120
  90. package/funcs/workflowGroupsRetrieve.js.map +0 -1
  91. package/funcs/workflowGroupsUpdate.d.ts +0 -16
  92. package/funcs/workflowGroupsUpdate.d.ts.map +0 -1
  93. package/funcs/workflowGroupsUpdate.js +0 -124
  94. package/funcs/workflowGroupsUpdate.js.map +0 -1
  95. package/models/components/apikey.d.ts +0 -31
  96. package/models/components/apikey.d.ts.map +0 -1
  97. package/models/components/apikey.js +0 -71
  98. package/models/components/apikey.js.map +0 -1
  99. package/models/components/createnotificationgrouprequestdto.d.ts +0 -29
  100. package/models/components/createnotificationgrouprequestdto.d.ts.map +0 -1
  101. package/models/components/createnotificationgrouprequestdto.js +0 -59
  102. package/models/components/createnotificationgrouprequestdto.js.map +0 -1
  103. package/models/components/deletenotificationgroupresponsedto.d.ts +0 -66
  104. package/models/components/deletenotificationgroupresponsedto.d.ts.map +0 -1
  105. package/models/components/deletenotificationgroupresponsedto.js +0 -83
  106. package/models/components/deletenotificationgroupresponsedto.js.map +0 -1
  107. package/models/components/environmentresponsedto.d.ts +0 -41
  108. package/models/components/environmentresponsedto.d.ts.map +0 -1
  109. package/models/components/environmentresponsedto.js +0 -84
  110. package/models/components/environmentresponsedto.js.map +0 -1
  111. package/models/components/executiondetailsresponsedto.d.ts +0 -176
  112. package/models/components/executiondetailsresponsedto.d.ts.map +0 -1
  113. package/models/components/executiondetailsresponsedto.js +0 -187
  114. package/models/components/executiondetailsresponsedto.js.map +0 -1
  115. package/models/components/notificationgroupresponsedto.d.ts +0 -37
  116. package/models/components/notificationgroupresponsedto.d.ts.map +0 -1
  117. package/models/components/notificationgroupresponsedto.js +0 -82
  118. package/models/components/notificationgroupresponsedto.js.map +0 -1
  119. package/models/components/triggerrecipientstypeenum.d.ts +0 -28
  120. package/models/components/triggerrecipientstypeenum.d.ts.map +0 -1
  121. package/models/components/triggerrecipientstypeenum.js +0 -50
  122. package/models/components/triggerrecipientstypeenum.js.map +0 -1
  123. package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts +0 -36
  124. package/models/operations/environmentscontrollerv1getcurrentenvironment.d.ts.map +0 -1
  125. package/models/operations/environmentscontrollerv1getcurrentenvironment.js +0 -73
  126. package/models/operations/environmentscontrollerv1getcurrentenvironment.js.map +0 -1
  127. package/models/operations/environmentscontrollerv1listmyenvironments.d.ts +0 -36
  128. package/models/operations/environmentscontrollerv1listmyenvironments.d.ts.map +0 -1
  129. package/models/operations/environmentscontrollerv1listmyenvironments.js +0 -73
  130. package/models/operations/environmentscontrollerv1listmyenvironments.js.map +0 -1
  131. package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts +0 -36
  132. package/models/operations/environmentscontrollerv1listorganizationapikeys.d.ts.map +0 -1
  133. package/models/operations/environmentscontrollerv1listorganizationapikeys.js +0 -75
  134. package/models/operations/environmentscontrollerv1listorganizationapikeys.js.map +0 -1
  135. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts +0 -63
  136. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.d.ts.map +0 -1
  137. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js +0 -106
  138. package/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.js.map +0 -1
  139. package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts +0 -36
  140. package/models/operations/notificationgroupscontrollercreatenotificationgroup.d.ts.map +0 -1
  141. package/models/operations/notificationgroupscontrollercreatenotificationgroup.js +0 -75
  142. package/models/operations/notificationgroupscontrollercreatenotificationgroup.js.map +0 -1
  143. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts +0 -61
  144. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.d.ts.map +0 -1
  145. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js +0 -104
  146. package/models/operations/notificationgroupscontrollerdeletenotificationgroup.js.map +0 -1
  147. package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts +0 -61
  148. package/models/operations/notificationgroupscontrollergetnotificationgroup.d.ts.map +0 -1
  149. package/models/operations/notificationgroupscontrollergetnotificationgroup.js +0 -104
  150. package/models/operations/notificationgroupscontrollergetnotificationgroup.js.map +0 -1
  151. package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts +0 -36
  152. package/models/operations/notificationgroupscontrollerlistnotificationgroups.d.ts.map +0 -1
  153. package/models/operations/notificationgroupscontrollerlistnotificationgroups.js +0 -75
  154. package/models/operations/notificationgroupscontrollerlistnotificationgroups.js.map +0 -1
  155. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts +0 -63
  156. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.d.ts.map +0 -1
  157. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js +0 -114
  158. package/models/operations/notificationgroupscontrollerupdatenotificationgroup.js.map +0 -1
  159. package/sdk/apikeys.d.ts +0 -9
  160. package/sdk/apikeys.d.ts.map +0 -1
  161. package/sdk/apikeys.js +0 -19
  162. package/sdk/apikeys.js.map +0 -1
  163. package/sdk/environments.d.ts +0 -16
  164. package/sdk/environments.d.ts.map +0 -1
  165. package/sdk/environments.js +0 -31
  166. package/sdk/environments.js.map +0 -1
  167. package/sdk/executiondetails.d.ts +0 -9
  168. package/sdk/executiondetails.d.ts.map +0 -1
  169. package/sdk/executiondetails.js +0 -19
  170. package/sdk/executiondetails.js.map +0 -1
  171. package/sdk/workflowgroups.d.ts +0 -41
  172. package/sdk/workflowgroups.d.ts.map +0 -1
  173. package/sdk/workflowgroups.js +0 -62
  174. package/sdk/workflowgroups.js.map +0 -1
  175. package/src/funcs/environmentsApiKeysList.ts +0 -124
  176. package/src/funcs/environmentsList.ts +0 -124
  177. package/src/funcs/environmentsRetrieve.ts +0 -124
  178. package/src/funcs/executionDetailsRetrieve.ts +0 -157
  179. package/src/funcs/workflowGroupsCreate.ts +0 -145
  180. package/src/funcs/workflowGroupsDelete.ts +0 -157
  181. package/src/funcs/workflowGroupsList.ts +0 -127
  182. package/src/funcs/workflowGroupsRetrieve.ts +0 -157
  183. package/src/funcs/workflowGroupsUpdate.ts +0 -164
  184. package/src/models/components/apikey.ts +0 -72
  185. package/src/models/components/createnotificationgrouprequestdto.ts +0 -69
  186. package/src/models/components/deletenotificationgroupresponsedto.ts +0 -117
  187. package/src/models/components/environmentresponsedto.ts +0 -103
  188. package/src/models/components/executiondetailsresponsedto.ts +0 -244
  189. package/src/models/components/notificationgroupresponsedto.ts +0 -99
  190. package/src/models/components/triggerrecipientstypeenum.ts +0 -35
  191. package/src/models/operations/environmentscontrollerv1getcurrentenvironment.ts +0 -96
  192. package/src/models/operations/environmentscontrollerv1listmyenvironments.ts +0 -96
  193. package/src/models/operations/environmentscontrollerv1listorganizationapikeys.ts +0 -94
  194. package/src/models/operations/executiondetailscontrollergetexecutiondetailsfornotification.ts +0 -176
  195. package/src/models/operations/notificationgroupscontrollercreatenotificationgroup.ts +0 -95
  196. package/src/models/operations/notificationgroupscontrollerdeletenotificationgroup.ts +0 -166
  197. package/src/models/operations/notificationgroupscontrollergetnotificationgroup.ts +0 -165
  198. package/src/models/operations/notificationgroupscontrollerlistnotificationgroups.ts +0 -95
  199. package/src/models/operations/notificationgroupscontrollerupdatenotificationgroup.ts +0 -182
  200. package/src/sdk/apikeys.ts +0 -24
  201. package/src/sdk/environments.ts +0 -41
  202. package/src/sdk/executiondetails.ts +0 -28
  203. package/src/sdk/workflowgroups.ts +0 -111
@@ -1,244 +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 { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
11
-
12
- export const Channel = {
13
- InApp: "in_app",
14
- Email: "email",
15
- Sms: "sms",
16
- Chat: "chat",
17
- Push: "push",
18
- Digest: "digest",
19
- Trigger: "trigger",
20
- Delay: "delay",
21
- Custom: "custom",
22
- } as const;
23
- export type Channel = ClosedEnum<typeof Channel>;
24
-
25
- export const Source = {
26
- Credentials: "Credentials",
27
- Internal: "Internal",
28
- Payload: "Payload",
29
- Webhook: "Webhook",
30
- } as const;
31
- export type Source = ClosedEnum<typeof Source>;
32
-
33
- export const Status = {
34
- Success: "Success",
35
- Warning: "Warning",
36
- Failed: "Failed",
37
- Pending: "Pending",
38
- Queued: "Queued",
39
- ReadConfirmation: "ReadConfirmation",
40
- } as const;
41
- export type Status = ClosedEnum<typeof Status>;
42
-
43
- export type ExecutionDetailsResponseDto = {
44
- id?: string | undefined;
45
- organizationId: string;
46
- jobId: string;
47
- environmentId: string;
48
- notificationId: string;
49
- notificationTemplateId: string;
50
- subscriberId: string;
51
- messageId?: string | undefined;
52
- providerId?: string | undefined;
53
- transactionId: string;
54
- channel: Channel;
55
- detail: string;
56
- source: Source;
57
- status: Status;
58
- isTest: boolean;
59
- isRetry: boolean;
60
- createdAt?: string | undefined;
61
- };
62
-
63
- /** @internal */
64
- export const Channel$inboundSchema: z.ZodNativeEnum<typeof Channel> = z
65
- .nativeEnum(Channel);
66
-
67
- /** @internal */
68
- export const Channel$outboundSchema: z.ZodNativeEnum<typeof Channel> =
69
- Channel$inboundSchema;
70
-
71
- /**
72
- * @internal
73
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
74
- */
75
- export namespace Channel$ {
76
- /** @deprecated use `Channel$inboundSchema` instead. */
77
- export const inboundSchema = Channel$inboundSchema;
78
- /** @deprecated use `Channel$outboundSchema` instead. */
79
- export const outboundSchema = Channel$outboundSchema;
80
- }
81
-
82
- /** @internal */
83
- export const Source$inboundSchema: z.ZodNativeEnum<typeof Source> = z
84
- .nativeEnum(Source);
85
-
86
- /** @internal */
87
- export const Source$outboundSchema: z.ZodNativeEnum<typeof Source> =
88
- Source$inboundSchema;
89
-
90
- /**
91
- * @internal
92
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
- */
94
- export namespace Source$ {
95
- /** @deprecated use `Source$inboundSchema` instead. */
96
- export const inboundSchema = Source$inboundSchema;
97
- /** @deprecated use `Source$outboundSchema` instead. */
98
- export const outboundSchema = Source$outboundSchema;
99
- }
100
-
101
- /** @internal */
102
- export const Status$inboundSchema: z.ZodNativeEnum<typeof Status> = z
103
- .nativeEnum(Status);
104
-
105
- /** @internal */
106
- export const Status$outboundSchema: z.ZodNativeEnum<typeof Status> =
107
- Status$inboundSchema;
108
-
109
- /**
110
- * @internal
111
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
112
- */
113
- export namespace Status$ {
114
- /** @deprecated use `Status$inboundSchema` instead. */
115
- export const inboundSchema = Status$inboundSchema;
116
- /** @deprecated use `Status$outboundSchema` instead. */
117
- export const outboundSchema = Status$outboundSchema;
118
- }
119
-
120
- /** @internal */
121
- export const ExecutionDetailsResponseDto$inboundSchema: z.ZodType<
122
- ExecutionDetailsResponseDto,
123
- z.ZodTypeDef,
124
- unknown
125
- > = z.object({
126
- _id: z.string().optional(),
127
- _organizationId: z.string(),
128
- _jobId: z.string(),
129
- _environmentId: z.string(),
130
- _notificationId: z.string(),
131
- _notificationTemplateId: z.string(),
132
- _subscriberId: z.string(),
133
- _messageId: z.string().optional(),
134
- providerId: z.string().optional(),
135
- transactionId: z.string(),
136
- channel: Channel$inboundSchema,
137
- detail: z.string(),
138
- source: Source$inboundSchema,
139
- status: Status$inboundSchema,
140
- isTest: z.boolean(),
141
- isRetry: z.boolean(),
142
- createdAt: z.string().optional(),
143
- }).transform((v) => {
144
- return remap$(v, {
145
- "_id": "id",
146
- "_organizationId": "organizationId",
147
- "_jobId": "jobId",
148
- "_environmentId": "environmentId",
149
- "_notificationId": "notificationId",
150
- "_notificationTemplateId": "notificationTemplateId",
151
- "_subscriberId": "subscriberId",
152
- "_messageId": "messageId",
153
- });
154
- });
155
-
156
- /** @internal */
157
- export type ExecutionDetailsResponseDto$Outbound = {
158
- _id?: string | undefined;
159
- _organizationId: string;
160
- _jobId: string;
161
- _environmentId: string;
162
- _notificationId: string;
163
- _notificationTemplateId: string;
164
- _subscriberId: string;
165
- _messageId?: string | undefined;
166
- providerId?: string | undefined;
167
- transactionId: string;
168
- channel: string;
169
- detail: string;
170
- source: string;
171
- status: string;
172
- isTest: boolean;
173
- isRetry: boolean;
174
- createdAt?: string | undefined;
175
- };
176
-
177
- /** @internal */
178
- export const ExecutionDetailsResponseDto$outboundSchema: z.ZodType<
179
- ExecutionDetailsResponseDto$Outbound,
180
- z.ZodTypeDef,
181
- ExecutionDetailsResponseDto
182
- > = z.object({
183
- id: z.string().optional(),
184
- organizationId: z.string(),
185
- jobId: z.string(),
186
- environmentId: z.string(),
187
- notificationId: z.string(),
188
- notificationTemplateId: z.string(),
189
- subscriberId: z.string(),
190
- messageId: z.string().optional(),
191
- providerId: z.string().optional(),
192
- transactionId: z.string(),
193
- channel: Channel$outboundSchema,
194
- detail: z.string(),
195
- source: Source$outboundSchema,
196
- status: Status$outboundSchema,
197
- isTest: z.boolean(),
198
- isRetry: z.boolean(),
199
- createdAt: z.string().optional(),
200
- }).transform((v) => {
201
- return remap$(v, {
202
- id: "_id",
203
- organizationId: "_organizationId",
204
- jobId: "_jobId",
205
- environmentId: "_environmentId",
206
- notificationId: "_notificationId",
207
- notificationTemplateId: "_notificationTemplateId",
208
- subscriberId: "_subscriberId",
209
- messageId: "_messageId",
210
- });
211
- });
212
-
213
- /**
214
- * @internal
215
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
216
- */
217
- export namespace ExecutionDetailsResponseDto$ {
218
- /** @deprecated use `ExecutionDetailsResponseDto$inboundSchema` instead. */
219
- export const inboundSchema = ExecutionDetailsResponseDto$inboundSchema;
220
- /** @deprecated use `ExecutionDetailsResponseDto$outboundSchema` instead. */
221
- export const outboundSchema = ExecutionDetailsResponseDto$outboundSchema;
222
- /** @deprecated use `ExecutionDetailsResponseDto$Outbound` instead. */
223
- export type Outbound = ExecutionDetailsResponseDto$Outbound;
224
- }
225
-
226
- export function executionDetailsResponseDtoToJSON(
227
- executionDetailsResponseDto: ExecutionDetailsResponseDto,
228
- ): string {
229
- return JSON.stringify(
230
- ExecutionDetailsResponseDto$outboundSchema.parse(
231
- executionDetailsResponseDto,
232
- ),
233
- );
234
- }
235
-
236
- export function executionDetailsResponseDtoFromJSON(
237
- jsonString: string,
238
- ): SafeParseResult<ExecutionDetailsResponseDto, SDKValidationError> {
239
- return safeParse(
240
- jsonString,
241
- (x) => ExecutionDetailsResponseDto$inboundSchema.parse(JSON.parse(x)),
242
- `Failed to parse 'ExecutionDetailsResponseDto' from JSON`,
243
- );
244
- }
@@ -1,99 +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 { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
-
11
- export type NotificationGroupResponseDto = {
12
- id?: string | undefined;
13
- name: string;
14
- environmentId: string;
15
- organizationId: string;
16
- parentId?: string | undefined;
17
- };
18
-
19
- /** @internal */
20
- export const NotificationGroupResponseDto$inboundSchema: z.ZodType<
21
- NotificationGroupResponseDto,
22
- z.ZodTypeDef,
23
- unknown
24
- > = z.object({
25
- _id: z.string().optional(),
26
- name: z.string(),
27
- _environmentId: z.string(),
28
- _organizationId: z.string(),
29
- _parentId: z.string().optional(),
30
- }).transform((v) => {
31
- return remap$(v, {
32
- "_id": "id",
33
- "_environmentId": "environmentId",
34
- "_organizationId": "organizationId",
35
- "_parentId": "parentId",
36
- });
37
- });
38
-
39
- /** @internal */
40
- export type NotificationGroupResponseDto$Outbound = {
41
- _id?: string | undefined;
42
- name: string;
43
- _environmentId: string;
44
- _organizationId: string;
45
- _parentId?: string | undefined;
46
- };
47
-
48
- /** @internal */
49
- export const NotificationGroupResponseDto$outboundSchema: z.ZodType<
50
- NotificationGroupResponseDto$Outbound,
51
- z.ZodTypeDef,
52
- NotificationGroupResponseDto
53
- > = z.object({
54
- id: z.string().optional(),
55
- name: z.string(),
56
- environmentId: z.string(),
57
- organizationId: z.string(),
58
- parentId: z.string().optional(),
59
- }).transform((v) => {
60
- return remap$(v, {
61
- id: "_id",
62
- environmentId: "_environmentId",
63
- organizationId: "_organizationId",
64
- parentId: "_parentId",
65
- });
66
- });
67
-
68
- /**
69
- * @internal
70
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
- */
72
- export namespace NotificationGroupResponseDto$ {
73
- /** @deprecated use `NotificationGroupResponseDto$inboundSchema` instead. */
74
- export const inboundSchema = NotificationGroupResponseDto$inboundSchema;
75
- /** @deprecated use `NotificationGroupResponseDto$outboundSchema` instead. */
76
- export const outboundSchema = NotificationGroupResponseDto$outboundSchema;
77
- /** @deprecated use `NotificationGroupResponseDto$Outbound` instead. */
78
- export type Outbound = NotificationGroupResponseDto$Outbound;
79
- }
80
-
81
- export function notificationGroupResponseDtoToJSON(
82
- notificationGroupResponseDto: NotificationGroupResponseDto,
83
- ): string {
84
- return JSON.stringify(
85
- NotificationGroupResponseDto$outboundSchema.parse(
86
- notificationGroupResponseDto,
87
- ),
88
- );
89
- }
90
-
91
- export function notificationGroupResponseDtoFromJSON(
92
- jsonString: string,
93
- ): SafeParseResult<NotificationGroupResponseDto, SDKValidationError> {
94
- return safeParse(
95
- jsonString,
96
- (x) => NotificationGroupResponseDto$inboundSchema.parse(JSON.parse(x)),
97
- `Failed to parse 'NotificationGroupResponseDto' from JSON`,
98
- );
99
- }
@@ -1,35 +0,0 @@
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
- export const TriggerRecipientsTypeEnum = {
9
- Subscriber: "Subscriber",
10
- Topic: "Topic",
11
- } as const;
12
- export type TriggerRecipientsTypeEnum = ClosedEnum<
13
- typeof TriggerRecipientsTypeEnum
14
- >;
15
-
16
- /** @internal */
17
- export const TriggerRecipientsTypeEnum$inboundSchema: z.ZodNativeEnum<
18
- typeof TriggerRecipientsTypeEnum
19
- > = z.nativeEnum(TriggerRecipientsTypeEnum);
20
-
21
- /** @internal */
22
- export const TriggerRecipientsTypeEnum$outboundSchema: z.ZodNativeEnum<
23
- typeof TriggerRecipientsTypeEnum
24
- > = TriggerRecipientsTypeEnum$inboundSchema;
25
-
26
- /**
27
- * @internal
28
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
29
- */
30
- export namespace TriggerRecipientsTypeEnum$ {
31
- /** @deprecated use `TriggerRecipientsTypeEnum$inboundSchema` instead. */
32
- export const inboundSchema = TriggerRecipientsTypeEnum$inboundSchema;
33
- /** @deprecated use `TriggerRecipientsTypeEnum$outboundSchema` instead. */
34
- export const outboundSchema = TriggerRecipientsTypeEnum$outboundSchema;
35
- }
@@ -1,96 +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 EnvironmentsControllerV1GetCurrentEnvironmentResponse = {
13
- headers: { [k: string]: Array<string> };
14
- result: components.EnvironmentResponseDto;
15
- };
16
-
17
- /** @internal */
18
- export const EnvironmentsControllerV1GetCurrentEnvironmentResponse$inboundSchema:
19
- z.ZodType<
20
- EnvironmentsControllerV1GetCurrentEnvironmentResponse,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- Headers: z.record(z.array(z.string())),
25
- Result: components.EnvironmentResponseDto$inboundSchema,
26
- }).transform((v) => {
27
- return remap$(v, {
28
- "Headers": "headers",
29
- "Result": "result",
30
- });
31
- });
32
-
33
- /** @internal */
34
- export type EnvironmentsControllerV1GetCurrentEnvironmentResponse$Outbound = {
35
- Headers: { [k: string]: Array<string> };
36
- Result: components.EnvironmentResponseDto$Outbound;
37
- };
38
-
39
- /** @internal */
40
- export const EnvironmentsControllerV1GetCurrentEnvironmentResponse$outboundSchema:
41
- z.ZodType<
42
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$Outbound,
43
- z.ZodTypeDef,
44
- EnvironmentsControllerV1GetCurrentEnvironmentResponse
45
- > = z.object({
46
- headers: z.record(z.array(z.string())),
47
- result: components.EnvironmentResponseDto$outboundSchema,
48
- }).transform((v) => {
49
- return remap$(v, {
50
- headers: "Headers",
51
- result: "Result",
52
- });
53
- });
54
-
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export namespace EnvironmentsControllerV1GetCurrentEnvironmentResponse$ {
60
- /** @deprecated use `EnvironmentsControllerV1GetCurrentEnvironmentResponse$inboundSchema` instead. */
61
- export const inboundSchema =
62
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$inboundSchema;
63
- /** @deprecated use `EnvironmentsControllerV1GetCurrentEnvironmentResponse$outboundSchema` instead. */
64
- export const outboundSchema =
65
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$outboundSchema;
66
- /** @deprecated use `EnvironmentsControllerV1GetCurrentEnvironmentResponse$Outbound` instead. */
67
- export type Outbound =
68
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$Outbound;
69
- }
70
-
71
- export function environmentsControllerV1GetCurrentEnvironmentResponseToJSON(
72
- environmentsControllerV1GetCurrentEnvironmentResponse:
73
- EnvironmentsControllerV1GetCurrentEnvironmentResponse,
74
- ): string {
75
- return JSON.stringify(
76
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$outboundSchema.parse(
77
- environmentsControllerV1GetCurrentEnvironmentResponse,
78
- ),
79
- );
80
- }
81
-
82
- export function environmentsControllerV1GetCurrentEnvironmentResponseFromJSON(
83
- jsonString: string,
84
- ): SafeParseResult<
85
- EnvironmentsControllerV1GetCurrentEnvironmentResponse,
86
- SDKValidationError
87
- > {
88
- return safeParse(
89
- jsonString,
90
- (x) =>
91
- EnvironmentsControllerV1GetCurrentEnvironmentResponse$inboundSchema.parse(
92
- JSON.parse(x),
93
- ),
94
- `Failed to parse 'EnvironmentsControllerV1GetCurrentEnvironmentResponse' from JSON`,
95
- );
96
- }
@@ -1,96 +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 EnvironmentsControllerV1ListMyEnvironmentsResponse = {
13
- headers: { [k: string]: Array<string> };
14
- result: Array<components.EnvironmentResponseDto>;
15
- };
16
-
17
- /** @internal */
18
- export const EnvironmentsControllerV1ListMyEnvironmentsResponse$inboundSchema:
19
- z.ZodType<
20
- EnvironmentsControllerV1ListMyEnvironmentsResponse,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- Headers: z.record(z.array(z.string())),
25
- Result: z.array(components.EnvironmentResponseDto$inboundSchema),
26
- }).transform((v) => {
27
- return remap$(v, {
28
- "Headers": "headers",
29
- "Result": "result",
30
- });
31
- });
32
-
33
- /** @internal */
34
- export type EnvironmentsControllerV1ListMyEnvironmentsResponse$Outbound = {
35
- Headers: { [k: string]: Array<string> };
36
- Result: Array<components.EnvironmentResponseDto$Outbound>;
37
- };
38
-
39
- /** @internal */
40
- export const EnvironmentsControllerV1ListMyEnvironmentsResponse$outboundSchema:
41
- z.ZodType<
42
- EnvironmentsControllerV1ListMyEnvironmentsResponse$Outbound,
43
- z.ZodTypeDef,
44
- EnvironmentsControllerV1ListMyEnvironmentsResponse
45
- > = z.object({
46
- headers: z.record(z.array(z.string())),
47
- result: z.array(components.EnvironmentResponseDto$outboundSchema),
48
- }).transform((v) => {
49
- return remap$(v, {
50
- headers: "Headers",
51
- result: "Result",
52
- });
53
- });
54
-
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export namespace EnvironmentsControllerV1ListMyEnvironmentsResponse$ {
60
- /** @deprecated use `EnvironmentsControllerV1ListMyEnvironmentsResponse$inboundSchema` instead. */
61
- export const inboundSchema =
62
- EnvironmentsControllerV1ListMyEnvironmentsResponse$inboundSchema;
63
- /** @deprecated use `EnvironmentsControllerV1ListMyEnvironmentsResponse$outboundSchema` instead. */
64
- export const outboundSchema =
65
- EnvironmentsControllerV1ListMyEnvironmentsResponse$outboundSchema;
66
- /** @deprecated use `EnvironmentsControllerV1ListMyEnvironmentsResponse$Outbound` instead. */
67
- export type Outbound =
68
- EnvironmentsControllerV1ListMyEnvironmentsResponse$Outbound;
69
- }
70
-
71
- export function environmentsControllerV1ListMyEnvironmentsResponseToJSON(
72
- environmentsControllerV1ListMyEnvironmentsResponse:
73
- EnvironmentsControllerV1ListMyEnvironmentsResponse,
74
- ): string {
75
- return JSON.stringify(
76
- EnvironmentsControllerV1ListMyEnvironmentsResponse$outboundSchema.parse(
77
- environmentsControllerV1ListMyEnvironmentsResponse,
78
- ),
79
- );
80
- }
81
-
82
- export function environmentsControllerV1ListMyEnvironmentsResponseFromJSON(
83
- jsonString: string,
84
- ): SafeParseResult<
85
- EnvironmentsControllerV1ListMyEnvironmentsResponse,
86
- SDKValidationError
87
- > {
88
- return safeParse(
89
- jsonString,
90
- (x) =>
91
- EnvironmentsControllerV1ListMyEnvironmentsResponse$inboundSchema.parse(
92
- JSON.parse(x),
93
- ),
94
- `Failed to parse 'EnvironmentsControllerV1ListMyEnvironmentsResponse' from JSON`,
95
- );
96
- }
@@ -1,94 +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 EnvironmentsControllerV1ListOrganizationApiKeysResponse = {
13
- headers: { [k: string]: Array<string> };
14
- result: Array<components.ApiKey>;
15
- };
16
-
17
- /** @internal */
18
- export const EnvironmentsControllerV1ListOrganizationApiKeysResponse$inboundSchema:
19
- z.ZodType<
20
- EnvironmentsControllerV1ListOrganizationApiKeysResponse,
21
- z.ZodTypeDef,
22
- unknown
23
- > = z.object({
24
- Headers: z.record(z.array(z.string())),
25
- Result: z.array(components.ApiKey$inboundSchema),
26
- }).transform((v) => {
27
- return remap$(v, {
28
- "Headers": "headers",
29
- "Result": "result",
30
- });
31
- });
32
-
33
- /** @internal */
34
- export type EnvironmentsControllerV1ListOrganizationApiKeysResponse$Outbound = {
35
- Headers: { [k: string]: Array<string> };
36
- Result: Array<components.ApiKey$Outbound>;
37
- };
38
-
39
- /** @internal */
40
- export const EnvironmentsControllerV1ListOrganizationApiKeysResponse$outboundSchema:
41
- z.ZodType<
42
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$Outbound,
43
- z.ZodTypeDef,
44
- EnvironmentsControllerV1ListOrganizationApiKeysResponse
45
- > = z.object({
46
- headers: z.record(z.array(z.string())),
47
- result: z.array(components.ApiKey$outboundSchema),
48
- }).transform((v) => {
49
- return remap$(v, {
50
- headers: "Headers",
51
- result: "Result",
52
- });
53
- });
54
-
55
- /**
56
- * @internal
57
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
- */
59
- export namespace EnvironmentsControllerV1ListOrganizationApiKeysResponse$ {
60
- /** @deprecated use `EnvironmentsControllerV1ListOrganizationApiKeysResponse$inboundSchema` instead. */
61
- export const inboundSchema =
62
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$inboundSchema;
63
- /** @deprecated use `EnvironmentsControllerV1ListOrganizationApiKeysResponse$outboundSchema` instead. */
64
- export const outboundSchema =
65
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$outboundSchema;
66
- /** @deprecated use `EnvironmentsControllerV1ListOrganizationApiKeysResponse$Outbound` instead. */
67
- export type Outbound =
68
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$Outbound;
69
- }
70
-
71
- export function environmentsControllerV1ListOrganizationApiKeysResponseToJSON(
72
- environmentsControllerV1ListOrganizationApiKeysResponse:
73
- EnvironmentsControllerV1ListOrganizationApiKeysResponse,
74
- ): string {
75
- return JSON.stringify(
76
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$outboundSchema
77
- .parse(environmentsControllerV1ListOrganizationApiKeysResponse),
78
- );
79
- }
80
-
81
- export function environmentsControllerV1ListOrganizationApiKeysResponseFromJSON(
82
- jsonString: string,
83
- ): SafeParseResult<
84
- EnvironmentsControllerV1ListOrganizationApiKeysResponse,
85
- SDKValidationError
86
- > {
87
- return safeParse(
88
- jsonString,
89
- (x) =>
90
- EnvironmentsControllerV1ListOrganizationApiKeysResponse$inboundSchema
91
- .parse(JSON.parse(x)),
92
- `Failed to parse 'EnvironmentsControllerV1ListOrganizationApiKeysResponse' from JSON`,
93
- );
94
- }