@runloop/reflex-client 0.12.0 → 0.13.0
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/dist/generated/agent-personas.d.ts +48 -0
- package/dist/generated/agent-personas.d.ts.map +1 -0
- package/dist/generated/agent-personas.js +44 -0
- package/dist/generated/agent-personas.js.map +1 -0
- package/dist/generated/model/agentPersona.d.ts +36 -0
- package/dist/generated/model/agentPersona.d.ts.map +1 -0
- package/dist/generated/model/agentPersona.js +2 -0
- package/dist/generated/model/agentPersona.js.map +1 -0
- package/dist/generated/model/agentPersonaAttachments.d.ts +12 -0
- package/dist/generated/model/agentPersonaAttachments.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaAttachments.js +8 -0
- package/dist/generated/model/agentPersonaAttachments.js.map +1 -0
- package/dist/generated/model/agentPersonaEnvVars.d.ts +17 -0
- package/dist/generated/model/agentPersonaEnvVars.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaEnvVars.js +8 -0
- package/dist/generated/model/agentPersonaEnvVars.js.map +1 -0
- package/dist/generated/model/agentPersonaPromptMode.d.ts +13 -0
- package/dist/generated/model/agentPersonaPromptMode.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaPromptMode.js +12 -0
- package/dist/generated/model/agentPersonaPromptMode.js.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptions.d.ts +21 -0
- package/dist/generated/model/agentPersonaSandboxOptions.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptions.js +2 -0
- package/dist/generated/model/agentPersonaSandboxOptions.js.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptionsCustomSize.d.ts +22 -0
- package/dist/generated/model/agentPersonaSandboxOptionsCustomSize.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptionsCustomSize.js +8 -0
- package/dist/generated/model/agentPersonaSandboxOptionsCustomSize.js.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptionsResourceSize.d.ts +15 -0
- package/dist/generated/model/agentPersonaSandboxOptionsResourceSize.d.ts.map +1 -0
- package/dist/generated/model/agentPersonaSandboxOptionsResourceSize.js +14 -0
- package/dist/generated/model/agentPersonaSandboxOptionsResourceSize.js.map +1 -0
- package/dist/generated/model/index.d.ts +17 -0
- package/dist/generated/model/index.d.ts.map +1 -1
- package/dist/generated/model/index.js +17 -0
- package/dist/generated/model/index.js.map +1 -1
- package/dist/generated/model/launchAgentFromPersonaBody.d.ts +39 -0
- package/dist/generated/model/launchAgentFromPersonaBody.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBody.js +2 -0
- package/dist/generated/model/launchAgentFromPersonaBody.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyAuthMethod.d.ts +13 -0
- package/dist/generated/model/launchAgentFromPersonaBodyAuthMethod.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyAuthMethod.js +12 -0
- package/dist/generated/model/launchAgentFromPersonaBodyAuthMethod.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyContentItem.d.ts +20 -0
- package/dist/generated/model/launchAgentFromPersonaBodyContentItem.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyContentItem.js +8 -0
- package/dist/generated/model/launchAgentFromPersonaBodyContentItem.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraAttachmentsItem.d.ts +12 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraAttachmentsItem.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraAttachmentsItem.js +8 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraAttachmentsItem.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraEnvVarsItem.d.ts +17 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraEnvVarsItem.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraEnvVarsItem.js +8 -0
- package/dist/generated/model/launchAgentFromPersonaBodyExtraEnvVarsItem.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptMode.d.ts +13 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptMode.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptMode.js +12 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptMode.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptStrategy.d.ts +12 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptStrategy.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptStrategy.js +11 -0
- package/dist/generated/model/launchAgentFromPersonaBodyPromptStrategy.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptions.d.ts +21 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptions.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptions.js +2 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptions.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.d.ts +22 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.js +8 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.js.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.d.ts +15 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.d.ts.map +1 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.js +14 -0
- package/dist/generated/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.js.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/react/agent-personas.d.ts +85 -0
- package/dist/react/agent-personas.d.ts.map +1 -0
- package/dist/react/agent-personas.js +105 -0
- package/dist/react/agent-personas.js.map +1 -0
- package/dist/react/model/agentPersona.d.ts +36 -0
- package/dist/react/model/agentPersona.d.ts.map +1 -0
- package/dist/react/model/agentPersona.js +2 -0
- package/dist/react/model/agentPersona.js.map +1 -0
- package/dist/react/model/agentPersonaAttachments.d.ts +12 -0
- package/dist/react/model/agentPersonaAttachments.d.ts.map +1 -0
- package/dist/react/model/agentPersonaAttachments.js +8 -0
- package/dist/react/model/agentPersonaAttachments.js.map +1 -0
- package/dist/react/model/agentPersonaEnvVars.d.ts +17 -0
- package/dist/react/model/agentPersonaEnvVars.d.ts.map +1 -0
- package/dist/react/model/agentPersonaEnvVars.js +8 -0
- package/dist/react/model/agentPersonaEnvVars.js.map +1 -0
- package/dist/react/model/agentPersonaPromptMode.d.ts +13 -0
- package/dist/react/model/agentPersonaPromptMode.d.ts.map +1 -0
- package/dist/react/model/agentPersonaPromptMode.js +12 -0
- package/dist/react/model/agentPersonaPromptMode.js.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptions.d.ts +21 -0
- package/dist/react/model/agentPersonaSandboxOptions.d.ts.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptions.js +2 -0
- package/dist/react/model/agentPersonaSandboxOptions.js.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptionsCustomSize.d.ts +22 -0
- package/dist/react/model/agentPersonaSandboxOptionsCustomSize.d.ts.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptionsCustomSize.js +8 -0
- package/dist/react/model/agentPersonaSandboxOptionsCustomSize.js.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptionsResourceSize.d.ts +15 -0
- package/dist/react/model/agentPersonaSandboxOptionsResourceSize.d.ts.map +1 -0
- package/dist/react/model/agentPersonaSandboxOptionsResourceSize.js +14 -0
- package/dist/react/model/agentPersonaSandboxOptionsResourceSize.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBody.d.ts +39 -0
- package/dist/react/model/launchAgentFromPersonaBody.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBody.js +2 -0
- package/dist/react/model/launchAgentFromPersonaBody.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyAuthMethod.d.ts +13 -0
- package/dist/react/model/launchAgentFromPersonaBodyAuthMethod.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyAuthMethod.js +12 -0
- package/dist/react/model/launchAgentFromPersonaBodyAuthMethod.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyContentItem.d.ts +20 -0
- package/dist/react/model/launchAgentFromPersonaBodyContentItem.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyContentItem.js +8 -0
- package/dist/react/model/launchAgentFromPersonaBodyContentItem.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraAttachmentsItem.d.ts +12 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraAttachmentsItem.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraAttachmentsItem.js +8 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraAttachmentsItem.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraEnvVarsItem.d.ts +17 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraEnvVarsItem.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraEnvVarsItem.js +8 -0
- package/dist/react/model/launchAgentFromPersonaBodyExtraEnvVarsItem.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptMode.d.ts +13 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptMode.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptMode.js +12 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptMode.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptStrategy.d.ts +12 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptStrategy.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptStrategy.js +11 -0
- package/dist/react/model/launchAgentFromPersonaBodyPromptStrategy.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptions.d.ts +21 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptions.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptions.js +2 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptions.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.d.ts +22 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.js +8 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.js.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.d.ts +15 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.d.ts.map +1 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.js +14 -0
- package/dist/react/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.js.map +1 -0
- package/package.json +1 -1
- package/src/generated/agent-personas.ts +122 -0
- package/src/generated/model/agentPersona.ts +36 -0
- package/src/generated/model/agentPersonaAttachments.ts +12 -0
- package/src/generated/model/agentPersonaEnvVars.ts +17 -0
- package/src/generated/model/agentPersonaPromptMode.ts +15 -0
- package/src/generated/model/agentPersonaSandboxOptions.ts +21 -0
- package/src/generated/model/agentPersonaSandboxOptionsCustomSize.ts +22 -0
- package/src/generated/model/agentPersonaSandboxOptionsResourceSize.ts +17 -0
- package/src/generated/model/index.ts +17 -0
- package/src/generated/model/launchAgentFromPersonaBody.ts +39 -0
- package/src/generated/model/launchAgentFromPersonaBodyAuthMethod.ts +15 -0
- package/src/generated/model/launchAgentFromPersonaBodyContentItem.ts +20 -0
- package/src/generated/model/launchAgentFromPersonaBodyExtraAttachmentsItem.ts +12 -0
- package/src/generated/model/launchAgentFromPersonaBodyExtraEnvVarsItem.ts +17 -0
- package/src/generated/model/launchAgentFromPersonaBodyPromptMode.ts +15 -0
- package/src/generated/model/launchAgentFromPersonaBodyPromptStrategy.ts +14 -0
- package/src/generated/model/launchAgentFromPersonaBodySandboxOptions.ts +21 -0
- package/src/generated/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.ts +22 -0
- package/src/generated/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.ts +17 -0
- package/src/index.ts +1 -0
- package/src/react/agent-personas.ts +260 -0
- package/src/react/model/agentPersona.ts +36 -0
- package/src/react/model/agentPersonaAttachments.ts +12 -0
- package/src/react/model/agentPersonaEnvVars.ts +17 -0
- package/src/react/model/agentPersonaPromptMode.ts +15 -0
- package/src/react/model/agentPersonaSandboxOptions.ts +21 -0
- package/src/react/model/agentPersonaSandboxOptionsCustomSize.ts +22 -0
- package/src/react/model/agentPersonaSandboxOptionsResourceSize.ts +17 -0
- package/src/react/model/launchAgentFromPersonaBody.ts +39 -0
- package/src/react/model/launchAgentFromPersonaBodyAuthMethod.ts +15 -0
- package/src/react/model/launchAgentFromPersonaBodyContentItem.ts +20 -0
- package/src/react/model/launchAgentFromPersonaBodyExtraAttachmentsItem.ts +12 -0
- package/src/react/model/launchAgentFromPersonaBodyExtraEnvVarsItem.ts +17 -0
- package/src/react/model/launchAgentFromPersonaBodyPromptMode.ts +15 -0
- package/src/react/model/launchAgentFromPersonaBodyPromptStrategy.ts +14 -0
- package/src/react/model/launchAgentFromPersonaBodySandboxOptions.ts +21 -0
- package/src/react/model/launchAgentFromPersonaBodySandboxOptionsCustomSize.ts +22 -0
- package/src/react/model/launchAgentFromPersonaBodySandboxOptionsResourceSize.ts +17 -0
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type {
|
|
8
|
+
Agent,
|
|
9
|
+
AgentPersona,
|
|
10
|
+
LaunchAgentFromPersonaBody
|
|
11
|
+
} from './model/index.js';
|
|
12
|
+
|
|
13
|
+
import { apiFetch } from '../http.js';
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
export type listAgentPersonasResponse200 = {
|
|
17
|
+
data: AgentPersona[]
|
|
18
|
+
status: 200
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type listAgentPersonasResponseSuccess = (listAgentPersonasResponse200) & {
|
|
22
|
+
headers: Headers;
|
|
23
|
+
};
|
|
24
|
+
;
|
|
25
|
+
|
|
26
|
+
export type listAgentPersonasResponse = (listAgentPersonasResponseSuccess)
|
|
27
|
+
|
|
28
|
+
export const getListAgentPersonasUrl = () => {
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
33
|
+
return `/agent-personas`
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* @summary List the agent personas visible in the active organization.
|
|
38
|
+
*/
|
|
39
|
+
export const listAgentPersonas = async ( options?: RequestInit): Promise<listAgentPersonasResponse> => {
|
|
40
|
+
|
|
41
|
+
return apiFetch<listAgentPersonasResponse>(getListAgentPersonasUrl(),
|
|
42
|
+
{
|
|
43
|
+
...options,
|
|
44
|
+
method: 'GET'
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
}
|
|
48
|
+
);}
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
export type getAgentPersonaResponse200 = {
|
|
52
|
+
data: AgentPersona
|
|
53
|
+
status: 200
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type getAgentPersonaResponseSuccess = (getAgentPersonaResponse200) & {
|
|
57
|
+
headers: Headers;
|
|
58
|
+
};
|
|
59
|
+
;
|
|
60
|
+
|
|
61
|
+
export type getAgentPersonaResponse = (getAgentPersonaResponseSuccess)
|
|
62
|
+
|
|
63
|
+
export const getGetAgentPersonaUrl = (id: string,) => {
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
return `/agent-personas/${encodeURIComponent(String(id))}`
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* @summary Get an agent persona by id.
|
|
73
|
+
*/
|
|
74
|
+
export const getAgentPersona = async (id: string, options?: RequestInit): Promise<getAgentPersonaResponse> => {
|
|
75
|
+
|
|
76
|
+
return apiFetch<getAgentPersonaResponse>(getGetAgentPersonaUrl(id),
|
|
77
|
+
{
|
|
78
|
+
...options,
|
|
79
|
+
method: 'GET'
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
}
|
|
83
|
+
);}
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
export type launchAgentFromPersonaResponse201 = {
|
|
87
|
+
data: Agent
|
|
88
|
+
status: 201
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type launchAgentFromPersonaResponseSuccess = (launchAgentFromPersonaResponse201) & {
|
|
92
|
+
headers: Headers;
|
|
93
|
+
};
|
|
94
|
+
;
|
|
95
|
+
|
|
96
|
+
export type launchAgentFromPersonaResponse = (launchAgentFromPersonaResponseSuccess)
|
|
97
|
+
|
|
98
|
+
export const getLaunchAgentFromPersonaUrl = (id: string,) => {
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
103
|
+
return `/agent-personas/${encodeURIComponent(String(id))}/launch`
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Starts an agent from the persona's saved configuration with per-launch overrides layered on top. `agentType` runs the persona as a different agent — the model, endpoint route, and the persona's pinned provider key are then re-resolved for that type rather than carried over.
|
|
108
|
+
* @summary Launch an agent from a persona.
|
|
109
|
+
*/
|
|
110
|
+
export const launchAgentFromPersona = async (id: string,
|
|
111
|
+
launchAgentFromPersonaBody: LaunchAgentFromPersonaBody, options?: RequestInit): Promise<launchAgentFromPersonaResponse> => {
|
|
112
|
+
|
|
113
|
+
return apiFetch<launchAgentFromPersonaResponse>(getLaunchAgentFromPersonaUrl(id),
|
|
114
|
+
{
|
|
115
|
+
...options,
|
|
116
|
+
method: 'POST',
|
|
117
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
118
|
+
body: JSON.stringify(launchAgentFromPersonaBody)
|
|
119
|
+
}
|
|
120
|
+
);}
|
|
121
|
+
|
|
122
|
+
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentPersonaAttachments } from './agentPersonaAttachments.js';
|
|
8
|
+
import type { AgentPersonaEnvVars } from './agentPersonaEnvVars.js';
|
|
9
|
+
import type { AgentPersonaPromptMode } from './agentPersonaPromptMode.js';
|
|
10
|
+
import type { AgentPersonaSandboxOptions } from './agentPersonaSandboxOptions.js';
|
|
11
|
+
|
|
12
|
+
export interface AgentPersona {
|
|
13
|
+
name: string;
|
|
14
|
+
agentType: string;
|
|
15
|
+
systemPrompt: string | null;
|
|
16
|
+
model: string | null;
|
|
17
|
+
modelEndpointId: string | null;
|
|
18
|
+
blueprintId?: string;
|
|
19
|
+
blueprintName: string | null;
|
|
20
|
+
sandboxOptions: AgentPersonaSandboxOptions;
|
|
21
|
+
attachments: AgentPersonaAttachments;
|
|
22
|
+
envVars: AgentPersonaEnvVars;
|
|
23
|
+
promptMode: AgentPersonaPromptMode;
|
|
24
|
+
labelIds: string[] | null;
|
|
25
|
+
groupId: string | null;
|
|
26
|
+
modelProviderSecretId: string | null;
|
|
27
|
+
id: string;
|
|
28
|
+
description: string | null;
|
|
29
|
+
icon: string | null;
|
|
30
|
+
defaultPrompt: string | null;
|
|
31
|
+
isBuiltIn: boolean;
|
|
32
|
+
organizationId: string | null;
|
|
33
|
+
ownerId: string | null;
|
|
34
|
+
createdAt: number;
|
|
35
|
+
updatedAt: number;
|
|
36
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type AgentPersonaEnvVars = {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @pattern ^[A-Za-z_][A-Za-z0-9_]*$
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
secretRef?: string;
|
|
16
|
+
isSecret?: boolean;
|
|
17
|
+
}[] | null;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type AgentPersonaPromptMode = typeof AgentPersonaPromptMode[keyof typeof AgentPersonaPromptMode] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const AgentPersonaPromptMode = {
|
|
12
|
+
implement: 'implement',
|
|
13
|
+
plan: 'plan',
|
|
14
|
+
review: 'review',
|
|
15
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type { AgentPersonaSandboxOptionsCustomSize } from './agentPersonaSandboxOptionsCustomSize.js';
|
|
8
|
+
import type { AgentPersonaSandboxOptionsResourceSize } from './agentPersonaSandboxOptionsResourceSize.js';
|
|
9
|
+
|
|
10
|
+
export type AgentPersonaSandboxOptions = {
|
|
11
|
+
blueprintName?: string | null;
|
|
12
|
+
blueprintId?: string | null;
|
|
13
|
+
snapshotId?: string | null;
|
|
14
|
+
resourceSize?: AgentPersonaSandboxOptionsResourceSize;
|
|
15
|
+
customSize?: AgentPersonaSandboxOptionsCustomSize;
|
|
16
|
+
dockerd?: boolean | null;
|
|
17
|
+
computerUse?: boolean | null;
|
|
18
|
+
artifactMirrors?: boolean | null;
|
|
19
|
+
idleTimeMinutes?: number | null;
|
|
20
|
+
resumeOnHttp?: boolean | null;
|
|
21
|
+
} | null;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type AgentPersonaSandboxOptionsCustomSize = {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @maxLength 50
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/** @minimum 0.5 */
|
|
15
|
+
cpuCores: number;
|
|
16
|
+
/**
|
|
17
|
+
* @minimum 1
|
|
18
|
+
* @maximum 9007199254740991
|
|
19
|
+
*/
|
|
20
|
+
gbMemory: number;
|
|
21
|
+
diskSizeGb?: number | null;
|
|
22
|
+
} | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type AgentPersonaSandboxOptionsResourceSize = typeof AgentPersonaSandboxOptionsResourceSize[keyof typeof AgentPersonaSandboxOptionsResourceSize] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const AgentPersonaSandboxOptionsResourceSize = {
|
|
12
|
+
SMALL: 'SMALL',
|
|
13
|
+
MEDIUM: 'MEDIUM',
|
|
14
|
+
LARGE: 'LARGE',
|
|
15
|
+
X_LARGE: 'X_LARGE',
|
|
16
|
+
XX_LARGE: 'XX_LARGE',
|
|
17
|
+
} as const;
|
|
@@ -36,6 +36,13 @@ export * from './agentModelSupportResponse.js';
|
|
|
36
36
|
export * from './agentModelSupportResponseAgents.js';
|
|
37
37
|
export * from './agentModelSupportResponseDefaultAgentTypeSource.js';
|
|
38
38
|
export * from './agentModelSupportResponseLaunchableAgentsItem.js';
|
|
39
|
+
export * from './agentPersona.js';
|
|
40
|
+
export * from './agentPersonaAttachments.js';
|
|
41
|
+
export * from './agentPersonaEnvVars.js';
|
|
42
|
+
export * from './agentPersonaPromptMode.js';
|
|
43
|
+
export * from './agentPersonaSandboxOptions.js';
|
|
44
|
+
export * from './agentPersonaSandboxOptionsCustomSize.js';
|
|
45
|
+
export * from './agentPersonaSandboxOptionsResourceSize.js';
|
|
39
46
|
export * from './agentPromptMode.js';
|
|
40
47
|
export * from './agentSandboxOptions.js';
|
|
41
48
|
export * from './agentSandboxOptionsCustomSize.js';
|
|
@@ -182,6 +189,16 @@ export * from './getProfileStatsParams.js';
|
|
|
182
189
|
export * from './getRecentActivity200.js';
|
|
183
190
|
export * from './getRecentActivityParams.js';
|
|
184
191
|
export * from './getStatus200.js';
|
|
192
|
+
export * from './launchAgentFromPersonaBody.js';
|
|
193
|
+
export * from './launchAgentFromPersonaBodyAuthMethod.js';
|
|
194
|
+
export * from './launchAgentFromPersonaBodyContentItem.js';
|
|
195
|
+
export * from './launchAgentFromPersonaBodyExtraAttachmentsItem.js';
|
|
196
|
+
export * from './launchAgentFromPersonaBodyExtraEnvVarsItem.js';
|
|
197
|
+
export * from './launchAgentFromPersonaBodyPromptMode.js';
|
|
198
|
+
export * from './launchAgentFromPersonaBodyPromptStrategy.js';
|
|
199
|
+
export * from './launchAgentFromPersonaBodySandboxOptions.js';
|
|
200
|
+
export * from './launchAgentFromPersonaBodySandboxOptionsCustomSize.js';
|
|
201
|
+
export * from './launchAgentFromPersonaBodySandboxOptionsResourceSize.js';
|
|
185
202
|
export * from './listAccessibleModelProviderSecrets200.js';
|
|
186
203
|
export * from './listAccessibleModelProviderSecretsParams.js';
|
|
187
204
|
export * from './listAccountFeatureFlags200Item.js';
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type { LaunchAgentFromPersonaBodyAuthMethod } from './launchAgentFromPersonaBodyAuthMethod.js';
|
|
8
|
+
import type { LaunchAgentFromPersonaBodyContentItem } from './launchAgentFromPersonaBodyContentItem.js';
|
|
9
|
+
import type { LaunchAgentFromPersonaBodyExtraAttachmentsItem } from './launchAgentFromPersonaBodyExtraAttachmentsItem.js';
|
|
10
|
+
import type { LaunchAgentFromPersonaBodyExtraEnvVarsItem } from './launchAgentFromPersonaBodyExtraEnvVarsItem.js';
|
|
11
|
+
import type { LaunchAgentFromPersonaBodyPromptMode } from './launchAgentFromPersonaBodyPromptMode.js';
|
|
12
|
+
import type { LaunchAgentFromPersonaBodyPromptStrategy } from './launchAgentFromPersonaBodyPromptStrategy.js';
|
|
13
|
+
import type { LaunchAgentFromPersonaBodySandboxOptions } from './launchAgentFromPersonaBodySandboxOptions.js';
|
|
14
|
+
|
|
15
|
+
export type LaunchAgentFromPersonaBody = {
|
|
16
|
+
/** @minLength 1 */
|
|
17
|
+
prompt: string;
|
|
18
|
+
promptStrategy?: LaunchAgentFromPersonaBodyPromptStrategy;
|
|
19
|
+
name?: string;
|
|
20
|
+
/** @minLength 1 */
|
|
21
|
+
agentType?: string;
|
|
22
|
+
model?: string;
|
|
23
|
+
/** @minLength 1 */
|
|
24
|
+
modelEndpointId?: string;
|
|
25
|
+
systemPrompt?: string;
|
|
26
|
+
promptMode?: LaunchAgentFromPersonaBodyPromptMode;
|
|
27
|
+
authMethod?: LaunchAgentFromPersonaBodyAuthMethod;
|
|
28
|
+
/** @pattern ^mps_[A-Za-z0-9]{22}$ */
|
|
29
|
+
providerSecretId?: string;
|
|
30
|
+
content?: LaunchAgentFromPersonaBodyContentItem[];
|
|
31
|
+
extraAttachments?: LaunchAgentFromPersonaBodyExtraAttachmentsItem[];
|
|
32
|
+
extraEnvVars?: LaunchAgentFromPersonaBodyExtraEnvVarsItem[];
|
|
33
|
+
repoSlug?: string;
|
|
34
|
+
repoBranch?: string;
|
|
35
|
+
extraLabelIds?: string[];
|
|
36
|
+
groupId?: string;
|
|
37
|
+
blueprintName?: string;
|
|
38
|
+
sandboxOptions?: LaunchAgentFromPersonaBodySandboxOptions;
|
|
39
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodyAuthMethod = typeof LaunchAgentFromPersonaBodyAuthMethod[keyof typeof LaunchAgentFromPersonaBodyAuthMethod];
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const LaunchAgentFromPersonaBodyAuthMethod = {
|
|
12
|
+
'org-key': 'org-key',
|
|
13
|
+
'claude-max': 'claude-max',
|
|
14
|
+
'codex-subscription': 'codex-subscription',
|
|
15
|
+
} as const;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodyContentItem = {
|
|
9
|
+
type: 'text';
|
|
10
|
+
text: string;
|
|
11
|
+
} | {
|
|
12
|
+
type: 'image';
|
|
13
|
+
mimeType: string;
|
|
14
|
+
data: string;
|
|
15
|
+
} | {
|
|
16
|
+
type: 'file';
|
|
17
|
+
name: string;
|
|
18
|
+
mimeType: string;
|
|
19
|
+
data: string;
|
|
20
|
+
};
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodyExtraEnvVarsItem = {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @pattern ^[A-Za-z_][A-Za-z0-9_]*$
|
|
12
|
+
*/
|
|
13
|
+
key: string;
|
|
14
|
+
value?: string;
|
|
15
|
+
secretRef?: string;
|
|
16
|
+
isSecret?: boolean;
|
|
17
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodyPromptMode = typeof LaunchAgentFromPersonaBodyPromptMode[keyof typeof LaunchAgentFromPersonaBodyPromptMode];
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const LaunchAgentFromPersonaBodyPromptMode = {
|
|
12
|
+
implement: 'implement',
|
|
13
|
+
plan: 'plan',
|
|
14
|
+
review: 'review',
|
|
15
|
+
} as const;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodyPromptStrategy = typeof LaunchAgentFromPersonaBodyPromptStrategy[keyof typeof LaunchAgentFromPersonaBodyPromptStrategy];
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const LaunchAgentFromPersonaBodyPromptStrategy = {
|
|
12
|
+
'prepend-default': 'prepend-default',
|
|
13
|
+
replace: 'replace',
|
|
14
|
+
} as const;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
import type { LaunchAgentFromPersonaBodySandboxOptionsCustomSize } from './launchAgentFromPersonaBodySandboxOptionsCustomSize.js';
|
|
8
|
+
import type { LaunchAgentFromPersonaBodySandboxOptionsResourceSize } from './launchAgentFromPersonaBodySandboxOptionsResourceSize.js';
|
|
9
|
+
|
|
10
|
+
export type LaunchAgentFromPersonaBodySandboxOptions = {
|
|
11
|
+
blueprintName?: string | null;
|
|
12
|
+
blueprintId?: string | null;
|
|
13
|
+
snapshotId?: string | null;
|
|
14
|
+
resourceSize?: LaunchAgentFromPersonaBodySandboxOptionsResourceSize;
|
|
15
|
+
customSize?: LaunchAgentFromPersonaBodySandboxOptionsCustomSize;
|
|
16
|
+
dockerd?: boolean | null;
|
|
17
|
+
computerUse?: boolean | null;
|
|
18
|
+
artifactMirrors?: boolean | null;
|
|
19
|
+
idleTimeMinutes?: number | null;
|
|
20
|
+
resumeOnHttp?: boolean | null;
|
|
21
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodySandboxOptionsCustomSize = {
|
|
9
|
+
/**
|
|
10
|
+
* @minLength 1
|
|
11
|
+
* @maxLength 50
|
|
12
|
+
*/
|
|
13
|
+
name: string;
|
|
14
|
+
/** @minimum 0.5 */
|
|
15
|
+
cpuCores: number;
|
|
16
|
+
/**
|
|
17
|
+
* @minimum 1
|
|
18
|
+
* @maximum 9007199254740991
|
|
19
|
+
*/
|
|
20
|
+
gbMemory: number;
|
|
21
|
+
diskSizeGb?: number | null;
|
|
22
|
+
} | null;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by orval v8.18.0 🍺
|
|
3
|
+
* Do not edit manually.
|
|
4
|
+
* Reflex API
|
|
5
|
+
* OpenAPI spec version: 1.0.0
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
export type LaunchAgentFromPersonaBodySandboxOptionsResourceSize = typeof LaunchAgentFromPersonaBodySandboxOptionsResourceSize[keyof typeof LaunchAgentFromPersonaBodySandboxOptionsResourceSize] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const LaunchAgentFromPersonaBodySandboxOptionsResourceSize = {
|
|
12
|
+
SMALL: 'SMALL',
|
|
13
|
+
MEDIUM: 'MEDIUM',
|
|
14
|
+
LARGE: 'LARGE',
|
|
15
|
+
X_LARGE: 'X_LARGE',
|
|
16
|
+
XX_LARGE: 'XX_LARGE',
|
|
17
|
+
} as const;
|
package/src/index.ts
CHANGED
|
@@ -62,6 +62,7 @@ export * from './generated/agent-associations.js';
|
|
|
62
62
|
export * from './generated/agent-drafts.js';
|
|
63
63
|
export * from './generated/agent-groups.js';
|
|
64
64
|
export * from './generated/agent-labels.js';
|
|
65
|
+
export * from './generated/agent-personas.js';
|
|
65
66
|
export * from './generated/agents.js';
|
|
66
67
|
export * from './generated/auth.js';
|
|
67
68
|
export * from './generated/blueprints.js';
|