@meetkai/mka1 0.54.74 → 0.54.75
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/README.md +304 -310
- package/bin/mcp-server.js +3033 -3429
- package/bin/mcp-server.js.map +8 -16
- 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.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -5
- package/dist/commonjs/mcp-server/server.js.map +1 -1
- package/dist/commonjs/models/components/index.d.ts +0 -2
- package/dist/commonjs/models/components/index.d.ts.map +1 -1
- package/dist/commonjs/models/components/index.js +0 -2
- package/dist/commonjs/models/components/index.js.map +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -2
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -2
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/react-query/index.d.ts +0 -2
- package/dist/commonjs/react-query/index.d.ts.map +1 -1
- package/dist/commonjs/react-query/index.js +0 -2
- package/dist/commonjs/react-query/index.js.map +1 -1
- package/dist/commonjs/sdk/agents.d.ts +0 -8
- package/dist/commonjs/sdk/agents.d.ts.map +1 -1
- package/dist/commonjs/sdk/agents.js +0 -14
- package/dist/commonjs/sdk/agents.js.map +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.d.ts.map +1 -1
- package/dist/esm/mcp-server/server.js +1 -5
- package/dist/esm/mcp-server/server.js.map +1 -1
- package/dist/esm/models/components/index.d.ts +0 -2
- package/dist/esm/models/components/index.d.ts.map +1 -1
- package/dist/esm/models/components/index.js +0 -2
- package/dist/esm/models/components/index.js.map +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -2
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -2
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/react-query/index.d.ts +0 -2
- package/dist/esm/react-query/index.d.ts.map +1 -1
- package/dist/esm/react-query/index.js +0 -2
- package/dist/esm/react-query/index.js.map +1 -1
- package/dist/esm/sdk/agents.d.ts +0 -8
- package/dist/esm/sdk/agents.d.ts.map +1 -1
- package/dist/esm/sdk/agents.js +0 -14
- package/dist/esm/sdk/agents.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +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 -5
- package/src/models/components/index.ts +0 -2
- package/src/models/operations/index.ts +0 -2
- package/src/react-query/index.ts +0 -2
- package/src/sdk/agents.ts +0 -30
- package/dist/commonjs/funcs/agentsCreateAgent.d.ts +0 -18
- package/dist/commonjs/funcs/agentsCreateAgent.d.ts.map +0 -1
- package/dist/commonjs/funcs/agentsCreateAgent.js +0 -132
- package/dist/commonjs/funcs/agentsCreateAgent.js.map +0 -1
- package/dist/commonjs/funcs/agentsUpdateAgent.d.ts +0 -18
- package/dist/commonjs/funcs/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/commonjs/funcs/agentsUpdateAgent.js +0 -138
- package/dist/commonjs/funcs/agentsUpdateAgent.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/agentsCreateAgent.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/agentsCreateAgent.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/agentsCreateAgent.js +0 -62
- package/dist/commonjs/mcp-server/tools/agentsCreateAgent.js.map +0 -1
- package/dist/commonjs/mcp-server/tools/agentsUpdateAgent.d.ts +0 -8
- package/dist/commonjs/mcp-server/tools/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/commonjs/mcp-server/tools/agentsUpdateAgent.js +0 -62
- package/dist/commonjs/mcp-server/tools/agentsUpdateAgent.js.map +0 -1
- package/dist/commonjs/models/components/createagentrequest.d.ts +0 -47
- package/dist/commonjs/models/components/createagentrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/createagentrequest.js +0 -94
- package/dist/commonjs/models/components/createagentrequest.js.map +0 -1
- package/dist/commonjs/models/components/updateagentrequest.d.ts +0 -47
- package/dist/commonjs/models/components/updateagentrequest.d.ts.map +0 -1
- package/dist/commonjs/models/components/updateagentrequest.js +0 -94
- package/dist/commonjs/models/components/updateagentrequest.js.map +0 -1
- package/dist/commonjs/models/operations/createagent.d.ts +0 -23
- package/dist/commonjs/models/operations/createagent.d.ts.map +0 -1
- package/dist/commonjs/models/operations/createagent.js +0 -72
- package/dist/commonjs/models/operations/createagent.js.map +0 -1
- package/dist/commonjs/models/operations/updateagent.d.ts +0 -25
- package/dist/commonjs/models/operations/updateagent.d.ts.map +0 -1
- package/dist/commonjs/models/operations/updateagent.js +0 -76
- package/dist/commonjs/models/operations/updateagent.js.map +0 -1
- package/dist/commonjs/react-query/agentsCreateAgent.d.ts +0 -27
- package/dist/commonjs/react-query/agentsCreateAgent.d.ts.map +0 -1
- package/dist/commonjs/react-query/agentsCreateAgent.js +0 -44
- package/dist/commonjs/react-query/agentsCreateAgent.js.map +0 -1
- package/dist/commonjs/react-query/agentsUpdateAgent.d.ts +0 -27
- package/dist/commonjs/react-query/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/commonjs/react-query/agentsUpdateAgent.js +0 -44
- package/dist/commonjs/react-query/agentsUpdateAgent.js.map +0 -1
- package/dist/esm/funcs/agentsCreateAgent.d.ts +0 -18
- package/dist/esm/funcs/agentsCreateAgent.d.ts.map +0 -1
- package/dist/esm/funcs/agentsCreateAgent.js +0 -96
- package/dist/esm/funcs/agentsCreateAgent.js.map +0 -1
- package/dist/esm/funcs/agentsUpdateAgent.d.ts +0 -18
- package/dist/esm/funcs/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/esm/funcs/agentsUpdateAgent.js +0 -102
- package/dist/esm/funcs/agentsUpdateAgent.js.map +0 -1
- package/dist/esm/mcp-server/tools/agentsCreateAgent.d.ts +0 -8
- package/dist/esm/mcp-server/tools/agentsCreateAgent.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/agentsCreateAgent.js +0 -26
- package/dist/esm/mcp-server/tools/agentsCreateAgent.js.map +0 -1
- package/dist/esm/mcp-server/tools/agentsUpdateAgent.d.ts +0 -8
- package/dist/esm/mcp-server/tools/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/esm/mcp-server/tools/agentsUpdateAgent.js +0 -26
- package/dist/esm/mcp-server/tools/agentsUpdateAgent.js.map +0 -1
- package/dist/esm/models/components/createagentrequest.d.ts +0 -47
- package/dist/esm/models/components/createagentrequest.d.ts.map +0 -1
- package/dist/esm/models/components/createagentrequest.js +0 -56
- package/dist/esm/models/components/createagentrequest.js.map +0 -1
- package/dist/esm/models/components/updateagentrequest.d.ts +0 -47
- package/dist/esm/models/components/updateagentrequest.d.ts.map +0 -1
- package/dist/esm/models/components/updateagentrequest.js +0 -56
- package/dist/esm/models/components/updateagentrequest.js.map +0 -1
- package/dist/esm/models/operations/createagent.d.ts +0 -23
- package/dist/esm/models/operations/createagent.d.ts.map +0 -1
- package/dist/esm/models/operations/createagent.js +0 -34
- package/dist/esm/models/operations/createagent.js.map +0 -1
- package/dist/esm/models/operations/updateagent.d.ts +0 -25
- package/dist/esm/models/operations/updateagent.d.ts.map +0 -1
- package/dist/esm/models/operations/updateagent.js +0 -38
- package/dist/esm/models/operations/updateagent.js.map +0 -1
- package/dist/esm/react-query/agentsCreateAgent.d.ts +0 -27
- package/dist/esm/react-query/agentsCreateAgent.d.ts.map +0 -1
- package/dist/esm/react-query/agentsCreateAgent.js +0 -39
- package/dist/esm/react-query/agentsCreateAgent.js.map +0 -1
- package/dist/esm/react-query/agentsUpdateAgent.d.ts +0 -27
- package/dist/esm/react-query/agentsUpdateAgent.d.ts.map +0 -1
- package/dist/esm/react-query/agentsUpdateAgent.js +0 -39
- package/dist/esm/react-query/agentsUpdateAgent.js.map +0 -1
- package/src/funcs/agentsCreateAgent.ts +0 -188
- package/src/funcs/agentsUpdateAgent.ts +0 -194
- package/src/mcp-server/tools/agentsCreateAgent.ts +0 -35
- package/src/mcp-server/tools/agentsUpdateAgent.ts +0 -35
- package/src/models/components/createagentrequest.ts +0 -125
- package/src/models/components/updateagentrequest.ts +0 -125
- package/src/models/operations/createagent.ts +0 -70
- package/src/models/operations/updateagent.ts +0 -76
- package/src/react-query/agentsCreateAgent.ts +0 -108
- package/src/react-query/agentsUpdateAgent.ts +0 -108
|
@@ -1,125 +0,0 @@
|
|
|
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
|
-
import {
|
|
11
|
-
AgentReasoningConfiguration,
|
|
12
|
-
AgentReasoningConfiguration$inboundSchema,
|
|
13
|
-
AgentReasoningConfiguration$Outbound,
|
|
14
|
-
AgentReasoningConfiguration$outboundSchema,
|
|
15
|
-
} from "./agentreasoningconfiguration.js";
|
|
16
|
-
import {
|
|
17
|
-
AgentTextConfiguration,
|
|
18
|
-
AgentTextConfiguration$inboundSchema,
|
|
19
|
-
AgentTextConfiguration$Outbound,
|
|
20
|
-
AgentTextConfiguration$outboundSchema,
|
|
21
|
-
} from "./agenttextconfiguration.js";
|
|
22
|
-
import {
|
|
23
|
-
ToolDefinition,
|
|
24
|
-
ToolDefinition$inboundSchema,
|
|
25
|
-
ToolDefinition$Outbound,
|
|
26
|
-
ToolDefinition$outboundSchema,
|
|
27
|
-
} from "./tooldefinition.js";
|
|
28
|
-
|
|
29
|
-
export type UpdateAgentRequest = {
|
|
30
|
-
name?: string | undefined;
|
|
31
|
-
description?: string | null | undefined;
|
|
32
|
-
model?: string | undefined;
|
|
33
|
-
instructions?: string | null | undefined;
|
|
34
|
-
tools?: Array<ToolDefinition> | undefined;
|
|
35
|
-
/**
|
|
36
|
-
* Arbitrary JSON value.
|
|
37
|
-
*/
|
|
38
|
-
toolChoice?: any | undefined;
|
|
39
|
-
parallelToolCalls?: boolean | undefined;
|
|
40
|
-
maxToolCalls?: number | null | undefined;
|
|
41
|
-
text?: AgentTextConfiguration | null | undefined;
|
|
42
|
-
reasoning?: AgentReasoningConfiguration | null | undefined;
|
|
43
|
-
metadata?: { [k: string]: string } | undefined;
|
|
44
|
-
};
|
|
45
|
-
|
|
46
|
-
/** @internal */
|
|
47
|
-
export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
48
|
-
UpdateAgentRequest,
|
|
49
|
-
z.ZodTypeDef,
|
|
50
|
-
unknown
|
|
51
|
-
> = z.object({
|
|
52
|
-
name: z.string().optional(),
|
|
53
|
-
description: z.nullable(z.string()).optional(),
|
|
54
|
-
model: z.string().optional(),
|
|
55
|
-
instructions: z.nullable(z.string()).optional(),
|
|
56
|
-
tools: z.array(ToolDefinition$inboundSchema).optional(),
|
|
57
|
-
tool_choice: z.any().optional(),
|
|
58
|
-
parallel_tool_calls: z.boolean().optional(),
|
|
59
|
-
max_tool_calls: z.nullable(z.number().int()).optional(),
|
|
60
|
-
text: z.nullable(AgentTextConfiguration$inboundSchema).optional(),
|
|
61
|
-
reasoning: z.nullable(AgentReasoningConfiguration$inboundSchema).optional(),
|
|
62
|
-
metadata: z.record(z.string()).optional(),
|
|
63
|
-
}).transform((v) => {
|
|
64
|
-
return remap$(v, {
|
|
65
|
-
"tool_choice": "toolChoice",
|
|
66
|
-
"parallel_tool_calls": "parallelToolCalls",
|
|
67
|
-
"max_tool_calls": "maxToolCalls",
|
|
68
|
-
});
|
|
69
|
-
});
|
|
70
|
-
/** @internal */
|
|
71
|
-
export type UpdateAgentRequest$Outbound = {
|
|
72
|
-
name?: string | undefined;
|
|
73
|
-
description?: string | null | undefined;
|
|
74
|
-
model?: string | undefined;
|
|
75
|
-
instructions?: string | null | undefined;
|
|
76
|
-
tools?: Array<ToolDefinition$Outbound> | undefined;
|
|
77
|
-
tool_choice?: any | undefined;
|
|
78
|
-
parallel_tool_calls?: boolean | undefined;
|
|
79
|
-
max_tool_calls?: number | null | undefined;
|
|
80
|
-
text?: AgentTextConfiguration$Outbound | null | undefined;
|
|
81
|
-
reasoning?: AgentReasoningConfiguration$Outbound | null | undefined;
|
|
82
|
-
metadata?: { [k: string]: string } | undefined;
|
|
83
|
-
};
|
|
84
|
-
|
|
85
|
-
/** @internal */
|
|
86
|
-
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
87
|
-
UpdateAgentRequest$Outbound,
|
|
88
|
-
z.ZodTypeDef,
|
|
89
|
-
UpdateAgentRequest
|
|
90
|
-
> = z.object({
|
|
91
|
-
name: z.string().optional(),
|
|
92
|
-
description: z.nullable(z.string()).optional(),
|
|
93
|
-
model: z.string().optional(),
|
|
94
|
-
instructions: z.nullable(z.string()).optional(),
|
|
95
|
-
tools: z.array(ToolDefinition$outboundSchema).optional(),
|
|
96
|
-
toolChoice: z.any().optional(),
|
|
97
|
-
parallelToolCalls: z.boolean().optional(),
|
|
98
|
-
maxToolCalls: z.nullable(z.number().int()).optional(),
|
|
99
|
-
text: z.nullable(AgentTextConfiguration$outboundSchema).optional(),
|
|
100
|
-
reasoning: z.nullable(AgentReasoningConfiguration$outboundSchema).optional(),
|
|
101
|
-
metadata: z.record(z.string()).optional(),
|
|
102
|
-
}).transform((v) => {
|
|
103
|
-
return remap$(v, {
|
|
104
|
-
toolChoice: "tool_choice",
|
|
105
|
-
parallelToolCalls: "parallel_tool_calls",
|
|
106
|
-
maxToolCalls: "max_tool_calls",
|
|
107
|
-
});
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
export function updateAgentRequestToJSON(
|
|
111
|
-
updateAgentRequest: UpdateAgentRequest,
|
|
112
|
-
): string {
|
|
113
|
-
return JSON.stringify(
|
|
114
|
-
UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
|
|
115
|
-
);
|
|
116
|
-
}
|
|
117
|
-
export function updateAgentRequestFromJSON(
|
|
118
|
-
jsonString: string,
|
|
119
|
-
): SafeParseResult<UpdateAgentRequest, SDKValidationError> {
|
|
120
|
-
return safeParse(
|
|
121
|
-
jsonString,
|
|
122
|
-
(x) => UpdateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
123
|
-
`Failed to parse 'UpdateAgentRequest' from JSON`,
|
|
124
|
-
);
|
|
125
|
-
}
|
|
@@ -1,70 +0,0 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type CreateAgentRequest = {
|
|
13
|
-
/**
|
|
14
|
-
* Optional external end-user identifier forwarded by the API gateway.
|
|
15
|
-
*/
|
|
16
|
-
xOnBehalfOf?: string | undefined;
|
|
17
|
-
createAgentRequest: components.CreateAgentRequest;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @internal */
|
|
21
|
-
export const CreateAgentRequest$inboundSchema: z.ZodType<
|
|
22
|
-
CreateAgentRequest,
|
|
23
|
-
z.ZodTypeDef,
|
|
24
|
-
unknown
|
|
25
|
-
> = z.object({
|
|
26
|
-
"X-On-Behalf-Of": z.string().optional(),
|
|
27
|
-
CreateAgentRequest: components.CreateAgentRequest$inboundSchema,
|
|
28
|
-
}).transform((v) => {
|
|
29
|
-
return remap$(v, {
|
|
30
|
-
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
31
|
-
"CreateAgentRequest": "createAgentRequest",
|
|
32
|
-
});
|
|
33
|
-
});
|
|
34
|
-
/** @internal */
|
|
35
|
-
export type CreateAgentRequest$Outbound = {
|
|
36
|
-
"X-On-Behalf-Of"?: string | undefined;
|
|
37
|
-
CreateAgentRequest: components.CreateAgentRequest$Outbound;
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
/** @internal */
|
|
41
|
-
export const CreateAgentRequest$outboundSchema: z.ZodType<
|
|
42
|
-
CreateAgentRequest$Outbound,
|
|
43
|
-
z.ZodTypeDef,
|
|
44
|
-
CreateAgentRequest
|
|
45
|
-
> = z.object({
|
|
46
|
-
xOnBehalfOf: z.string().optional(),
|
|
47
|
-
createAgentRequest: components.CreateAgentRequest$outboundSchema,
|
|
48
|
-
}).transform((v) => {
|
|
49
|
-
return remap$(v, {
|
|
50
|
-
xOnBehalfOf: "X-On-Behalf-Of",
|
|
51
|
-
createAgentRequest: "CreateAgentRequest",
|
|
52
|
-
});
|
|
53
|
-
});
|
|
54
|
-
|
|
55
|
-
export function createAgentRequestToJSON(
|
|
56
|
-
createAgentRequest: CreateAgentRequest,
|
|
57
|
-
): string {
|
|
58
|
-
return JSON.stringify(
|
|
59
|
-
CreateAgentRequest$outboundSchema.parse(createAgentRequest),
|
|
60
|
-
);
|
|
61
|
-
}
|
|
62
|
-
export function createAgentRequestFromJSON(
|
|
63
|
-
jsonString: string,
|
|
64
|
-
): SafeParseResult<CreateAgentRequest, SDKValidationError> {
|
|
65
|
-
return safeParse(
|
|
66
|
-
jsonString,
|
|
67
|
-
(x) => CreateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
68
|
-
`Failed to parse 'CreateAgentRequest' from JSON`,
|
|
69
|
-
);
|
|
70
|
-
}
|
|
@@ -1,76 +0,0 @@
|
|
|
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 * as components from "../components/index.js";
|
|
10
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
-
|
|
12
|
-
export type UpdateAgentRequest = {
|
|
13
|
-
agentId: string;
|
|
14
|
-
/**
|
|
15
|
-
* Optional external end-user identifier forwarded by the API gateway.
|
|
16
|
-
*/
|
|
17
|
-
xOnBehalfOf?: string | undefined;
|
|
18
|
-
updateAgentRequest: components.UpdateAgentRequest;
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const UpdateAgentRequest$inboundSchema: z.ZodType<
|
|
23
|
-
UpdateAgentRequest,
|
|
24
|
-
z.ZodTypeDef,
|
|
25
|
-
unknown
|
|
26
|
-
> = z.object({
|
|
27
|
-
agent_id: z.string(),
|
|
28
|
-
"X-On-Behalf-Of": z.string().optional(),
|
|
29
|
-
UpdateAgentRequest: components.UpdateAgentRequest$inboundSchema,
|
|
30
|
-
}).transform((v) => {
|
|
31
|
-
return remap$(v, {
|
|
32
|
-
"agent_id": "agentId",
|
|
33
|
-
"X-On-Behalf-Of": "xOnBehalfOf",
|
|
34
|
-
"UpdateAgentRequest": "updateAgentRequest",
|
|
35
|
-
});
|
|
36
|
-
});
|
|
37
|
-
/** @internal */
|
|
38
|
-
export type UpdateAgentRequest$Outbound = {
|
|
39
|
-
agent_id: string;
|
|
40
|
-
"X-On-Behalf-Of"?: string | undefined;
|
|
41
|
-
UpdateAgentRequest: components.UpdateAgentRequest$Outbound;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
/** @internal */
|
|
45
|
-
export const UpdateAgentRequest$outboundSchema: z.ZodType<
|
|
46
|
-
UpdateAgentRequest$Outbound,
|
|
47
|
-
z.ZodTypeDef,
|
|
48
|
-
UpdateAgentRequest
|
|
49
|
-
> = z.object({
|
|
50
|
-
agentId: z.string(),
|
|
51
|
-
xOnBehalfOf: z.string().optional(),
|
|
52
|
-
updateAgentRequest: components.UpdateAgentRequest$outboundSchema,
|
|
53
|
-
}).transform((v) => {
|
|
54
|
-
return remap$(v, {
|
|
55
|
-
agentId: "agent_id",
|
|
56
|
-
xOnBehalfOf: "X-On-Behalf-Of",
|
|
57
|
-
updateAgentRequest: "UpdateAgentRequest",
|
|
58
|
-
});
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export function updateAgentRequestToJSON(
|
|
62
|
-
updateAgentRequest: UpdateAgentRequest,
|
|
63
|
-
): string {
|
|
64
|
-
return JSON.stringify(
|
|
65
|
-
UpdateAgentRequest$outboundSchema.parse(updateAgentRequest),
|
|
66
|
-
);
|
|
67
|
-
}
|
|
68
|
-
export function updateAgentRequestFromJSON(
|
|
69
|
-
jsonString: string,
|
|
70
|
-
): SafeParseResult<UpdateAgentRequest, SDKValidationError> {
|
|
71
|
-
return safeParse(
|
|
72
|
-
jsonString,
|
|
73
|
-
(x) => UpdateAgentRequest$inboundSchema.parse(JSON.parse(x)),
|
|
74
|
-
`Failed to parse 'UpdateAgentRequest' from JSON`,
|
|
75
|
-
);
|
|
76
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
MutationKey,
|
|
7
|
-
useMutation,
|
|
8
|
-
UseMutationResult,
|
|
9
|
-
} from "@tanstack/react-query";
|
|
10
|
-
import { SDKCore } from "../core.js";
|
|
11
|
-
import { agentsCreateAgent } from "../funcs/agentsCreateAgent.js";
|
|
12
|
-
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
-
import { useSDKContext } from "./_context.js";
|
|
29
|
-
import { MutationHookOptions } from "./_types.js";
|
|
30
|
-
|
|
31
|
-
export type AgentsCreateAgentMutationVariables = {
|
|
32
|
-
request: operations.CreateAgentRequest;
|
|
33
|
-
options?: RequestOptions;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type AgentsCreateAgentMutationData = components.Agent;
|
|
37
|
-
|
|
38
|
-
export type AgentsCreateAgentMutationError =
|
|
39
|
-
| errors.ErrorEnvelope
|
|
40
|
-
| SDKError
|
|
41
|
-
| ResponseValidationError
|
|
42
|
-
| ConnectionError
|
|
43
|
-
| RequestAbortedError
|
|
44
|
-
| RequestTimeoutError
|
|
45
|
-
| InvalidRequestError
|
|
46
|
-
| UnexpectedClientError
|
|
47
|
-
| SDKValidationError;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Create an agent
|
|
51
|
-
*/
|
|
52
|
-
export function useAgentsCreateAgentMutation(
|
|
53
|
-
options?: MutationHookOptions<
|
|
54
|
-
AgentsCreateAgentMutationData,
|
|
55
|
-
AgentsCreateAgentMutationError,
|
|
56
|
-
AgentsCreateAgentMutationVariables
|
|
57
|
-
>,
|
|
58
|
-
): UseMutationResult<
|
|
59
|
-
AgentsCreateAgentMutationData,
|
|
60
|
-
AgentsCreateAgentMutationError,
|
|
61
|
-
AgentsCreateAgentMutationVariables
|
|
62
|
-
> {
|
|
63
|
-
const client = useSDKContext();
|
|
64
|
-
return useMutation({
|
|
65
|
-
...buildAgentsCreateAgentMutation(client, options),
|
|
66
|
-
...options,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function mutationKeyAgentsCreateAgent(): MutationKey {
|
|
71
|
-
return ["@meetkai/mka1", "Agents", "createAgent"];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function buildAgentsCreateAgentMutation(
|
|
75
|
-
client$: SDKCore,
|
|
76
|
-
hookOptions?: RequestOptions,
|
|
77
|
-
): {
|
|
78
|
-
mutationKey: MutationKey;
|
|
79
|
-
mutationFn: (
|
|
80
|
-
variables: AgentsCreateAgentMutationVariables,
|
|
81
|
-
) => Promise<AgentsCreateAgentMutationData>;
|
|
82
|
-
} {
|
|
83
|
-
return {
|
|
84
|
-
mutationKey: mutationKeyAgentsCreateAgent(),
|
|
85
|
-
mutationFn: function agentsCreateAgentMutationFn({
|
|
86
|
-
request,
|
|
87
|
-
options,
|
|
88
|
-
}): Promise<AgentsCreateAgentMutationData> {
|
|
89
|
-
const mergedOptions = {
|
|
90
|
-
...hookOptions,
|
|
91
|
-
...options,
|
|
92
|
-
fetchOptions: {
|
|
93
|
-
...hookOptions?.fetchOptions,
|
|
94
|
-
...options?.fetchOptions,
|
|
95
|
-
signal: combineSignals(
|
|
96
|
-
hookOptions?.fetchOptions?.signal,
|
|
97
|
-
options?.fetchOptions?.signal,
|
|
98
|
-
),
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
return unwrapAsync(agentsCreateAgent(
|
|
102
|
-
client$,
|
|
103
|
-
request,
|
|
104
|
-
mergedOptions,
|
|
105
|
-
));
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
}
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
MutationKey,
|
|
7
|
-
useMutation,
|
|
8
|
-
UseMutationResult,
|
|
9
|
-
} from "@tanstack/react-query";
|
|
10
|
-
import { SDKCore } from "../core.js";
|
|
11
|
-
import { agentsUpdateAgent } from "../funcs/agentsUpdateAgent.js";
|
|
12
|
-
import { combineSignals } from "../lib/primitives.js";
|
|
13
|
-
import { RequestOptions } from "../lib/sdks.js";
|
|
14
|
-
import * as components from "../models/components/index.js";
|
|
15
|
-
import {
|
|
16
|
-
ConnectionError,
|
|
17
|
-
InvalidRequestError,
|
|
18
|
-
RequestAbortedError,
|
|
19
|
-
RequestTimeoutError,
|
|
20
|
-
UnexpectedClientError,
|
|
21
|
-
} from "../models/errors/httpclienterrors.js";
|
|
22
|
-
import * as errors from "../models/errors/index.js";
|
|
23
|
-
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
24
|
-
import { SDKError } from "../models/errors/sdkerror.js";
|
|
25
|
-
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
26
|
-
import * as operations from "../models/operations/index.js";
|
|
27
|
-
import { unwrapAsync } from "../types/fp.js";
|
|
28
|
-
import { useSDKContext } from "./_context.js";
|
|
29
|
-
import { MutationHookOptions } from "./_types.js";
|
|
30
|
-
|
|
31
|
-
export type AgentsUpdateAgentMutationVariables = {
|
|
32
|
-
request: operations.UpdateAgentRequest;
|
|
33
|
-
options?: RequestOptions;
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export type AgentsUpdateAgentMutationData = components.Agent;
|
|
37
|
-
|
|
38
|
-
export type AgentsUpdateAgentMutationError =
|
|
39
|
-
| errors.ErrorEnvelope
|
|
40
|
-
| SDKError
|
|
41
|
-
| ResponseValidationError
|
|
42
|
-
| ConnectionError
|
|
43
|
-
| RequestAbortedError
|
|
44
|
-
| RequestTimeoutError
|
|
45
|
-
| InvalidRequestError
|
|
46
|
-
| UnexpectedClientError
|
|
47
|
-
| SDKValidationError;
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Update an agent
|
|
51
|
-
*/
|
|
52
|
-
export function useAgentsUpdateAgentMutation(
|
|
53
|
-
options?: MutationHookOptions<
|
|
54
|
-
AgentsUpdateAgentMutationData,
|
|
55
|
-
AgentsUpdateAgentMutationError,
|
|
56
|
-
AgentsUpdateAgentMutationVariables
|
|
57
|
-
>,
|
|
58
|
-
): UseMutationResult<
|
|
59
|
-
AgentsUpdateAgentMutationData,
|
|
60
|
-
AgentsUpdateAgentMutationError,
|
|
61
|
-
AgentsUpdateAgentMutationVariables
|
|
62
|
-
> {
|
|
63
|
-
const client = useSDKContext();
|
|
64
|
-
return useMutation({
|
|
65
|
-
...buildAgentsUpdateAgentMutation(client, options),
|
|
66
|
-
...options,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export function mutationKeyAgentsUpdateAgent(): MutationKey {
|
|
71
|
-
return ["@meetkai/mka1", "Agents", "updateAgent"];
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
export function buildAgentsUpdateAgentMutation(
|
|
75
|
-
client$: SDKCore,
|
|
76
|
-
hookOptions?: RequestOptions,
|
|
77
|
-
): {
|
|
78
|
-
mutationKey: MutationKey;
|
|
79
|
-
mutationFn: (
|
|
80
|
-
variables: AgentsUpdateAgentMutationVariables,
|
|
81
|
-
) => Promise<AgentsUpdateAgentMutationData>;
|
|
82
|
-
} {
|
|
83
|
-
return {
|
|
84
|
-
mutationKey: mutationKeyAgentsUpdateAgent(),
|
|
85
|
-
mutationFn: function agentsUpdateAgentMutationFn({
|
|
86
|
-
request,
|
|
87
|
-
options,
|
|
88
|
-
}): Promise<AgentsUpdateAgentMutationData> {
|
|
89
|
-
const mergedOptions = {
|
|
90
|
-
...hookOptions,
|
|
91
|
-
...options,
|
|
92
|
-
fetchOptions: {
|
|
93
|
-
...hookOptions?.fetchOptions,
|
|
94
|
-
...options?.fetchOptions,
|
|
95
|
-
signal: combineSignals(
|
|
96
|
-
hookOptions?.fetchOptions?.signal,
|
|
97
|
-
options?.fetchOptions?.signal,
|
|
98
|
-
),
|
|
99
|
-
},
|
|
100
|
-
};
|
|
101
|
-
return unwrapAsync(agentsUpdateAgent(
|
|
102
|
-
client$,
|
|
103
|
-
request,
|
|
104
|
-
mergedOptions,
|
|
105
|
-
));
|
|
106
|
-
},
|
|
107
|
-
};
|
|
108
|
-
}
|