@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.
- package/funcs/topicsUpdate.d.ts +1 -1
- package/funcs/topicsUpdate.js +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +4 -4
- package/lib/config.js +4 -4
- package/lib/encodings.d.ts +10 -9
- package/lib/encodings.d.ts.map +1 -1
- package/lib/encodings.js +29 -13
- package/lib/encodings.js.map +1 -1
- package/models/components/agentreplypayloaddto.d.ts +6 -5
- package/models/components/agentreplypayloaddto.d.ts.map +1 -1
- package/models/components/agentreplypayloaddto.js +3 -0
- package/models/components/agentreplypayloaddto.js.map +1 -1
- package/models/components/chatcontroldto.d.ts +21 -0
- package/models/components/chatcontroldto.d.ts.map +1 -1
- package/models/components/chatcontroldto.js +14 -1
- package/models/components/chatcontroldto.js.map +1 -1
- package/models/components/chatstepresponsedto.d.ts +18 -0
- package/models/components/chatstepresponsedto.d.ts.map +1 -1
- package/models/components/chatstepresponsedto.js +11 -1
- package/models/components/chatstepresponsedto.js.map +1 -1
- package/models/components/contentissueenum.d.ts +2 -0
- package/models/components/contentissueenum.d.ts.map +1 -1
- package/models/components/contentissueenum.js +2 -0
- package/models/components/contentissueenum.js.map +1 -1
- package/models/components/createcontextrequestdto.d.ts +5 -0
- package/models/components/createcontextrequestdto.d.ts.map +1 -1
- package/models/components/createcontextrequestdto.js +1 -0
- package/models/components/createcontextrequestdto.js.map +1 -1
- package/models/components/createupdatetopicrequestdto.d.ts +9 -0
- package/models/components/createupdatetopicrequestdto.d.ts.map +1 -1
- package/models/components/createupdatetopicrequestdto.js +1 -0
- package/models/components/createupdatetopicrequestdto.js.map +1 -1
- package/models/components/credentialsdto.d.ts +24 -0
- package/models/components/credentialsdto.d.ts.map +1 -1
- package/models/components/credentialsdto.js +17 -1
- package/models/components/credentialsdto.js.map +1 -1
- package/models/components/getcontextresponsedto.d.ts +4 -0
- package/models/components/getcontextresponsedto.d.ts.map +1 -1
- package/models/components/getcontextresponsedto.js +1 -0
- package/models/components/getcontextresponsedto.js.map +1 -1
- package/models/components/humansignaldto.d.ts +78 -0
- package/models/components/humansignaldto.d.ts.map +1 -0
- package/models/components/humansignaldto.js +78 -0
- package/models/components/humansignaldto.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/integrationresponsedto.d.ts +4 -4
- package/models/components/integrationresponsedto.d.ts.map +1 -1
- package/models/components/integrationresponsedto.js +4 -4
- package/models/components/integrationresponsedto.js.map +1 -1
- package/models/components/stepcontentissuedto.d.ts +5 -0
- package/models/components/stepcontentissuedto.d.ts.map +1 -1
- package/models/components/stepcontentissuedto.js +2 -0
- package/models/components/stepcontentissuedto.js.map +1 -1
- package/models/components/stepintegrationissue.d.ts +5 -0
- package/models/components/stepintegrationissue.d.ts.map +1 -1
- package/models/components/stepintegrationissue.js +2 -0
- package/models/components/stepintegrationissue.js.map +1 -1
- package/models/components/stepissueseverityenum.d.ts +16 -0
- package/models/components/stepissueseverityenum.d.ts.map +1 -0
- package/models/components/stepissueseverityenum.js +50 -0
- package/models/components/stepissueseverityenum.js.map +1 -0
- package/models/components/toolapprovalrequestpayloaddto.d.ts +15 -0
- package/models/components/toolapprovalrequestpayloaddto.d.ts.map +1 -1
- package/models/components/toolapprovalrequestpayloaddto.js +3 -0
- package/models/components/toolapprovalrequestpayloaddto.js.map +1 -1
- package/models/components/topicdto.d.ts +6 -0
- package/models/components/topicdto.d.ts.map +1 -1
- package/models/components/topicdto.js +1 -0
- package/models/components/topicdto.js.map +1 -1
- package/models/components/topicresponsedto.d.ts +6 -0
- package/models/components/topicresponsedto.d.ts.map +1 -1
- package/models/components/topicresponsedto.js +1 -0
- package/models/components/topicresponsedto.js.map +1 -1
- package/models/components/uicomponentenum.d.ts +1 -0
- package/models/components/uicomponentenum.d.ts.map +1 -1
- package/models/components/uicomponentenum.js +1 -0
- package/models/components/uicomponentenum.js.map +1 -1
- package/models/components/updatecontextrequestdto.d.ts +5 -0
- package/models/components/updatecontextrequestdto.d.ts.map +1 -1
- package/models/components/updatecontextrequestdto.js +1 -0
- package/models/components/updatecontextrequestdto.js.map +1 -1
- package/models/components/updatetopicrequestdto.d.ts +11 -2
- package/models/components/updatetopicrequestdto.d.ts.map +1 -1
- package/models/components/updatetopicrequestdto.js +2 -1
- package/models/components/updatetopicrequestdto.js.map +1 -1
- package/models/errors/topicresponsedto.d.ts +12 -0
- package/models/errors/topicresponsedto.d.ts.map +1 -1
- package/models/errors/topicresponsedto.js +3 -0
- package/models/errors/topicresponsedto.js.map +1 -1
- package/package.json +1 -1
- package/sdk/topics.d.ts +1 -1
- package/sdk/topics.js +1 -1
- package/src/funcs/topicsUpdate.ts +1 -1
- package/src/lib/config.ts +4 -4
- package/src/lib/encodings.ts +58 -23
- package/src/models/components/agentreplypayloaddto.ts +12 -1
- package/src/models/components/chatcontroldto.ts +31 -0
- package/src/models/components/chatstepresponsedto.ts +25 -0
- package/src/models/components/contentissueenum.ts +2 -0
- package/src/models/components/createcontextrequestdto.ts +6 -0
- package/src/models/components/createupdatetopicrequestdto.ts +6 -0
- package/src/models/components/credentialsdto.ts +34 -0
- package/src/models/components/getcontextresponsedto.ts +5 -0
- package/src/models/components/humansignaldto.ts +122 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/integrationresponsedto.ts +9 -7
- package/src/models/components/stepcontentissuedto.ts +9 -0
- package/src/models/components/stepintegrationissue.ts +9 -0
- package/src/models/components/stepissueseverityenum.ts +23 -0
- package/src/models/components/toolapprovalrequestpayloaddto.ts +18 -0
- package/src/models/components/topicdto.ts +5 -0
- package/src/models/components/topicresponsedto.ts +5 -0
- package/src/models/components/uicomponentenum.ts +1 -0
- package/src/models/components/updatecontextrequestdto.ts +6 -0
- package/src/models/components/updatetopicrequestdto.ts +9 -3
- package/src/models/errors/topicresponsedto.ts +10 -0
- package/src/sdk/topics.ts +1 -1
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const HumanSignalDtoType = {
|
|
9
|
+
Human: "human",
|
|
10
|
+
} as const;
|
|
11
|
+
export type HumanSignalDtoType = ClosedEnum<typeof HumanSignalDtoType>;
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* Interaction verb queued by `ctx.ask` / `ctx.approve` / `ctx.choose` / `ctx.tell`.
|
|
15
|
+
*/
|
|
16
|
+
export const Kind = {
|
|
17
|
+
Ask: "ask",
|
|
18
|
+
Approve: "approve",
|
|
19
|
+
Choose: "choose",
|
|
20
|
+
Tell: "tell",
|
|
21
|
+
} as const;
|
|
22
|
+
/**
|
|
23
|
+
* Interaction verb queued by `ctx.ask` / `ctx.approve` / `ctx.choose` / `ctx.tell`.
|
|
24
|
+
*/
|
|
25
|
+
export type Kind = ClosedEnum<typeof Kind>;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* Novu subscriberId(s) allowed to settle this interaction (max 50). First valid answer wins. When omitted, the conversation subscriber is used. Subscriber ids only — not workflow topic recipients.
|
|
29
|
+
*/
|
|
30
|
+
export type HumanSignalDtoTo = string | Array<string>;
|
|
31
|
+
|
|
32
|
+
export type HumanSignalDto = {
|
|
33
|
+
type: HumanSignalDtoType;
|
|
34
|
+
/**
|
|
35
|
+
* Interaction verb queued by `ctx.ask` / `ctx.approve` / `ctx.choose` / `ctx.tell`.
|
|
36
|
+
*/
|
|
37
|
+
kind: Kind;
|
|
38
|
+
/**
|
|
39
|
+
* Question, action description, or one-way message shown to the human.
|
|
40
|
+
*/
|
|
41
|
+
prompt: string;
|
|
42
|
+
/**
|
|
43
|
+
* Client-minted id returned by the framework helper; echoed on `ctx.humanResponse.requestId`.
|
|
44
|
+
*/
|
|
45
|
+
requestId: string;
|
|
46
|
+
/**
|
|
47
|
+
* Choice labels — required for `choose`, ignored otherwise.
|
|
48
|
+
*/
|
|
49
|
+
options?: Array<string> | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Attribution label rendered in the card.
|
|
52
|
+
*/
|
|
53
|
+
from?: string | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* Seconds until the interaction expires. Default 86400 (24h), max 259200.
|
|
56
|
+
*/
|
|
57
|
+
ttlSeconds?: number | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Novu subscriberId(s) allowed to settle this interaction (max 50). First valid answer wins. When omitted, the conversation subscriber is used. Subscriber ids only — not workflow topic recipients.
|
|
60
|
+
*/
|
|
61
|
+
to?: string | Array<string> | undefined;
|
|
62
|
+
};
|
|
63
|
+
|
|
64
|
+
/** @internal */
|
|
65
|
+
export const HumanSignalDtoType$outboundSchema: z.ZodNativeEnum<
|
|
66
|
+
typeof HumanSignalDtoType
|
|
67
|
+
> = z.nativeEnum(HumanSignalDtoType);
|
|
68
|
+
|
|
69
|
+
/** @internal */
|
|
70
|
+
export const Kind$outboundSchema: z.ZodNativeEnum<typeof Kind> = z.nativeEnum(
|
|
71
|
+
Kind,
|
|
72
|
+
);
|
|
73
|
+
|
|
74
|
+
/** @internal */
|
|
75
|
+
export type HumanSignalDtoTo$Outbound = string | Array<string>;
|
|
76
|
+
|
|
77
|
+
/** @internal */
|
|
78
|
+
export const HumanSignalDtoTo$outboundSchema: z.ZodType<
|
|
79
|
+
HumanSignalDtoTo$Outbound,
|
|
80
|
+
z.ZodTypeDef,
|
|
81
|
+
HumanSignalDtoTo
|
|
82
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
83
|
+
|
|
84
|
+
export function humanSignalDtoToToJSON(
|
|
85
|
+
humanSignalDtoTo: HumanSignalDtoTo,
|
|
86
|
+
): string {
|
|
87
|
+
return JSON.stringify(
|
|
88
|
+
HumanSignalDtoTo$outboundSchema.parse(humanSignalDtoTo),
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/** @internal */
|
|
93
|
+
export type HumanSignalDto$Outbound = {
|
|
94
|
+
type: string;
|
|
95
|
+
kind: string;
|
|
96
|
+
prompt: string;
|
|
97
|
+
requestId: string;
|
|
98
|
+
options?: Array<string> | undefined;
|
|
99
|
+
from?: string | undefined;
|
|
100
|
+
ttlSeconds?: number | undefined;
|
|
101
|
+
to?: string | Array<string> | undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
/** @internal */
|
|
105
|
+
export const HumanSignalDto$outboundSchema: z.ZodType<
|
|
106
|
+
HumanSignalDto$Outbound,
|
|
107
|
+
z.ZodTypeDef,
|
|
108
|
+
HumanSignalDto
|
|
109
|
+
> = z.object({
|
|
110
|
+
type: HumanSignalDtoType$outboundSchema,
|
|
111
|
+
kind: Kind$outboundSchema,
|
|
112
|
+
prompt: z.string(),
|
|
113
|
+
requestId: z.string(),
|
|
114
|
+
options: z.array(z.string()).optional(),
|
|
115
|
+
from: z.string().optional(),
|
|
116
|
+
ttlSeconds: z.number().optional(),
|
|
117
|
+
to: z.union([z.string(), z.array(z.string())]).optional(),
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
export function humanSignalDtoToJSON(humanSignalDto: HumanSignalDto): string {
|
|
121
|
+
return JSON.stringify(HumanSignalDto$outboundSchema.parse(humanSignalDto));
|
|
122
|
+
}
|
|
@@ -182,6 +182,7 @@ export * from "./httprequestcontrolsmetadataresponsedto.js";
|
|
|
182
182
|
export * from "./httprequestkeyvaluepairdto.js";
|
|
183
183
|
export * from "./httprequeststepresponsedto.js";
|
|
184
184
|
export * from "./httprequeststepupsertdto.js";
|
|
185
|
+
export * from "./humansignaldto.js";
|
|
185
186
|
export * from "./importmasterjsonrequestdto.js";
|
|
186
187
|
export * from "./importmasterjsonresponsedto.js";
|
|
187
188
|
export * from "./inappcontroldto.js";
|
|
@@ -305,6 +306,7 @@ export * from "./stepcontentissuedto.js";
|
|
|
305
306
|
export * from "./stepfilterdto.js";
|
|
306
307
|
export * from "./stepintegrationissue.js";
|
|
307
308
|
export * from "./stepissuesdto.js";
|
|
309
|
+
export * from "./stepissueseverityenum.js";
|
|
308
310
|
export * from "./steplistresponsedto.js";
|
|
309
311
|
export * from "./stepresponsedto.js";
|
|
310
312
|
export * from "./stepsoverrides.js";
|
|
@@ -39,14 +39,16 @@ export type IntegrationResponseDtoChannel = ClosedEnum<
|
|
|
39
39
|
/**
|
|
40
40
|
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
41
41
|
*/
|
|
42
|
-
export const
|
|
42
|
+
export const IntegrationResponseDtoKind = {
|
|
43
43
|
Delivery: "delivery",
|
|
44
44
|
Agent: "agent",
|
|
45
45
|
} as const;
|
|
46
46
|
/**
|
|
47
47
|
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
48
48
|
*/
|
|
49
|
-
export type
|
|
49
|
+
export type IntegrationResponseDtoKind = ClosedEnum<
|
|
50
|
+
typeof IntegrationResponseDtoKind
|
|
51
|
+
>;
|
|
50
52
|
|
|
51
53
|
export type IntegrationResponseDto = {
|
|
52
54
|
/**
|
|
@@ -80,7 +82,7 @@ export type IntegrationResponseDto = {
|
|
|
80
82
|
/**
|
|
81
83
|
* Distinguishes delivery integrations from agent-runtime integrations. Defaults to "delivery". Agent integrations do not have a channel.
|
|
82
84
|
*/
|
|
83
|
-
kind?:
|
|
85
|
+
kind?: IntegrationResponseDtoKind | undefined;
|
|
84
86
|
/**
|
|
85
87
|
* The decrypted credentials required for the integration to function (e.g. provider API keys, signing secrets). Only returned to dashboard/session-token callers; API-key authenticated callers receive the integration metadata without this field to avoid amplifying API-key leaks into provider-credential leaks.
|
|
86
88
|
*/
|
|
@@ -121,9 +123,9 @@ export const IntegrationResponseDtoChannel$inboundSchema: z.ZodNativeEnum<
|
|
|
121
123
|
> = z.nativeEnum(IntegrationResponseDtoChannel);
|
|
122
124
|
|
|
123
125
|
/** @internal */
|
|
124
|
-
export const
|
|
125
|
-
|
|
126
|
-
);
|
|
126
|
+
export const IntegrationResponseDtoKind$inboundSchema: z.ZodNativeEnum<
|
|
127
|
+
typeof IntegrationResponseDtoKind
|
|
128
|
+
> = z.nativeEnum(IntegrationResponseDtoKind);
|
|
127
129
|
|
|
128
130
|
/** @internal */
|
|
129
131
|
export const IntegrationResponseDto$inboundSchema: z.ZodType<
|
|
@@ -138,7 +140,7 @@ export const IntegrationResponseDto$inboundSchema: z.ZodType<
|
|
|
138
140
|
identifier: z.string(),
|
|
139
141
|
providerId: z.string(),
|
|
140
142
|
channel: IntegrationResponseDtoChannel$inboundSchema.optional(),
|
|
141
|
-
kind:
|
|
143
|
+
kind: IntegrationResponseDtoKind$inboundSchema.optional(),
|
|
142
144
|
credentials: CredentialsDto$inboundSchema.optional(),
|
|
143
145
|
configurations: ConfigurationsDto$inboundSchema.optional(),
|
|
144
146
|
active: z.boolean(),
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
ContentIssueEnum,
|
|
11
11
|
ContentIssueEnum$inboundSchema,
|
|
12
12
|
} from "./contentissueenum.js";
|
|
13
|
+
import {
|
|
14
|
+
StepIssueSeverityEnum,
|
|
15
|
+
StepIssueSeverityEnum$inboundSchema,
|
|
16
|
+
} from "./stepissueseverityenum.js";
|
|
13
17
|
|
|
14
18
|
export type StepContentIssueDto = {
|
|
15
19
|
/**
|
|
@@ -24,6 +28,10 @@ export type StepContentIssueDto = {
|
|
|
24
28
|
* Detailed message describing the issue
|
|
25
29
|
*/
|
|
26
30
|
message: string;
|
|
31
|
+
/**
|
|
32
|
+
* Blocking severity of the issue. `error` (default when omitted) blocks save; `warning` is a non-blocking notice.
|
|
33
|
+
*/
|
|
34
|
+
severity?: StepIssueSeverityEnum | undefined;
|
|
27
35
|
};
|
|
28
36
|
|
|
29
37
|
/** @internal */
|
|
@@ -35,6 +43,7 @@ export const StepContentIssueDto$inboundSchema: z.ZodType<
|
|
|
35
43
|
issueType: ContentIssueEnum$inboundSchema,
|
|
36
44
|
variableName: z.string().optional(),
|
|
37
45
|
message: z.string(),
|
|
46
|
+
severity: StepIssueSeverityEnum$inboundSchema.optional(),
|
|
38
47
|
});
|
|
39
48
|
|
|
40
49
|
export function stepContentIssueDtoFromJSON(
|
|
@@ -10,6 +10,10 @@ import {
|
|
|
10
10
|
IntegrationIssueEnum,
|
|
11
11
|
IntegrationIssueEnum$inboundSchema,
|
|
12
12
|
} from "./integrationissueenum.js";
|
|
13
|
+
import {
|
|
14
|
+
StepIssueSeverityEnum,
|
|
15
|
+
StepIssueSeverityEnum$inboundSchema,
|
|
16
|
+
} from "./stepissueseverityenum.js";
|
|
13
17
|
|
|
14
18
|
export type StepIntegrationIssue = {
|
|
15
19
|
/**
|
|
@@ -24,6 +28,10 @@ export type StepIntegrationIssue = {
|
|
|
24
28
|
* Detailed message describing the issue
|
|
25
29
|
*/
|
|
26
30
|
message: string;
|
|
31
|
+
/**
|
|
32
|
+
* Blocking severity of the issue. `error` (default when omitted) blocks save; `warning` is a non-blocking notice.
|
|
33
|
+
*/
|
|
34
|
+
severity?: StepIssueSeverityEnum | undefined;
|
|
27
35
|
};
|
|
28
36
|
|
|
29
37
|
/** @internal */
|
|
@@ -35,6 +43,7 @@ export const StepIntegrationIssue$inboundSchema: z.ZodType<
|
|
|
35
43
|
issueType: IntegrationIssueEnum$inboundSchema,
|
|
36
44
|
variableName: z.string().optional(),
|
|
37
45
|
message: z.string(),
|
|
46
|
+
severity: StepIssueSeverityEnum$inboundSchema.optional(),
|
|
38
47
|
});
|
|
39
48
|
|
|
40
49
|
export function stepIntegrationIssueFromJSON(
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Blocking severity of the issue. `error` (default when omitted) blocks save; `warning` is a non-blocking notice.
|
|
10
|
+
*/
|
|
11
|
+
export const StepIssueSeverityEnum = {
|
|
12
|
+
Error: "error",
|
|
13
|
+
Warning: "warning",
|
|
14
|
+
} as const;
|
|
15
|
+
/**
|
|
16
|
+
* Blocking severity of the issue. `error` (default when omitted) blocks save; `warning` is a non-blocking notice.
|
|
17
|
+
*/
|
|
18
|
+
export type StepIssueSeverityEnum = ClosedEnum<typeof StepIssueSeverityEnum>;
|
|
19
|
+
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const StepIssueSeverityEnum$inboundSchema: z.ZodNativeEnum<
|
|
22
|
+
typeof StepIssueSeverityEnum
|
|
23
|
+
> = z.nativeEnum(StepIssueSeverityEnum);
|
|
@@ -21,6 +21,18 @@ export type ToolApprovalRequestPayloadDto = {
|
|
|
21
21
|
* Tool input the model proposed.
|
|
22
22
|
*/
|
|
23
23
|
input?: { [k: string]: any } | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Server-minted approve action id. When omitted, self-hosted tool-approval:* is minted at persist.
|
|
26
|
+
*/
|
|
27
|
+
approveActionId?: string | undefined;
|
|
28
|
+
/**
|
|
29
|
+
* Server-minted deny action id. When omitted, self-hosted tool-approval:* is minted at persist.
|
|
30
|
+
*/
|
|
31
|
+
denyActionId?: string | undefined;
|
|
32
|
+
/**
|
|
33
|
+
* MCP server name when the gated tool is from an MCP server (for UI labels).
|
|
34
|
+
*/
|
|
35
|
+
mcpServerName?: string | undefined;
|
|
24
36
|
};
|
|
25
37
|
|
|
26
38
|
/** @internal */
|
|
@@ -29,6 +41,9 @@ export type ToolApprovalRequestPayloadDto$Outbound = {
|
|
|
29
41
|
toolCallId: string;
|
|
30
42
|
name: string;
|
|
31
43
|
input?: { [k: string]: any } | undefined;
|
|
44
|
+
approveActionId?: string | undefined;
|
|
45
|
+
denyActionId?: string | undefined;
|
|
46
|
+
mcpServerName?: string | undefined;
|
|
32
47
|
};
|
|
33
48
|
|
|
34
49
|
/** @internal */
|
|
@@ -41,6 +56,9 @@ export const ToolApprovalRequestPayloadDto$outboundSchema: z.ZodType<
|
|
|
41
56
|
toolCallId: z.string(),
|
|
42
57
|
name: z.string(),
|
|
43
58
|
input: z.record(z.any()).optional(),
|
|
59
|
+
approveActionId: z.string().optional(),
|
|
60
|
+
denyActionId: z.string().optional(),
|
|
61
|
+
mcpServerName: z.string().optional(),
|
|
44
62
|
});
|
|
45
63
|
|
|
46
64
|
export function toolApprovalRequestPayloadDtoToJSON(
|
|
@@ -21,6 +21,10 @@ export type TopicDto = {
|
|
|
21
21
|
* The name of the topic
|
|
22
22
|
*/
|
|
23
23
|
name?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Additional custom data associated with the topic
|
|
26
|
+
*/
|
|
27
|
+
data?: { [k: string]: any } | undefined;
|
|
24
28
|
};
|
|
25
29
|
|
|
26
30
|
/** @internal */
|
|
@@ -32,6 +36,7 @@ export const TopicDto$inboundSchema: z.ZodType<
|
|
|
32
36
|
_id: z.string(),
|
|
33
37
|
key: z.string(),
|
|
34
38
|
name: z.string().optional(),
|
|
39
|
+
data: z.record(z.any()).optional(),
|
|
35
40
|
}).transform((v) => {
|
|
36
41
|
return remap$(v, {
|
|
37
42
|
"_id": "id",
|
|
@@ -21,6 +21,10 @@ export type TopicResponseDto = {
|
|
|
21
21
|
* The name of the topic
|
|
22
22
|
*/
|
|
23
23
|
name?: string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Additional custom data associated with the topic
|
|
26
|
+
*/
|
|
27
|
+
data?: { [k: string]: any } | undefined;
|
|
24
28
|
/**
|
|
25
29
|
* The date the topic was created
|
|
26
30
|
*/
|
|
@@ -40,6 +44,7 @@ export const TopicResponseDto$inboundSchema: z.ZodType<
|
|
|
40
44
|
_id: z.string(),
|
|
41
45
|
key: z.string(),
|
|
42
46
|
name: z.string().optional(),
|
|
47
|
+
data: z.record(z.any()).optional(),
|
|
43
48
|
createdAt: z.string().optional(),
|
|
44
49
|
updatedAt: z.string().optional(),
|
|
45
50
|
}).transform((v) => {
|
|
@@ -11,6 +11,7 @@ import { OpenEnum } from "../../types/enums.js";
|
|
|
11
11
|
*/
|
|
12
12
|
export const UiComponentEnum = {
|
|
13
13
|
EmailEditorSelect: "EMAIL_EDITOR_SELECT",
|
|
14
|
+
ChatEditorSelect: "CHAT_EDITOR_SELECT",
|
|
14
15
|
LayoutSelect: "LAYOUT_SELECT",
|
|
15
16
|
BlockEditor: "BLOCK_EDITOR",
|
|
16
17
|
EmailBody: "EMAIL_BODY",
|
|
@@ -9,11 +9,16 @@ export type UpdateContextRequestDto = {
|
|
|
9
9
|
* Custom data to associate with this context. Replaces existing data.
|
|
10
10
|
*/
|
|
11
11
|
data: { [k: string]: any };
|
|
12
|
+
/**
|
|
13
|
+
* 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. Pass null to clear an existing override.
|
|
14
|
+
*/
|
|
15
|
+
bridgeUrl?: string | null | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type UpdateContextRequestDto$Outbound = {
|
|
16
20
|
data: { [k: string]: any };
|
|
21
|
+
bridgeUrl?: string | null | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -23,6 +28,7 @@ export const UpdateContextRequestDto$outboundSchema: z.ZodType<
|
|
|
23
28
|
UpdateContextRequestDto
|
|
24
29
|
> = z.object({
|
|
25
30
|
data: z.record(z.any()),
|
|
31
|
+
bridgeUrl: z.nullable(z.string()).optional(),
|
|
26
32
|
});
|
|
27
33
|
|
|
28
34
|
export function updateContextRequestDtoToJSON(
|
|
@@ -8,12 +8,17 @@ export type UpdateTopicRequestDto = {
|
|
|
8
8
|
/**
|
|
9
9
|
* The display name for the topic
|
|
10
10
|
*/
|
|
11
|
-
name
|
|
11
|
+
name?: string | undefined;
|
|
12
|
+
/**
|
|
13
|
+
* Additional custom data associated with the topic. Flat key-value pairs of scalars (string, number, boolean, string[]). Maximum size: 64KB. Pass null to clear.
|
|
14
|
+
*/
|
|
15
|
+
data?: { [k: string]: any } | null | undefined;
|
|
12
16
|
};
|
|
13
17
|
|
|
14
18
|
/** @internal */
|
|
15
19
|
export type UpdateTopicRequestDto$Outbound = {
|
|
16
|
-
name
|
|
20
|
+
name?: string | undefined;
|
|
21
|
+
data?: { [k: string]: any } | null | undefined;
|
|
17
22
|
};
|
|
18
23
|
|
|
19
24
|
/** @internal */
|
|
@@ -22,7 +27,8 @@ export const UpdateTopicRequestDto$outboundSchema: z.ZodType<
|
|
|
22
27
|
z.ZodTypeDef,
|
|
23
28
|
UpdateTopicRequestDto
|
|
24
29
|
> = z.object({
|
|
25
|
-
name: z.string(),
|
|
30
|
+
name: z.string().optional(),
|
|
31
|
+
data: z.nullable(z.record(z.any())).optional(),
|
|
26
32
|
});
|
|
27
33
|
|
|
28
34
|
export function updateTopicRequestDtoToJSON(
|
|
@@ -19,6 +19,10 @@ export type TopicResponseDtoData = {
|
|
|
19
19
|
* The name of the topic
|
|
20
20
|
*/
|
|
21
21
|
name?: string | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Additional custom data associated with the topic
|
|
24
|
+
*/
|
|
25
|
+
data?: { [k: string]: any } | undefined;
|
|
22
26
|
/**
|
|
23
27
|
* The date the topic was created
|
|
24
28
|
*/
|
|
@@ -38,6 +42,10 @@ export class TopicResponseDto extends NovuError {
|
|
|
38
42
|
* The unique key of the topic
|
|
39
43
|
*/
|
|
40
44
|
key: string;
|
|
45
|
+
/**
|
|
46
|
+
* Additional custom data associated with the topic
|
|
47
|
+
*/
|
|
48
|
+
data?: { [k: string]: any } | undefined;
|
|
41
49
|
/**
|
|
42
50
|
* The date the topic was created
|
|
43
51
|
*/
|
|
@@ -61,6 +69,7 @@ export class TopicResponseDto extends NovuError {
|
|
|
61
69
|
this.data$ = err;
|
|
62
70
|
this.id = err.id;
|
|
63
71
|
this.key = err.key;
|
|
72
|
+
if (err.data != null) this.data = err.data;
|
|
64
73
|
if (err.createdAt != null) this.createdAt = err.createdAt;
|
|
65
74
|
if (err.updatedAt != null) this.updatedAt = err.updatedAt;
|
|
66
75
|
|
|
@@ -77,6 +86,7 @@ export const TopicResponseDto$inboundSchema: z.ZodType<
|
|
|
77
86
|
_id: z.string(),
|
|
78
87
|
key: z.string(),
|
|
79
88
|
name: z.string().optional(),
|
|
89
|
+
data: z.record(z.any()).optional(),
|
|
80
90
|
createdAt: z.string().optional(),
|
|
81
91
|
updatedAt: z.string().optional(),
|
|
82
92
|
request$: z.instanceof(Request),
|
package/src/sdk/topics.ts
CHANGED
|
@@ -88,7 +88,7 @@ export class Topics extends ClientSDK {
|
|
|
88
88
|
* Update a topic
|
|
89
89
|
*
|
|
90
90
|
* @remarks
|
|
91
|
-
* Update a topic name by its unique key identifier **topicKey**
|
|
91
|
+
* Update a topic name or data by its unique key identifier **topicKey**
|
|
92
92
|
*/
|
|
93
93
|
async update(
|
|
94
94
|
updateTopicRequestDto: components.UpdateTopicRequestDto,
|