@novu/api 3.19.0 → 3.19.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (121) hide show
  1. package/funcs/topicsUpdate.d.ts +1 -1
  2. package/funcs/topicsUpdate.js +1 -1
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +4 -4
  5. package/lib/config.js +4 -4
  6. package/lib/encodings.d.ts +10 -9
  7. package/lib/encodings.d.ts.map +1 -1
  8. package/lib/encodings.js +29 -13
  9. package/lib/encodings.js.map +1 -1
  10. package/models/components/agentreplypayloaddto.d.ts +6 -5
  11. package/models/components/agentreplypayloaddto.d.ts.map +1 -1
  12. package/models/components/agentreplypayloaddto.js +3 -0
  13. package/models/components/agentreplypayloaddto.js.map +1 -1
  14. package/models/components/chatcontroldto.d.ts +21 -0
  15. package/models/components/chatcontroldto.d.ts.map +1 -1
  16. package/models/components/chatcontroldto.js +14 -1
  17. package/models/components/chatcontroldto.js.map +1 -1
  18. package/models/components/chatstepresponsedto.d.ts +18 -0
  19. package/models/components/chatstepresponsedto.d.ts.map +1 -1
  20. package/models/components/chatstepresponsedto.js +11 -1
  21. package/models/components/chatstepresponsedto.js.map +1 -1
  22. package/models/components/contentissueenum.d.ts +2 -0
  23. package/models/components/contentissueenum.d.ts.map +1 -1
  24. package/models/components/contentissueenum.js +2 -0
  25. package/models/components/contentissueenum.js.map +1 -1
  26. package/models/components/createcontextrequestdto.d.ts +5 -0
  27. package/models/components/createcontextrequestdto.d.ts.map +1 -1
  28. package/models/components/createcontextrequestdto.js +1 -0
  29. package/models/components/createcontextrequestdto.js.map +1 -1
  30. package/models/components/createupdatetopicrequestdto.d.ts +9 -0
  31. package/models/components/createupdatetopicrequestdto.d.ts.map +1 -1
  32. package/models/components/createupdatetopicrequestdto.js +1 -0
  33. package/models/components/createupdatetopicrequestdto.js.map +1 -1
  34. package/models/components/credentialsdto.d.ts +24 -0
  35. package/models/components/credentialsdto.d.ts.map +1 -1
  36. package/models/components/credentialsdto.js +17 -1
  37. package/models/components/credentialsdto.js.map +1 -1
  38. package/models/components/getcontextresponsedto.d.ts +4 -0
  39. package/models/components/getcontextresponsedto.d.ts.map +1 -1
  40. package/models/components/getcontextresponsedto.js +1 -0
  41. package/models/components/getcontextresponsedto.js.map +1 -1
  42. package/models/components/humansignaldto.d.ts +78 -0
  43. package/models/components/humansignaldto.d.ts.map +1 -0
  44. package/models/components/humansignaldto.js +78 -0
  45. package/models/components/humansignaldto.js.map +1 -0
  46. package/models/components/index.d.ts +2 -0
  47. package/models/components/index.d.ts.map +1 -1
  48. package/models/components/index.js +2 -0
  49. package/models/components/index.js.map +1 -1
  50. package/models/components/integrationresponsedto.d.ts +4 -4
  51. package/models/components/integrationresponsedto.d.ts.map +1 -1
  52. package/models/components/integrationresponsedto.js +4 -4
  53. package/models/components/integrationresponsedto.js.map +1 -1
  54. package/models/components/stepcontentissuedto.d.ts +5 -0
  55. package/models/components/stepcontentissuedto.d.ts.map +1 -1
  56. package/models/components/stepcontentissuedto.js +2 -0
  57. package/models/components/stepcontentissuedto.js.map +1 -1
  58. package/models/components/stepintegrationissue.d.ts +5 -0
  59. package/models/components/stepintegrationissue.d.ts.map +1 -1
  60. package/models/components/stepintegrationissue.js +2 -0
  61. package/models/components/stepintegrationissue.js.map +1 -1
  62. package/models/components/stepissueseverityenum.d.ts +16 -0
  63. package/models/components/stepissueseverityenum.d.ts.map +1 -0
  64. package/models/components/stepissueseverityenum.js +50 -0
  65. package/models/components/stepissueseverityenum.js.map +1 -0
  66. package/models/components/toolapprovalrequestpayloaddto.d.ts +15 -0
  67. package/models/components/toolapprovalrequestpayloaddto.d.ts.map +1 -1
  68. package/models/components/toolapprovalrequestpayloaddto.js +3 -0
  69. package/models/components/toolapprovalrequestpayloaddto.js.map +1 -1
  70. package/models/components/topicdto.d.ts +6 -0
  71. package/models/components/topicdto.d.ts.map +1 -1
  72. package/models/components/topicdto.js +1 -0
  73. package/models/components/topicdto.js.map +1 -1
  74. package/models/components/topicresponsedto.d.ts +6 -0
  75. package/models/components/topicresponsedto.d.ts.map +1 -1
  76. package/models/components/topicresponsedto.js +1 -0
  77. package/models/components/topicresponsedto.js.map +1 -1
  78. package/models/components/uicomponentenum.d.ts +1 -0
  79. package/models/components/uicomponentenum.d.ts.map +1 -1
  80. package/models/components/uicomponentenum.js +1 -0
  81. package/models/components/uicomponentenum.js.map +1 -1
  82. package/models/components/updatecontextrequestdto.d.ts +5 -0
  83. package/models/components/updatecontextrequestdto.d.ts.map +1 -1
  84. package/models/components/updatecontextrequestdto.js +1 -0
  85. package/models/components/updatecontextrequestdto.js.map +1 -1
  86. package/models/components/updatetopicrequestdto.d.ts +11 -2
  87. package/models/components/updatetopicrequestdto.d.ts.map +1 -1
  88. package/models/components/updatetopicrequestdto.js +2 -1
  89. package/models/components/updatetopicrequestdto.js.map +1 -1
  90. package/models/errors/topicresponsedto.d.ts +12 -0
  91. package/models/errors/topicresponsedto.d.ts.map +1 -1
  92. package/models/errors/topicresponsedto.js +3 -0
  93. package/models/errors/topicresponsedto.js.map +1 -1
  94. package/package.json +1 -1
  95. package/sdk/topics.d.ts +1 -1
  96. package/sdk/topics.js +1 -1
  97. package/src/funcs/topicsUpdate.ts +1 -1
  98. package/src/lib/config.ts +4 -4
  99. package/src/lib/encodings.ts +58 -23
  100. package/src/models/components/agentreplypayloaddto.ts +12 -1
  101. package/src/models/components/chatcontroldto.ts +31 -0
  102. package/src/models/components/chatstepresponsedto.ts +25 -0
  103. package/src/models/components/contentissueenum.ts +2 -0
  104. package/src/models/components/createcontextrequestdto.ts +6 -0
  105. package/src/models/components/createupdatetopicrequestdto.ts +6 -0
  106. package/src/models/components/credentialsdto.ts +34 -0
  107. package/src/models/components/getcontextresponsedto.ts +5 -0
  108. package/src/models/components/humansignaldto.ts +122 -0
  109. package/src/models/components/index.ts +2 -0
  110. package/src/models/components/integrationresponsedto.ts +9 -7
  111. package/src/models/components/stepcontentissuedto.ts +9 -0
  112. package/src/models/components/stepintegrationissue.ts +9 -0
  113. package/src/models/components/stepissueseverityenum.ts +23 -0
  114. package/src/models/components/toolapprovalrequestpayloaddto.ts +18 -0
  115. package/src/models/components/topicdto.ts +5 -0
  116. package/src/models/components/topicresponsedto.ts +5 -0
  117. package/src/models/components/uicomponentenum.ts +1 -0
  118. package/src/models/components/updatecontextrequestdto.ts +6 -0
  119. package/src/models/components/updatetopicrequestdto.ts +9 -3
  120. package/src/models/errors/topicresponsedto.ts +10 -0
  121. package/src/sdk/topics.ts +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"topicresponsedto.js","sourceRoot":"","sources":["../../src/models/errors/topicresponsedto.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,0CAA4B;AAC5B,2DAA0D;AAC1D,iDAA2C;AAyB3C,MAAa,gBAAiB,SAAQ,wBAAS;IAqB7C,YACE,GAAyB,EACzB,QAAgE;QAEhE,MAAM,OAAO,GAAG,SAAS,IAAI,GAAG,IAAI,OAAO,GAAG,CAAC,OAAO,KAAK,QAAQ;YACjE,CAAC,CAAC,GAAG,CAAC,OAAO;YACb,CAAC,CAAC,uBAAuB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,CAAC;QACjD,KAAK,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;QACzB,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;QACjB,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,EAAE,CAAC;QACjB,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,GAAG,CAAC;QACnB,IAAI,GAAG,CAAC,SAAS,IAAI,IAAI;YAAE,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAC1D,IAAI,GAAG,CAAC,SAAS,IAAI,IAAI;YAAE,IAAI,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;QAE1D,IAAI,CAAC,IAAI,GAAG,kBAAkB,CAAC;I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CAAC;KACC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACf,MAAM,QAAQ,GAAG,IAAA,qBAAM,EAAC,CAAC,EAAE;QACzB,KAAK,EAAE,IAAI;KACZ,CAAC,CAAC;IAEH,OAAO,IAAI,gBAAgB,CAAC,QAAQ,EAAE;QACpC,OAAO,EAAE,CAAC,CAAC,QAAQ;QACnB,QAAQ,EAAE,CAAC,CAAC,SAAS;QACrB,IAAI,EAAE,CAAC,CAAC,KAAK;KACd,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@novu/api",
3
- "version": "3.19.0",
3
+ "version": "3.19.1",
4
4
  "author": "Novu",
5
5
  "description": "The <Inbox /> infrastructure for modern products",
6
6
  "main": "./index.js",
package/sdk/topics.d.ts CHANGED
@@ -35,7 +35,7 @@ export declare class Topics extends ClientSDK {
35
35
  * Update a topic
36
36
  *
37
37
  * @remarks
38
- * Update a topic name by its unique key identifier **topicKey**
38
+ * Update a topic name or data by its unique key identifier **topicKey**
39
39
  */
40
40
  update(updateTopicRequestDto: components.UpdateTopicRequestDto, topicKey: string, idempotencyKey?: string | undefined, options?: RequestOptions): Promise<operations.TopicsControllerUpdateTopicResponse>;
41
41
  /**
package/sdk/topics.js CHANGED
@@ -53,7 +53,7 @@ class Topics extends sdks_js_1.ClientSDK {
53
53
  * Update a topic
54
54
  *
55
55
  * @remarks
56
- * Update a topic name by its unique key identifier **topicKey**
56
+ * Update a topic name or data by its unique key identifier **topicKey**
57
57
  */
58
58
  async update(updateTopicRequestDto, topicKey, idempotencyKey, options) {
59
59
  return (0, fp_js_1.unwrapAsync)((0, topicsUpdate_js_1.topicsUpdate)(this, updateTopicRequestDto, topicKey, idempotencyKey, options));
@@ -31,7 +31,7 @@ import { Result } from "../types/fp.js";
31
31
  * Update a topic
32
32
  *
33
33
  * @remarks
34
- * Update a topic name by its unique key identifier **topicKey**
34
+ * Update a topic name or data by its unique key identifier **topicKey**
35
35
  */
36
36
  export function topicsUpdate(
37
37
  client: NovuCore,
package/src/lib/config.ts CHANGED
@@ -58,8 +58,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
58
58
 
59
59
  export const SDK_METADATA = {
60
60
  language: "typescript",
61
- openapiDocVersion: "3.18.1",
62
- sdkVersion: "3.19.0",
63
- genVersion: "2.926.8",
64
- userAgent: "speakeasy-sdk/typescript 3.19.0 2.926.8 3.18.1 @novu/api",
61
+ openapiDocVersion: "3.19.0",
62
+ sdkVersion: "3.19.1",
63
+ genVersion: "2.933.0",
64
+ userAgent: "speakeasy-sdk/typescript 3.19.1 2.933.0 3.19.0 @novu/api",
65
65
  } as const;
@@ -12,10 +12,41 @@ export class EncodingError extends Error {
12
12
  }
13
13
  }
14
14
 
15
+ export type CharEncoding = "percent" | "percentExceptReserved" | "none";
16
+
17
+ const reservedEscapes = /%(2[346bcf]|3[abdf]|40|5[bd])/gi;
18
+
19
+ function encodeKeyChars(
20
+ v: string,
21
+ charEncoding: CharEncoding | undefined,
22
+ ): string {
23
+ return encodeChars(
24
+ v,
25
+ charEncoding === "percentExceptReserved" ? "percent" : charEncoding,
26
+ );
27
+ }
28
+
29
+ function encodeChars(
30
+ v: string,
31
+ charEncoding: CharEncoding | undefined,
32
+ ): string {
33
+ switch (charEncoding) {
34
+ case "percent":
35
+ return encodeURIComponent(v);
36
+ case "percentExceptReserved":
37
+ return encodeURIComponent(v).replace(
38
+ reservedEscapes,
39
+ (m) => decodeURIComponent(m),
40
+ );
41
+ default:
42
+ return v;
43
+ }
44
+ }
45
+
15
46
  export function encodeMatrix(
16
47
  key: string,
17
48
  value: unknown,
18
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
49
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
19
50
  ): string | undefined {
20
51
  let out = "";
21
52
  const pairs: [string, unknown][] = options?.explode
@@ -27,7 +58,7 @@ export function encodeMatrix(
27
58
  }
28
59
 
29
60
  const encodeString = (v: string) => {
30
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
61
+ return encodeChars(v, options?.charEncoding);
31
62
  };
32
63
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
33
64
 
@@ -52,7 +83,7 @@ export function encodeMatrix(
52
83
  return;
53
84
  }
54
85
 
55
- const keyPrefix = encodeString(pk);
86
+ const keyPrefix = encodeKeyChars(pk, options?.charEncoding);
56
87
  tmp = `${keyPrefix}=${encValue}`;
57
88
  // trim trailing '=' if value was empty
58
89
  if (tmp === `${keyPrefix}=`) {
@@ -73,7 +104,7 @@ export function encodeMatrix(
73
104
  export function encodeLabel(
74
105
  key: string,
75
106
  value: unknown,
76
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
107
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
77
108
  ): string | undefined {
78
109
  let out = "";
79
110
  const pairs: [string, unknown][] = options?.explode
@@ -85,7 +116,7 @@ export function encodeLabel(
85
116
  }
86
117
 
87
118
  const encodeString = (v: string) => {
88
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
119
+ return encodeChars(v, options?.charEncoding);
89
120
  };
90
121
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
91
122
 
@@ -103,7 +134,7 @@ export function encodeLabel(
103
134
  encValue = mapped?.join("").slice(1);
104
135
  } else {
105
136
  const k = options?.explode && isPlainObject(value)
106
- ? `${encodeString(pk)}=`
137
+ ? `${encodeKeyChars(pk, options?.charEncoding)}=`
107
138
  : "";
108
139
  encValue = `${k}${encodeValue(pv)}`;
109
140
  }
@@ -117,14 +148,14 @@ export function encodeLabel(
117
148
  type FormEncoder = (
118
149
  key: string,
119
150
  value: unknown,
120
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
151
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
121
152
  ) => string | undefined;
122
153
 
123
154
  function formEncoder(sep: string): FormEncoder {
124
155
  return (
125
156
  key: string,
126
157
  value: unknown,
127
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
158
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
128
159
  ) => {
129
160
  let out = "";
130
161
  const pairs: [string, unknown][] = options?.explode
@@ -136,7 +167,7 @@ function formEncoder(sep: string): FormEncoder {
136
167
  }
137
168
 
138
169
  const encodeString = (v: string) => {
139
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
170
+ return encodeChars(v, options?.charEncoding);
140
171
  };
141
172
 
142
173
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
@@ -163,7 +194,7 @@ function formEncoder(sep: string): FormEncoder {
163
194
  return;
164
195
  }
165
196
 
166
- tmp = `${encodeString(pk)}=${encValue}`;
197
+ tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
167
198
 
168
199
  // If we end up with the nothing then skip forward
169
200
  if (!tmp || tmp === "=") {
@@ -184,7 +215,7 @@ export const encodePipeDelimited = formEncoder("|");
184
215
  export function encodeBodyForm(
185
216
  key: string,
186
217
  value: unknown,
187
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
218
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
188
219
  ): string {
189
220
  let out = "";
190
221
  const pairs: [string, unknown][] = options?.explode
@@ -192,7 +223,7 @@ export function encodeBodyForm(
192
223
  : [[key, value]];
193
224
 
194
225
  const encodeString = (v: string) => {
195
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
226
+ return encodeChars(v, options?.charEncoding);
196
227
  };
197
228
 
198
229
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
@@ -211,7 +242,7 @@ export function encodeBodyForm(
211
242
  encValue = `${encodeValue(pv)}`;
212
243
  }
213
244
 
214
- tmp = `${encodeString(pk)}=${encValue}`;
245
+ tmp = `${encodeKeyChars(pk, options?.charEncoding)}=${encValue}`;
215
246
 
216
247
  // If we end up with the nothing then skip forward
217
248
  if (!tmp || tmp === "=") {
@@ -227,7 +258,7 @@ export function encodeBodyForm(
227
258
  export function encodeDeepObject(
228
259
  key: string,
229
260
  value: unknown,
230
- options?: { charEncoding?: "percent" | "none" },
261
+ options?: { charEncoding?: CharEncoding },
231
262
  ): string | undefined {
232
263
  if (value == null) {
233
264
  return;
@@ -245,7 +276,7 @@ export function encodeDeepObject(
245
276
  export function encodeDeepObjectObject(
246
277
  key: string,
247
278
  value: unknown,
248
- options?: { charEncoding?: "percent" | "none" },
279
+ options?: { charEncoding?: CharEncoding },
249
280
  ): string | undefined {
250
281
  if (value == null) {
251
282
  return;
@@ -254,7 +285,7 @@ export function encodeDeepObjectObject(
254
285
  let out = "";
255
286
 
256
287
  const encodeString = (v: string) => {
257
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
288
+ return encodeChars(v, options?.charEncoding);
258
289
  };
259
290
 
260
291
  if (!isPlainObject(value)) {
@@ -278,7 +309,9 @@ export function encodeDeepObjectObject(
278
309
 
279
310
  const pairs: unknown[] = Array.isArray(cv) ? cv : [cv];
280
311
  const encoded = mapDefined(pairs, (v) => {
281
- return `${encodeString(pk)}=${encodeString(serializeValue(v))}`;
312
+ return `${encodeKeyChars(pk, options?.charEncoding)}=${
313
+ encodeString(serializeValue(v))
314
+ }`;
282
315
  })?.join("&");
283
316
 
284
317
  out += encoded == null ? "" : `&${encoded}`;
@@ -290,25 +323,27 @@ export function encodeDeepObjectObject(
290
323
  export function encodeJSON(
291
324
  key: string,
292
325
  value: unknown,
293
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
326
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
294
327
  ): string | undefined {
295
328
  if (typeof value === "undefined") {
296
329
  return;
297
330
  }
298
331
 
299
332
  const encodeString = (v: string) => {
300
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
333
+ return encodeChars(v, options?.charEncoding);
301
334
  };
302
335
 
303
336
  const encVal = encodeString(JSON.stringify(value, jsonReplacer));
304
337
 
305
- return options?.explode ? encVal : `${encodeString(key)}=${encVal}`;
338
+ return options?.explode
339
+ ? encVal
340
+ : `${encodeKeyChars(key, options?.charEncoding)}=${encVal}`;
306
341
  }
307
342
 
308
343
  export const encodeSimple = (
309
344
  key: string,
310
345
  value: unknown,
311
- options?: { explode?: boolean; charEncoding?: "percent" | "none" },
346
+ options?: { explode?: boolean; charEncoding?: CharEncoding },
312
347
  ): string | undefined => {
313
348
  let out = "";
314
349
  const pairs: [string, unknown][] = options?.explode
@@ -320,7 +355,7 @@ export const encodeSimple = (
320
355
  }
321
356
 
322
357
  const encodeString = (v: string) => {
323
- return options?.charEncoding === "percent" ? encodeURIComponent(v) : v;
358
+ return encodeChars(v, options?.charEncoding);
324
359
  };
325
360
  const encodeValue = (v: unknown) => encodeString(serializeValue(v));
326
361
 
@@ -426,7 +461,7 @@ export function queryJoin(...args: (string | undefined)[]): string {
426
461
 
427
462
  type QueryEncoderOptions = {
428
463
  explode?: boolean;
429
- charEncoding?: "percent" | "none";
464
+ charEncoding?: CharEncoding;
430
465
  allowEmptyValue?: string[];
431
466
  };
432
467
 
@@ -24,6 +24,11 @@ import {
24
24
  EditPayloadDto$Outbound,
25
25
  EditPayloadDto$outboundSchema,
26
26
  } from "./editpayloaddto.js";
27
+ import {
28
+ HumanSignalDto,
29
+ HumanSignalDto$Outbound,
30
+ HumanSignalDto$outboundSchema,
31
+ } from "./humansignaldto.js";
27
32
  import {
28
33
  MarkdownReplyContentDto,
29
34
  MarkdownReplyContentDto$Outbound,
@@ -84,6 +89,7 @@ export type Reply =
84
89
  | ToolApprovalCardReplyContentDto;
85
90
 
86
91
  export type Signals =
92
+ | HumanSignalDto
87
93
  | MetadataSetSignalDto
88
94
  | MetadataDeleteSignalDto
89
95
  | MetadataClearSignalDto
@@ -135,10 +141,11 @@ export type AgentReplyPayloadDto = {
135
141
  */
136
142
  resolve?: ResolveDto | undefined;
137
143
  /**
138
- * Side-effect signals executed during this turn: conversation metadata mutations or Novu workflow triggers.
144
+ * Side-effect signals executed during this turn: conversation metadata mutations, Novu workflow triggers, or human-in-the-loop interactions.
139
145
  */
140
146
  signals?:
141
147
  | Array<
148
+ | HumanSignalDto
142
149
  | MetadataSetSignalDto
143
150
  | MetadataDeleteSignalDto
144
151
  | MetadataClearSignalDto
@@ -190,6 +197,7 @@ export function replyToJSON(reply: Reply): string {
190
197
 
191
198
  /** @internal */
192
199
  export type Signals$Outbound =
200
+ | HumanSignalDto$Outbound
193
201
  | MetadataSetSignalDto$Outbound
194
202
  | MetadataDeleteSignalDto$Outbound
195
203
  | MetadataClearSignalDto$Outbound
@@ -201,6 +209,7 @@ export const Signals$outboundSchema: z.ZodType<
201
209
  z.ZodTypeDef,
202
210
  Signals
203
211
  > = z.union([
212
+ HumanSignalDto$outboundSchema,
204
213
  MetadataSetSignalDto$outboundSchema,
205
214
  MetadataDeleteSignalDto$outboundSchema,
206
215
  MetadataClearSignalDto$outboundSchema,
@@ -243,6 +252,7 @@ export type AgentReplyPayloadDto$Outbound = {
243
252
  resolve?: ResolveDto$Outbound | undefined;
244
253
  signals?:
245
254
  | Array<
255
+ | HumanSignalDto$Outbound
246
256
  | MetadataSetSignalDto$Outbound
247
257
  | MetadataDeleteSignalDto$Outbound
248
258
  | MetadataClearSignalDto$Outbound
@@ -274,6 +284,7 @@ export const AgentReplyPayloadDto$outboundSchema: z.ZodType<
274
284
  resolve: ResolveDto$outboundSchema.optional(),
275
285
  signals: z.array(
276
286
  z.union([
287
+ HumanSignalDto$outboundSchema,
277
288
  MetadataSetSignalDto$outboundSchema,
278
289
  MetadataDeleteSignalDto$outboundSchema,
279
290
  MetadataClearSignalDto$outboundSchema,
@@ -4,9 +4,24 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { safeParse } from "../../lib/schemas.js";
7
+ import { ClosedEnum } from "../../types/enums.js";
7
8
  import { Result as SafeParseResult } from "../../types/fp.js";
8
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
10
 
11
+ /**
12
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
13
+ */
14
+ export const ChatControlDtoEditorType = {
15
+ Block: "block",
16
+ Text: "text",
17
+ } as const;
18
+ /**
19
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
20
+ */
21
+ export type ChatControlDtoEditorType = ClosedEnum<
22
+ typeof ChatControlDtoEditorType
23
+ >;
24
+
10
25
  export type ChatControlDto = {
11
26
  /**
12
27
  * JSONLogic filter conditions for conditionally skipping the step execution. Supports complex logical operations with AND, OR, and comparison operators. See https://jsonlogic.com/ for full typing reference.
@@ -16,8 +31,21 @@ export type ChatControlDto = {
16
31
  * Content of the chat message.
17
32
  */
18
33
  body?: string | undefined;
34
+ /**
35
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
36
+ */
37
+ editorType?: ChatControlDtoEditorType | undefined;
19
38
  };
20
39
 
40
+ /** @internal */
41
+ export const ChatControlDtoEditorType$inboundSchema: z.ZodNativeEnum<
42
+ typeof ChatControlDtoEditorType
43
+ > = z.nativeEnum(ChatControlDtoEditorType);
44
+ /** @internal */
45
+ export const ChatControlDtoEditorType$outboundSchema: z.ZodNativeEnum<
46
+ typeof ChatControlDtoEditorType
47
+ > = ChatControlDtoEditorType$inboundSchema;
48
+
21
49
  /** @internal */
22
50
  export const ChatControlDto$inboundSchema: z.ZodType<
23
51
  ChatControlDto,
@@ -26,11 +54,13 @@ export const ChatControlDto$inboundSchema: z.ZodType<
26
54
  > = z.object({
27
55
  skip: z.record(z.any()).optional(),
28
56
  body: z.string().optional(),
57
+ editorType: ChatControlDtoEditorType$inboundSchema.optional(),
29
58
  });
30
59
  /** @internal */
31
60
  export type ChatControlDto$Outbound = {
32
61
  skip?: { [k: string]: any } | undefined;
33
62
  body?: string | undefined;
63
+ editorType?: string | undefined;
34
64
  };
35
65
 
36
66
  /** @internal */
@@ -41,6 +71,7 @@ export const ChatControlDto$outboundSchema: z.ZodType<
41
71
  > = z.object({
42
72
  skip: z.record(z.any()).optional(),
43
73
  body: z.string().optional(),
74
+ editorType: ChatControlDtoEditorType$outboundSchema.optional(),
44
75
  });
45
76
 
46
77
  export function chatControlDtoToJSON(chatControlDto: ChatControlDto): string {
@@ -8,6 +8,7 @@ import {
8
8
  collectExtraKeys as collectExtraKeys$,
9
9
  safeParse,
10
10
  } from "../../lib/schemas.js";
11
+ import { ClosedEnum } from "../../types/enums.js";
11
12
  import { Result as SafeParseResult } from "../../types/fp.js";
12
13
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
13
14
  import {
@@ -20,6 +21,20 @@ import {
20
21
  } from "./resourceoriginenum.js";
21
22
  import { StepIssuesDto, StepIssuesDto$inboundSchema } from "./stepissuesdto.js";
22
23
 
24
+ /**
25
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
26
+ */
27
+ export const ChatStepResponseDtoEditorType = {
28
+ Block: "block",
29
+ Text: "text",
30
+ } as const;
31
+ /**
32
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
33
+ */
34
+ export type ChatStepResponseDtoEditorType = ClosedEnum<
35
+ typeof ChatStepResponseDtoEditorType
36
+ >;
37
+
23
38
  /**
24
39
  * Control values for the chat step
25
40
  */
@@ -32,6 +47,10 @@ export type ChatStepResponseDtoControlValues = {
32
47
  * Content of the chat message.
33
48
  */
34
49
  body?: string | undefined;
50
+ /**
51
+ * Type of editor to use for the body. When omitted, inferred from the body: Maily JSON is "block", otherwise "text".
52
+ */
53
+ editorType?: ChatStepResponseDtoEditorType | undefined;
35
54
  additionalProperties?: { [k: string]: any } | undefined;
36
55
  };
37
56
 
@@ -94,6 +113,11 @@ export type ChatStepResponseDto = {
94
113
  stepResolverHash?: string | undefined;
95
114
  };
96
115
 
116
+ /** @internal */
117
+ export const ChatStepResponseDtoEditorType$inboundSchema: z.ZodNativeEnum<
118
+ typeof ChatStepResponseDtoEditorType
119
+ > = z.nativeEnum(ChatStepResponseDtoEditorType);
120
+
97
121
  /** @internal */
98
122
  export const ChatStepResponseDtoControlValues$inboundSchema: z.ZodType<
99
123
  ChatStepResponseDtoControlValues,
@@ -103,6 +127,7 @@ export const ChatStepResponseDtoControlValues$inboundSchema: z.ZodType<
103
127
  z.object({
104
128
  skip: z.record(z.any()).optional(),
105
129
  body: z.string().optional(),
130
+ editorType: ChatStepResponseDtoEditorType$inboundSchema.optional(),
106
131
  }).catchall(z.any()),
107
132
  "additionalProperties",
108
133
  true,
@@ -15,6 +15,8 @@ export const ContentIssueEnum = {
15
15
  MissingValue: "MISSING_VALUE",
16
16
  TierLimitExceeded: "TIER_LIMIT_EXCEEDED",
17
17
  UnsupportedProperty: "UNSUPPORTED_PROPERTY",
18
+ ChatCardLimitExceeded: "CHAT_CARD_LIMIT_EXCEEDED",
19
+ ChatCardInvalidButton: "CHAT_CARD_INVALID_BUTTON",
18
20
  } as const;
19
21
  /**
20
22
  * Type of step content issue
@@ -17,6 +17,10 @@ export type CreateContextRequestDto = {
17
17
  * Optional custom data to associate with this context.
18
18
  */
19
19
  data?: { [k: string]: any } | undefined;
20
+ /**
21
+ * Optional bridge URL override for agent connect. When an inbound agent turn resolves this context, its bridge call is routed here instead of the agent default bridge URL. Must be a publicly reachable URL.
22
+ */
23
+ bridgeUrl?: string | undefined;
20
24
  };
21
25
 
22
26
  /** @internal */
@@ -24,6 +28,7 @@ export type CreateContextRequestDto$Outbound = {
24
28
  type: string;
25
29
  id: string;
26
30
  data?: { [k: string]: any } | undefined;
31
+ bridgeUrl?: string | undefined;
27
32
  };
28
33
 
29
34
  /** @internal */
@@ -35,6 +40,7 @@ export const CreateContextRequestDto$outboundSchema: z.ZodType<
35
40
  type: z.string(),
36
41
  id: z.string(),
37
42
  data: z.record(z.any()).optional(),
43
+ bridgeUrl: z.string().optional(),
38
44
  });
39
45
 
40
46
  export function createContextRequestDtoToJSON(
@@ -13,12 +13,17 @@ export type CreateUpdateTopicRequestDto = {
13
13
  * The display name for the topic
14
14
  */
15
15
  name?: string | undefined;
16
+ /**
17
+ * Additional custom data associated with the topic. Flat key-value pairs of scalars (string, number, boolean, string[]). Maximum size: 64KB.
18
+ */
19
+ data?: { [k: string]: any } | null | undefined;
16
20
  };
17
21
 
18
22
  /** @internal */
19
23
  export type CreateUpdateTopicRequestDto$Outbound = {
20
24
  key: string;
21
25
  name?: string | undefined;
26
+ data?: { [k: string]: any } | null | undefined;
22
27
  };
23
28
 
24
29
  /** @internal */
@@ -29,6 +34,7 @@ export const CreateUpdateTopicRequestDto$outboundSchema: z.ZodType<
29
34
  > = z.object({
30
35
  key: z.string(),
31
36
  name: z.string().optional(),
37
+ data: z.nullable(z.record(z.any())).optional(),
32
38
  });
33
39
 
34
40
  export function createUpdateTopicRequestDtoToJSON(
@@ -5,15 +5,33 @@
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
+ import { ClosedEnum } from "../../types/enums.js";
8
9
  import { Result as SafeParseResult } from "../../types/fp.js";
9
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
11
 
12
+ /**
13
+ * Email webhook: how `secretKey` is interpreted when signing webhook calls. `text` signs with the raw UTF-8 bytes; `base64`/`hex` decode it to binary first (e.g. for AWS KMS).
14
+ */
15
+ export const HmacSecretKeyEncoding = {
16
+ Text: "text",
17
+ Base64: "base64",
18
+ Hex: "hex",
19
+ } as const;
20
+ /**
21
+ * Email webhook: how `secretKey` is interpreted when signing webhook calls. `text` signs with the raw UTF-8 bytes; `base64`/`hex` decode it to binary first (e.g. for AWS KMS).
22
+ */
23
+ export type HmacSecretKeyEncoding = ClosedEnum<typeof HmacSecretKeyEncoding>;
24
+
11
25
  export type TlsOptions = {};
12
26
 
13
27
  export type CredentialsDto = {
14
28
  apiKey?: string | undefined;
15
29
  user?: string | undefined;
16
30
  secretKey?: string | undefined;
31
+ /**
32
+ * Email webhook: how `secretKey` is interpreted when signing webhook calls. `text` signs with the raw UTF-8 bytes; `base64`/`hex` decode it to binary first (e.g. for AWS KMS).
33
+ */
34
+ hmacSecretKeyEncoding?: HmacSecretKeyEncoding | undefined;
17
35
  domain?: string | undefined;
18
36
  password?: string | undefined;
19
37
  host?: string | undefined;
@@ -37,6 +55,7 @@ export type CredentialsDto = {
37
55
  hmac?: boolean | undefined;
38
56
  serviceAccount?: string | undefined;
39
57
  ipPoolName?: string | undefined;
58
+ configurationSetName?: string | undefined;
40
59
  apiKeyRequestHeader?: string | undefined;
41
60
  secretKeyRequestHeader?: string | undefined;
42
61
  idPath?: string | undefined;
@@ -84,6 +103,15 @@ export type CredentialsDto = {
84
103
  externalWorkspaceId?: string | undefined;
85
104
  };
86
105
 
106
+ /** @internal */
107
+ export const HmacSecretKeyEncoding$inboundSchema: z.ZodNativeEnum<
108
+ typeof HmacSecretKeyEncoding
109
+ > = z.nativeEnum(HmacSecretKeyEncoding);
110
+ /** @internal */
111
+ export const HmacSecretKeyEncoding$outboundSchema: z.ZodNativeEnum<
112
+ typeof HmacSecretKeyEncoding
113
+ > = HmacSecretKeyEncoding$inboundSchema;
114
+
87
115
  /** @internal */
88
116
  export const TlsOptions$inboundSchema: z.ZodType<
89
117
  TlsOptions,
@@ -122,6 +150,7 @@ export const CredentialsDto$inboundSchema: z.ZodType<
122
150
  apiKey: z.string().optional(),
123
151
  user: z.string().optional(),
124
152
  secretKey: z.string().optional(),
153
+ hmacSecretKeyEncoding: HmacSecretKeyEncoding$inboundSchema.optional(),
125
154
  domain: z.string().optional(),
126
155
  password: z.string().optional(),
127
156
  host: z.string().optional(),
@@ -145,6 +174,7 @@ export const CredentialsDto$inboundSchema: z.ZodType<
145
174
  hmac: z.boolean().optional(),
146
175
  serviceAccount: z.string().optional(),
147
176
  ipPoolName: z.string().optional(),
177
+ configurationSetName: z.string().optional(),
148
178
  apiKeyRequestHeader: z.string().optional(),
149
179
  secretKeyRequestHeader: z.string().optional(),
150
180
  idPath: z.string().optional(),
@@ -185,6 +215,7 @@ export type CredentialsDto$Outbound = {
185
215
  apiKey?: string | undefined;
186
216
  user?: string | undefined;
187
217
  secretKey?: string | undefined;
218
+ hmacSecretKeyEncoding?: string | undefined;
188
219
  domain?: string | undefined;
189
220
  password?: string | undefined;
190
221
  host?: string | undefined;
@@ -208,6 +239,7 @@ export type CredentialsDto$Outbound = {
208
239
  hmac?: boolean | undefined;
209
240
  serviceAccount?: string | undefined;
210
241
  ipPoolName?: string | undefined;
242
+ configurationSetName?: string | undefined;
211
243
  apiKeyRequestHeader?: string | undefined;
212
244
  secretKeyRequestHeader?: string | undefined;
213
245
  idPath?: string | undefined;
@@ -249,6 +281,7 @@ export const CredentialsDto$outboundSchema: z.ZodType<
249
281
  apiKey: z.string().optional(),
250
282
  user: z.string().optional(),
251
283
  secretKey: z.string().optional(),
284
+ hmacSecretKeyEncoding: HmacSecretKeyEncoding$outboundSchema.optional(),
252
285
  domain: z.string().optional(),
253
286
  password: z.string().optional(),
254
287
  host: z.string().optional(),
@@ -272,6 +305,7 @@ export const CredentialsDto$outboundSchema: z.ZodType<
272
305
  hmac: z.boolean().optional(),
273
306
  serviceAccount: z.string().optional(),
274
307
  ipPoolName: z.string().optional(),
308
+ configurationSetName: z.string().optional(),
275
309
  apiKeyRequestHeader: z.string().optional(),
276
310
  secretKeyRequestHeader: z.string().optional(),
277
311
  idPath: z.string().optional(),
@@ -20,6 +20,10 @@ export type GetContextResponseDto = {
20
20
  * Custom data associated with this context
21
21
  */
22
22
  data: { [k: string]: any };
23
+ /**
24
+ * Bridge URL override for agent connect, if configured on this context
25
+ */
26
+ bridgeUrl?: string | undefined;
23
27
  /**
24
28
  * Creation timestamp
25
29
  */
@@ -39,6 +43,7 @@ export const GetContextResponseDto$inboundSchema: z.ZodType<
39
43
  type: z.string(),
40
44
  id: z.string(),
41
45
  data: z.record(z.any()),
46
+ bridgeUrl: z.string().optional(),
42
47
  createdAt: z.string(),
43
48
  updatedAt: z.string(),
44
49
  });