@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,182 +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 NotificationGroupsControllerUpdateNotificationGroupRequest = {
13
- id: string;
14
- createNotificationGroupRequestDto:
15
- components.CreateNotificationGroupRequestDto;
16
- };
17
-
18
- export type NotificationGroupsControllerUpdateNotificationGroupResponse = {
19
- headers: { [k: string]: Array<string> };
20
- result: components.NotificationGroupResponseDto;
21
- };
22
-
23
- /** @internal */
24
- export const NotificationGroupsControllerUpdateNotificationGroupRequest$inboundSchema:
25
- z.ZodType<
26
- NotificationGroupsControllerUpdateNotificationGroupRequest,
27
- z.ZodTypeDef,
28
- unknown
29
- > = z.object({
30
- id: z.string(),
31
- CreateNotificationGroupRequestDto:
32
- components.CreateNotificationGroupRequestDto$inboundSchema,
33
- }).transform((v) => {
34
- return remap$(v, {
35
- "CreateNotificationGroupRequestDto": "createNotificationGroupRequestDto",
36
- });
37
- });
38
-
39
- /** @internal */
40
- export type NotificationGroupsControllerUpdateNotificationGroupRequest$Outbound =
41
- {
42
- id: string;
43
- CreateNotificationGroupRequestDto:
44
- components.CreateNotificationGroupRequestDto$Outbound;
45
- };
46
-
47
- /** @internal */
48
- export const NotificationGroupsControllerUpdateNotificationGroupRequest$outboundSchema:
49
- z.ZodType<
50
- NotificationGroupsControllerUpdateNotificationGroupRequest$Outbound,
51
- z.ZodTypeDef,
52
- NotificationGroupsControllerUpdateNotificationGroupRequest
53
- > = z.object({
54
- id: z.string(),
55
- createNotificationGroupRequestDto:
56
- components.CreateNotificationGroupRequestDto$outboundSchema,
57
- }).transform((v) => {
58
- return remap$(v, {
59
- createNotificationGroupRequestDto: "CreateNotificationGroupRequestDto",
60
- });
61
- });
62
-
63
- /**
64
- * @internal
65
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
- */
67
- export namespace NotificationGroupsControllerUpdateNotificationGroupRequest$ {
68
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupRequest$inboundSchema` instead. */
69
- export const inboundSchema =
70
- NotificationGroupsControllerUpdateNotificationGroupRequest$inboundSchema;
71
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupRequest$outboundSchema` instead. */
72
- export const outboundSchema =
73
- NotificationGroupsControllerUpdateNotificationGroupRequest$outboundSchema;
74
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupRequest$Outbound` instead. */
75
- export type Outbound =
76
- NotificationGroupsControllerUpdateNotificationGroupRequest$Outbound;
77
- }
78
-
79
- export function notificationGroupsControllerUpdateNotificationGroupRequestToJSON(
80
- notificationGroupsControllerUpdateNotificationGroupRequest:
81
- NotificationGroupsControllerUpdateNotificationGroupRequest,
82
- ): string {
83
- return JSON.stringify(
84
- NotificationGroupsControllerUpdateNotificationGroupRequest$outboundSchema
85
- .parse(notificationGroupsControllerUpdateNotificationGroupRequest),
86
- );
87
- }
88
-
89
- export function notificationGroupsControllerUpdateNotificationGroupRequestFromJSON(
90
- jsonString: string,
91
- ): SafeParseResult<
92
- NotificationGroupsControllerUpdateNotificationGroupRequest,
93
- SDKValidationError
94
- > {
95
- return safeParse(
96
- jsonString,
97
- (x) =>
98
- NotificationGroupsControllerUpdateNotificationGroupRequest$inboundSchema
99
- .parse(JSON.parse(x)),
100
- `Failed to parse 'NotificationGroupsControllerUpdateNotificationGroupRequest' from JSON`,
101
- );
102
- }
103
-
104
- /** @internal */
105
- export const NotificationGroupsControllerUpdateNotificationGroupResponse$inboundSchema:
106
- z.ZodType<
107
- NotificationGroupsControllerUpdateNotificationGroupResponse,
108
- z.ZodTypeDef,
109
- unknown
110
- > = z.object({
111
- Headers: z.record(z.array(z.string())),
112
- Result: components.NotificationGroupResponseDto$inboundSchema,
113
- }).transform((v) => {
114
- return remap$(v, {
115
- "Headers": "headers",
116
- "Result": "result",
117
- });
118
- });
119
-
120
- /** @internal */
121
- export type NotificationGroupsControllerUpdateNotificationGroupResponse$Outbound =
122
- {
123
- Headers: { [k: string]: Array<string> };
124
- Result: components.NotificationGroupResponseDto$Outbound;
125
- };
126
-
127
- /** @internal */
128
- export const NotificationGroupsControllerUpdateNotificationGroupResponse$outboundSchema:
129
- z.ZodType<
130
- NotificationGroupsControllerUpdateNotificationGroupResponse$Outbound,
131
- z.ZodTypeDef,
132
- NotificationGroupsControllerUpdateNotificationGroupResponse
133
- > = z.object({
134
- headers: z.record(z.array(z.string())),
135
- result: components.NotificationGroupResponseDto$outboundSchema,
136
- }).transform((v) => {
137
- return remap$(v, {
138
- headers: "Headers",
139
- result: "Result",
140
- });
141
- });
142
-
143
- /**
144
- * @internal
145
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
146
- */
147
- export namespace NotificationGroupsControllerUpdateNotificationGroupResponse$ {
148
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupResponse$inboundSchema` instead. */
149
- export const inboundSchema =
150
- NotificationGroupsControllerUpdateNotificationGroupResponse$inboundSchema;
151
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupResponse$outboundSchema` instead. */
152
- export const outboundSchema =
153
- NotificationGroupsControllerUpdateNotificationGroupResponse$outboundSchema;
154
- /** @deprecated use `NotificationGroupsControllerUpdateNotificationGroupResponse$Outbound` instead. */
155
- export type Outbound =
156
- NotificationGroupsControllerUpdateNotificationGroupResponse$Outbound;
157
- }
158
-
159
- export function notificationGroupsControllerUpdateNotificationGroupResponseToJSON(
160
- notificationGroupsControllerUpdateNotificationGroupResponse:
161
- NotificationGroupsControllerUpdateNotificationGroupResponse,
162
- ): string {
163
- return JSON.stringify(
164
- NotificationGroupsControllerUpdateNotificationGroupResponse$outboundSchema
165
- .parse(notificationGroupsControllerUpdateNotificationGroupResponse),
166
- );
167
- }
168
-
169
- export function notificationGroupsControllerUpdateNotificationGroupResponseFromJSON(
170
- jsonString: string,
171
- ): SafeParseResult<
172
- NotificationGroupsControllerUpdateNotificationGroupResponse,
173
- SDKValidationError
174
- > {
175
- return safeParse(
176
- jsonString,
177
- (x) =>
178
- NotificationGroupsControllerUpdateNotificationGroupResponse$inboundSchema
179
- .parse(JSON.parse(x)),
180
- `Failed to parse 'NotificationGroupsControllerUpdateNotificationGroupResponse' from JSON`,
181
- );
182
- }
@@ -1,24 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { environmentsApiKeysList } from "../funcs/environmentsApiKeysList.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { unwrapAsync } from "../types/fp.js";
9
-
10
- export class ApiKeys extends ClientSDK {
11
- /**
12
- * Get api keys
13
- */
14
- async list(
15
- options?: RequestOptions,
16
- ): Promise<
17
- operations.EnvironmentsControllerV1ListOrganizationApiKeysResponse
18
- > {
19
- return unwrapAsync(environmentsApiKeysList(
20
- this,
21
- options,
22
- ));
23
- }
24
- }
@@ -1,41 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { environmentsList } from "../funcs/environmentsList.js";
6
- import { environmentsRetrieve } from "../funcs/environmentsRetrieve.js";
7
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
8
- import * as operations from "../models/operations/index.js";
9
- import { unwrapAsync } from "../types/fp.js";
10
- import { ApiKeys } from "./apikeys.js";
11
-
12
- export class Environments extends ClientSDK {
13
- private _apiKeys?: ApiKeys;
14
- get apiKeys(): ApiKeys {
15
- return (this._apiKeys ??= new ApiKeys(this._options));
16
- }
17
-
18
- /**
19
- * Get current environment
20
- */
21
- async retrieve(
22
- options?: RequestOptions,
23
- ): Promise<operations.EnvironmentsControllerV1GetCurrentEnvironmentResponse> {
24
- return unwrapAsync(environmentsRetrieve(
25
- this,
26
- options,
27
- ));
28
- }
29
-
30
- /**
31
- * Get environments
32
- */
33
- async list(
34
- options?: RequestOptions,
35
- ): Promise<operations.EnvironmentsControllerV1ListMyEnvironmentsResponse> {
36
- return unwrapAsync(environmentsList(
37
- this,
38
- options,
39
- ));
40
- }
41
- }
@@ -1,28 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { executionDetailsRetrieve } from "../funcs/executionDetailsRetrieve.js";
6
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
7
- import * as operations from "../models/operations/index.js";
8
- import { unwrapAsync } from "../types/fp.js";
9
-
10
- export class ExecutionDetails extends ClientSDK {
11
- /**
12
- * Get execution details
13
- */
14
- async retrieve(
15
- notificationId: string,
16
- subscriberId: string,
17
- options?: RequestOptions,
18
- ): Promise<
19
- operations.ExecutionDetailsControllerGetExecutionDetailsForNotificationResponse
20
- > {
21
- return unwrapAsync(executionDetailsRetrieve(
22
- this,
23
- notificationId,
24
- subscriberId,
25
- options,
26
- ));
27
- }
28
- }
@@ -1,111 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import { workflowGroupsCreate } from "../funcs/workflowGroupsCreate.js";
6
- import { workflowGroupsDelete } from "../funcs/workflowGroupsDelete.js";
7
- import { workflowGroupsList } from "../funcs/workflowGroupsList.js";
8
- import { workflowGroupsRetrieve } from "../funcs/workflowGroupsRetrieve.js";
9
- import { workflowGroupsUpdate } from "../funcs/workflowGroupsUpdate.js";
10
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
11
- import * as components from "../models/components/index.js";
12
- import * as operations from "../models/operations/index.js";
13
- import { unwrapAsync } from "../types/fp.js";
14
-
15
- export class WorkflowGroups extends ClientSDK {
16
- /**
17
- * Create workflow group
18
- *
19
- * @remarks
20
- * workflow group was previously named notification group
21
- */
22
- async create(
23
- request: components.CreateNotificationGroupRequestDto,
24
- options?: RequestOptions,
25
- ): Promise<
26
- operations.NotificationGroupsControllerCreateNotificationGroupResponse
27
- > {
28
- return unwrapAsync(workflowGroupsCreate(
29
- this,
30
- request,
31
- options,
32
- ));
33
- }
34
-
35
- /**
36
- * Get workflow groups
37
- *
38
- * @remarks
39
- * workflow group was previously named notification group
40
- */
41
- async list(
42
- options?: RequestOptions,
43
- ): Promise<
44
- operations.NotificationGroupsControllerListNotificationGroupsResponse
45
- > {
46
- return unwrapAsync(workflowGroupsList(
47
- this,
48
- options,
49
- ));
50
- }
51
-
52
- /**
53
- * Get workflow group
54
- *
55
- * @remarks
56
- * workflow group was previously named notification group
57
- */
58
- async retrieve(
59
- id: string,
60
- options?: RequestOptions,
61
- ): Promise<
62
- operations.NotificationGroupsControllerGetNotificationGroupResponse
63
- > {
64
- return unwrapAsync(workflowGroupsRetrieve(
65
- this,
66
- id,
67
- options,
68
- ));
69
- }
70
-
71
- /**
72
- * Update workflow group
73
- *
74
- * @remarks
75
- * workflow group was previously named notification group
76
- */
77
- async update(
78
- createNotificationGroupRequestDto:
79
- components.CreateNotificationGroupRequestDto,
80
- id: string,
81
- options?: RequestOptions,
82
- ): Promise<
83
- operations.NotificationGroupsControllerUpdateNotificationGroupResponse
84
- > {
85
- return unwrapAsync(workflowGroupsUpdate(
86
- this,
87
- createNotificationGroupRequestDto,
88
- id,
89
- options,
90
- ));
91
- }
92
-
93
- /**
94
- * Delete workflow group
95
- *
96
- * @remarks
97
- * workflow group was previously named notification group
98
- */
99
- async delete(
100
- id: string,
101
- options?: RequestOptions,
102
- ): Promise<
103
- operations.NotificationGroupsControllerDeleteNotificationGroupResponse
104
- > {
105
- return unwrapAsync(workflowGroupsDelete(
106
- this,
107
- id,
108
- options,
109
- ));
110
- }
111
- }