@meetkai/mka1 0.55.34 → 0.55.35
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/bin/mcp-server.js +112 -13
- package/bin/mcp-server.js.map +17 -15
- package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/commonjs/funcs/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/commonjs/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
- package/dist/commonjs/models/components/agentconnector.d.ts +8 -1
- package/dist/commonjs/models/components/agentconnector.d.ts.map +1 -1
- package/dist/commonjs/models/components/agentconnector.js +4 -0
- package/dist/commonjs/models/components/agentconnector.js.map +1 -1
- package/dist/commonjs/models/components/agentconnectorembed.d.ts +24 -0
- package/dist/commonjs/models/components/agentconnectorembed.d.ts.map +1 -0
- package/dist/commonjs/models/components/agentconnectorembed.js +75 -0
- package/dist/commonjs/models/components/agentconnectorembed.js.map +1 -0
- package/dist/commonjs/models/components/createagentconnectorrequest.d.ts +3 -2
- package/dist/commonjs/models/components/createagentconnectorrequest.d.ts.map +1 -1
- package/dist/commonjs/models/components/createagentconnectorrequest.js +3 -0
- package/dist/commonjs/models/components/createagentconnectorrequest.js.map +1 -1
- package/dist/commonjs/models/components/createwebagentconnectorrequest.d.ts +83 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.d.ts.map +1 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.js +129 -0
- package/dist/commonjs/models/components/createwebagentconnectorrequest.js.map +1 -0
- package/dist/commonjs/models/components/index.d.ts +2 -0
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +2 -0
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/commonjs/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/commonjs/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/commonjs/sdk/agentconnectors.d.ts +3 -3
- package/dist/commonjs/sdk/agentconnectors.js +3 -3
- package/dist/esm/funcs/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/esm/funcs/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsActivateAgentConnector.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsCreateAgentConnector.js.map +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/esm/mcp-server/tools/agentConnectorsDeleteAgentConnector.js.map +1 -1
- package/dist/esm/models/components/agentconnector.d.ts +8 -1
- package/dist/esm/models/components/agentconnector.d.ts.map +1 -1
- package/dist/esm/models/components/agentconnector.js +4 -0
- package/dist/esm/models/components/agentconnector.js.map +1 -1
- package/dist/esm/models/components/agentconnectorembed.d.ts +24 -0
- package/dist/esm/models/components/agentconnectorembed.d.ts.map +1 -0
- package/dist/esm/models/components/agentconnectorembed.js +37 -0
- package/dist/esm/models/components/agentconnectorembed.js.map +1 -0
- package/dist/esm/models/components/createagentconnectorrequest.d.ts +3 -2
- package/dist/esm/models/components/createagentconnectorrequest.d.ts.map +1 -1
- package/dist/esm/models/components/createagentconnectorrequest.js +3 -0
- package/dist/esm/models/components/createagentconnectorrequest.js.map +1 -1
- package/dist/esm/models/components/createwebagentconnectorrequest.d.ts +83 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.d.ts.map +1 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.js +87 -0
- package/dist/esm/models/components/createwebagentconnectorrequest.js.map +1 -0
- package/dist/esm/models/components/index.d.ts +2 -0
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +2 -0
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/react-query/agentConnectorsActivateAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsActivateAgentConnector.js +1 -1
- package/dist/esm/react-query/agentConnectorsCreateAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsCreateAgentConnector.js +1 -1
- package/dist/esm/react-query/agentConnectorsDeleteAgentConnector.d.ts +1 -1
- package/dist/esm/react-query/agentConnectorsDeleteAgentConnector.js +1 -1
- package/dist/esm/sdk/agentconnectors.d.ts +3 -3
- package/dist/esm/sdk/agentconnectors.js +3 -3
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/funcs/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/funcs/agentConnectorsDeleteAgentConnector.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/mcp-server/tools/agentConnectorsDeleteAgentConnector.ts +1 -1
- package/src/models/components/agentconnector.ts +15 -1
- package/src/models/components/agentconnectorembed.ts +75 -0
- package/src/models/components/createagentconnectorrequest.ts +12 -2
- package/src/models/components/createwebagentconnectorrequest.ts +202 -0
- package/src/models/components/index.ts +2 -0
- package/src/react-query/agentConnectorsActivateAgentConnector.ts +1 -1
- package/src/react-query/agentConnectorsCreateAgentConnector.ts +1 -1
- package/src/react-query/agentConnectorsDeleteAgentConnector.ts +1 -1
- package/src/sdk/agentconnectors.ts +3 -3
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v3";
|
|
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 Appearance = {
|
|
12
|
+
/**
|
|
13
|
+
* Trimmed before the length check.
|
|
14
|
+
*/
|
|
15
|
+
title?: string | undefined;
|
|
16
|
+
/**
|
|
17
|
+
* Opening message; an empty string shows none.
|
|
18
|
+
*/
|
|
19
|
+
greeting?: string | undefined;
|
|
20
|
+
/**
|
|
21
|
+
* Trimmed before the length check.
|
|
22
|
+
*/
|
|
23
|
+
placeholder?: string | undefined;
|
|
24
|
+
primaryColor?: string | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* An https image URL shown in the widget header.
|
|
27
|
+
*/
|
|
28
|
+
logoUrl?: string | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type Web = {
|
|
32
|
+
/**
|
|
33
|
+
* Exact https origins (scheme, host and optional port, no path) allowed to frame the widget. Empty allows any site to frame it (frame-ancestors *); a non-empty list is enforced by the browser through the page's CSP frame-ancestors directive, and the session mint also checks the request's Origin header. Neither allowed_origins nor allow_direct_link limits non-browser callers; spend is bounded by the per-embed and per-session limits.
|
|
34
|
+
*/
|
|
35
|
+
allowedOrigins?: Array<string> | undefined;
|
|
36
|
+
/**
|
|
37
|
+
* Whether the iframe URL also works as a standalone chat page when opened directly. Setting it to false requires a non-empty allowed_origins list. This is a browser-side rule only; it does not limit non-browser callers.
|
|
38
|
+
*/
|
|
39
|
+
allowDirectLink?: boolean | undefined;
|
|
40
|
+
appearance?: Appearance | undefined;
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Web chat widget connector configuration. Appearance and origins are fixed at creation; recreate the connector to change them. Visitors are anonymous and every message runs the agent with this API key's identity, so use a dedicated, minimally scoped key for agents with tools.
|
|
45
|
+
*/
|
|
46
|
+
export type CreateWebAgentConnectorRequest = {
|
|
47
|
+
/**
|
|
48
|
+
* Embeddable text-only web chat served from the connector worker at /widget/agent/v1.
|
|
49
|
+
*/
|
|
50
|
+
provider: "web";
|
|
51
|
+
name?: string | undefined;
|
|
52
|
+
web?: Web | undefined;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
/** @internal */
|
|
56
|
+
export const Appearance$inboundSchema: z.ZodType<
|
|
57
|
+
Appearance,
|
|
58
|
+
z.ZodTypeDef,
|
|
59
|
+
unknown
|
|
60
|
+
> = z.object({
|
|
61
|
+
title: z.string().default("Chat"),
|
|
62
|
+
greeting: z.string().default("Hi! How can I help?"),
|
|
63
|
+
placeholder: z.string().default("Type a message"),
|
|
64
|
+
primary_color: z.string().default("#0f0f10"),
|
|
65
|
+
logo_url: z.string().optional(),
|
|
66
|
+
}).transform((v) => {
|
|
67
|
+
return remap$(v, {
|
|
68
|
+
"primary_color": "primaryColor",
|
|
69
|
+
"logo_url": "logoUrl",
|
|
70
|
+
});
|
|
71
|
+
});
|
|
72
|
+
/** @internal */
|
|
73
|
+
export type Appearance$Outbound = {
|
|
74
|
+
title: string;
|
|
75
|
+
greeting: string;
|
|
76
|
+
placeholder: string;
|
|
77
|
+
primary_color: string;
|
|
78
|
+
logo_url?: string | undefined;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
/** @internal */
|
|
82
|
+
export const Appearance$outboundSchema: z.ZodType<
|
|
83
|
+
Appearance$Outbound,
|
|
84
|
+
z.ZodTypeDef,
|
|
85
|
+
Appearance
|
|
86
|
+
> = z.object({
|
|
87
|
+
title: z.string().default("Chat"),
|
|
88
|
+
greeting: z.string().default("Hi! How can I help?"),
|
|
89
|
+
placeholder: z.string().default("Type a message"),
|
|
90
|
+
primaryColor: z.string().default("#0f0f10"),
|
|
91
|
+
logoUrl: z.string().optional(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
primaryColor: "primary_color",
|
|
95
|
+
logoUrl: "logo_url",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
|
|
99
|
+
export function appearanceToJSON(appearance: Appearance): string {
|
|
100
|
+
return JSON.stringify(Appearance$outboundSchema.parse(appearance));
|
|
101
|
+
}
|
|
102
|
+
export function appearanceFromJSON(
|
|
103
|
+
jsonString: string,
|
|
104
|
+
): SafeParseResult<Appearance, SDKValidationError> {
|
|
105
|
+
return safeParse(
|
|
106
|
+
jsonString,
|
|
107
|
+
(x) => Appearance$inboundSchema.parse(JSON.parse(x)),
|
|
108
|
+
`Failed to parse 'Appearance' from JSON`,
|
|
109
|
+
);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/** @internal */
|
|
113
|
+
export const Web$inboundSchema: z.ZodType<Web, z.ZodTypeDef, unknown> = z
|
|
114
|
+
.object({
|
|
115
|
+
allowed_origins: z.array(z.string()).optional(),
|
|
116
|
+
allow_direct_link: z.boolean().default(true),
|
|
117
|
+
appearance: z.lazy(() => Appearance$inboundSchema).optional(),
|
|
118
|
+
}).transform((v) => {
|
|
119
|
+
return remap$(v, {
|
|
120
|
+
"allowed_origins": "allowedOrigins",
|
|
121
|
+
"allow_direct_link": "allowDirectLink",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
/** @internal */
|
|
125
|
+
export type Web$Outbound = {
|
|
126
|
+
allowed_origins?: Array<string> | undefined;
|
|
127
|
+
allow_direct_link: boolean;
|
|
128
|
+
appearance?: Appearance$Outbound | undefined;
|
|
129
|
+
};
|
|
130
|
+
|
|
131
|
+
/** @internal */
|
|
132
|
+
export const Web$outboundSchema: z.ZodType<Web$Outbound, z.ZodTypeDef, Web> = z
|
|
133
|
+
.object({
|
|
134
|
+
allowedOrigins: z.array(z.string()).optional(),
|
|
135
|
+
allowDirectLink: z.boolean().default(true),
|
|
136
|
+
appearance: z.lazy(() => Appearance$outboundSchema).optional(),
|
|
137
|
+
}).transform((v) => {
|
|
138
|
+
return remap$(v, {
|
|
139
|
+
allowedOrigins: "allowed_origins",
|
|
140
|
+
allowDirectLink: "allow_direct_link",
|
|
141
|
+
});
|
|
142
|
+
});
|
|
143
|
+
|
|
144
|
+
export function webToJSON(web: Web): string {
|
|
145
|
+
return JSON.stringify(Web$outboundSchema.parse(web));
|
|
146
|
+
}
|
|
147
|
+
export function webFromJSON(
|
|
148
|
+
jsonString: string,
|
|
149
|
+
): SafeParseResult<Web, SDKValidationError> {
|
|
150
|
+
return safeParse(
|
|
151
|
+
jsonString,
|
|
152
|
+
(x) => Web$inboundSchema.parse(JSON.parse(x)),
|
|
153
|
+
`Failed to parse 'Web' from JSON`,
|
|
154
|
+
);
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
/** @internal */
|
|
158
|
+
export const CreateWebAgentConnectorRequest$inboundSchema: z.ZodType<
|
|
159
|
+
CreateWebAgentConnectorRequest,
|
|
160
|
+
z.ZodTypeDef,
|
|
161
|
+
unknown
|
|
162
|
+
> = z.object({
|
|
163
|
+
provider: z.literal("web"),
|
|
164
|
+
name: z.string().optional(),
|
|
165
|
+
web: z.lazy(() => Web$inboundSchema).optional(),
|
|
166
|
+
});
|
|
167
|
+
/** @internal */
|
|
168
|
+
export type CreateWebAgentConnectorRequest$Outbound = {
|
|
169
|
+
provider: "web";
|
|
170
|
+
name?: string | undefined;
|
|
171
|
+
web?: Web$Outbound | undefined;
|
|
172
|
+
};
|
|
173
|
+
|
|
174
|
+
/** @internal */
|
|
175
|
+
export const CreateWebAgentConnectorRequest$outboundSchema: z.ZodType<
|
|
176
|
+
CreateWebAgentConnectorRequest$Outbound,
|
|
177
|
+
z.ZodTypeDef,
|
|
178
|
+
CreateWebAgentConnectorRequest
|
|
179
|
+
> = z.object({
|
|
180
|
+
provider: z.literal("web"),
|
|
181
|
+
name: z.string().optional(),
|
|
182
|
+
web: z.lazy(() => Web$outboundSchema).optional(),
|
|
183
|
+
});
|
|
184
|
+
|
|
185
|
+
export function createWebAgentConnectorRequestToJSON(
|
|
186
|
+
createWebAgentConnectorRequest: CreateWebAgentConnectorRequest,
|
|
187
|
+
): string {
|
|
188
|
+
return JSON.stringify(
|
|
189
|
+
CreateWebAgentConnectorRequest$outboundSchema.parse(
|
|
190
|
+
createWebAgentConnectorRequest,
|
|
191
|
+
),
|
|
192
|
+
);
|
|
193
|
+
}
|
|
194
|
+
export function createWebAgentConnectorRequestFromJSON(
|
|
195
|
+
jsonString: string,
|
|
196
|
+
): SafeParseResult<CreateWebAgentConnectorRequest, SDKValidationError> {
|
|
197
|
+
return safeParse(
|
|
198
|
+
jsonString,
|
|
199
|
+
(x) => CreateWebAgentConnectorRequest$inboundSchema.parse(JSON.parse(x)),
|
|
200
|
+
`Failed to parse 'CreateWebAgentConnectorRequest' from JSON`,
|
|
201
|
+
);
|
|
202
|
+
}
|
|
@@ -14,6 +14,7 @@ export * from "./agent.js";
|
|
|
14
14
|
export * from "./agentcompactioncontextmanagement.js";
|
|
15
15
|
export * from "./agentconnector.js";
|
|
16
16
|
export * from "./agentconnectordeleted.js";
|
|
17
|
+
export * from "./agentconnectorembed.js";
|
|
17
18
|
export * from "./agentconnectorlist.js";
|
|
18
19
|
export * from "./agentlist.js";
|
|
19
20
|
export * from "./agentreasoningconfiguration.js";
|
|
@@ -243,6 +244,7 @@ export * from "./createvectorstorefilerequest.js";
|
|
|
243
244
|
export * from "./createvectorstorepermissionrequest.js";
|
|
244
245
|
export * from "./createvectorstorerequest.js";
|
|
245
246
|
export * from "./createversionresponse.js";
|
|
247
|
+
export * from "./createwebagentconnectorrequest.js";
|
|
246
248
|
export * from "./createwhatsappagentconnectorrequest.js";
|
|
247
249
|
export * from "./customtoolcall.js";
|
|
248
250
|
export * from "./customtoolcalloutput.js";
|
|
@@ -51,7 +51,7 @@ export type AgentConnectorsActivateAgentConnectorMutationError =
|
|
|
51
51
|
* Activate a connector
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
|
|
54
|
+
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner. Web connectors have no provider webhook; activation only re-authorizes the stored API-key identity.
|
|
55
55
|
*/
|
|
56
56
|
export function useAgentConnectorsActivateAgentConnectorMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -51,7 +51,7 @@ export type AgentConnectorsCreateAgentConnectorMutationError =
|
|
|
51
51
|
* Create a connector
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. Text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which provider users or chats may invoke the agent.
|
|
54
|
+
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. Text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which provider users or chats may invoke the agent. A web connector (provider web) needs no provider credentials or access policy: it is active immediately and returns an embed object with an iframe URL and snippet for an anonymous web chat widget whose visitors are limited by signed sessions, rate limits and the optional allowed_origins list. Creating a web connector returns 409 when the deployment has not enabled web chat.
|
|
55
55
|
*/
|
|
56
56
|
export function useAgentConnectorsCreateAgentConnectorMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -51,7 +51,7 @@ export type AgentConnectorsDeleteAgentConnectorMutationError =
|
|
|
51
51
|
* Delete a connector
|
|
52
52
|
*
|
|
53
53
|
* @remarks
|
|
54
|
-
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account.
|
|
54
|
+
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed immediately.
|
|
55
55
|
*/
|
|
56
56
|
export function useAgentConnectorsDeleteAgentConnectorMutation(
|
|
57
57
|
options?: MutationHookOptions<
|
|
@@ -35,7 +35,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
35
35
|
* Create a connector
|
|
36
36
|
*
|
|
37
37
|
* @remarks
|
|
38
|
-
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. Text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which provider users or chats may invoke the agent.
|
|
38
|
+
* Connects the agent to a Telegram bot or WhatsApp Business phone number, validates the provider credentials, and registers the agent's webhook. WhatsApp connector support is beta. Text, photos, and gateway-supported documents can invoke the agent; inbound media additionally requires write:files. Managed outbound files require read:files, and generated images require both file scopes so their transient provider URLs can be materialized before delivery. The optional write:feedback scope enables native thumbs reaction synchronization to gateway response feedback. These conditional scopes are deliberately not part of x-required-scopes because text-only connectors do not need them. An API key with every listed scope is required; its identity tuple and current scopes are stored as a non-widening ceiling, then revalidated with mk-authentication before every connector run; session and delegated end-user contexts are rejected. The required access policy controls which provider users or chats may invoke the agent. A web connector (provider web) needs no provider credentials or access policy: it is active immediately and returns an embed object with an iframe URL and snippet for an anonymous web chat widget whose visitors are limited by signed sessions, rate limits and the optional allowed_origins list. Creating a web connector returns 409 when the deployment has not enabled web chat.
|
|
39
39
|
*/
|
|
40
40
|
async createAgentConnector(
|
|
41
41
|
request: operations.CreateAgentConnectorRequest,
|
|
@@ -86,7 +86,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
86
86
|
* Delete a connector
|
|
87
87
|
*
|
|
88
88
|
* @remarks
|
|
89
|
-
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account.
|
|
89
|
+
* Unregisters the connector-specific provider webhook and deletes the stored connector credentials. Telegram pending updates are dropped; WhatsApp deletion clears only the phone-number callback and does not unsubscribe other numbers in the business account. Deleting a web connector disables its embed immediately.
|
|
90
90
|
*/
|
|
91
91
|
async deleteAgentConnector(
|
|
92
92
|
request: operations.DeleteAgentConnectorRequest,
|
|
@@ -103,7 +103,7 @@ export class AgentConnectors extends ClientSDK {
|
|
|
103
103
|
* Activate a connector
|
|
104
104
|
*
|
|
105
105
|
* @remarks
|
|
106
|
-
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner.
|
|
106
|
+
* Revalidates the stored provider credentials and registers the provider webhook. Use this to retry a connector left in an error state. API-key authentication with every listed scope is required; session authentication is rejected, and the key must belong to the connector's original user or service-account principal so existing conversations keep the same owner. Web connectors have no provider webhook; activation only re-authorizes the stored API-key identity.
|
|
107
107
|
*/
|
|
108
108
|
async activateAgentConnector(
|
|
109
109
|
request: operations.ActivateAgentConnectorRequest,
|