@runloop/reflex-client 0.10.0 → 0.12.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/agents.d.ts +17 -2
- package/dist/generated/agents.d.ts.map +1 -1
- package/dist/generated/agents.js +23 -1
- package/dist/generated/agents.js.map +1 -1
- package/dist/generated/model/agent.d.ts +2 -0
- package/dist/generated/model/agent.d.ts.map +1 -1
- package/dist/generated/model/agentCommandFailureResponse.d.ts +12 -0
- package/dist/generated/model/agentCommandFailureResponse.d.ts.map +1 -0
- package/dist/generated/model/agentCommandFailureResponse.js +8 -0
- package/dist/generated/model/agentCommandFailureResponse.js.map +1 -0
- package/dist/generated/model/agentCommandStatusResponse.d.ts +14 -0
- package/dist/generated/model/agentCommandStatusResponse.d.ts.map +1 -0
- package/dist/generated/model/agentCommandStatusResponse.js +2 -0
- package/dist/generated/model/agentCommandStatusResponse.js.map +1 -0
- package/dist/generated/model/agentCommandStatusResponseStatus.d.ts +14 -0
- package/dist/generated/model/agentCommandStatusResponseStatus.d.ts.map +1 -0
- package/dist/generated/model/agentCommandStatusResponseStatus.js +13 -0
- package/dist/generated/model/agentCommandStatusResponseStatus.js.map +1 -0
- package/dist/generated/model/agentPromptMode.d.ts +13 -0
- package/dist/generated/model/agentPromptMode.d.ts.map +1 -0
- package/dist/generated/model/agentPromptMode.js +12 -0
- package/dist/generated/model/agentPromptMode.js.map +1 -0
- package/dist/generated/model/createAgentBodyPromptMode.d.ts +1 -0
- package/dist/generated/model/createAgentBodyPromptMode.d.ts.map +1 -1
- package/dist/generated/model/createAgentBodyPromptMode.js +1 -0
- package/dist/generated/model/createAgentBodyPromptMode.js.map +1 -1
- package/dist/generated/model/createAgentResponse.d.ts +2 -0
- package/dist/generated/model/createAgentResponse.d.ts.map +1 -1
- package/dist/generated/model/createAgentResponsePromptMode.d.ts +13 -0
- package/dist/generated/model/createAgentResponsePromptMode.d.ts.map +1 -0
- package/dist/generated/model/createAgentResponsePromptMode.js +12 -0
- package/dist/generated/model/createAgentResponsePromptMode.js.map +1 -0
- package/dist/generated/model/getAgentCommandStatusParams.d.ts +14 -0
- package/dist/generated/model/getAgentCommandStatusParams.d.ts.map +1 -0
- package/dist/generated/model/getAgentCommandStatusParams.js +8 -0
- package/dist/generated/model/getAgentCommandStatusParams.js.map +1 -0
- package/dist/generated/model/getIdpConfig200.d.ts +11 -0
- package/dist/generated/model/getIdpConfig200.d.ts.map +1 -0
- package/dist/generated/model/getIdpConfig200.js +2 -0
- package/dist/generated/model/getIdpConfig200.js.map +1 -0
- package/dist/generated/model/getIdpConfig200Config.d.ts +21 -0
- package/dist/generated/model/getIdpConfig200Config.d.ts.map +1 -0
- package/dist/generated/model/getIdpConfig200Config.js +2 -0
- package/dist/generated/model/getIdpConfig200Config.js.map +1 -0
- package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
- package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
- package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
- package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
- package/dist/generated/model/index.d.ts +14 -0
- package/dist/generated/model/index.d.ts.map +1 -1
- package/dist/generated/model/index.js +14 -0
- package/dist/generated/model/index.js.map +1 -1
- package/dist/generated/model/rotateScimToken200.d.ts +10 -0
- package/dist/generated/model/rotateScimToken200.d.ts.map +1 -0
- package/dist/generated/model/rotateScimToken200.js +8 -0
- package/dist/generated/model/rotateScimToken200.js.map +1 -0
- package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.d.ts +1 -0
- package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.d.ts.map +1 -1
- package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.js +1 -0
- package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.js.map +1 -1
- package/dist/generated/model/upsertIdpConfig200.d.ts +21 -0
- package/dist/generated/model/upsertIdpConfig200.d.ts.map +1 -0
- package/dist/generated/model/upsertIdpConfig200.js +2 -0
- package/dist/generated/model/upsertIdpConfig200.js.map +1 -0
- package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
- package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
- package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
- package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
- package/dist/generated/model/upsertIdpConfigBody.d.ts +16 -0
- package/dist/generated/model/upsertIdpConfigBody.d.ts.map +1 -0
- package/dist/generated/model/upsertIdpConfigBody.js +2 -0
- package/dist/generated/model/upsertIdpConfigBody.js.map +1 -0
- package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
- package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
- package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
- package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
- package/dist/generated/organizations.d.ts +40 -1
- package/dist/generated/organizations.d.ts.map +1 -1
- package/dist/generated/organizations.js +41 -0
- package/dist/generated/organizations.js.map +1 -1
- package/dist/react/agents.d.ts +29 -3
- package/dist/react/agents.d.ts.map +1 -1
- package/dist/react/agents.js +32 -3
- package/dist/react/agents.js.map +1 -1
- package/dist/react/model/agent.d.ts +2 -0
- package/dist/react/model/agent.d.ts.map +1 -1
- package/dist/react/model/agentCommandFailureResponse.d.ts +12 -0
- package/dist/react/model/agentCommandFailureResponse.d.ts.map +1 -0
- package/dist/react/model/agentCommandFailureResponse.js +8 -0
- package/dist/react/model/agentCommandFailureResponse.js.map +1 -0
- package/dist/react/model/agentCommandStatusResponse.d.ts +14 -0
- package/dist/react/model/agentCommandStatusResponse.d.ts.map +1 -0
- package/dist/react/model/agentCommandStatusResponse.js +2 -0
- package/dist/react/model/agentCommandStatusResponse.js.map +1 -0
- package/dist/react/model/agentCommandStatusResponseStatus.d.ts +14 -0
- package/dist/react/model/agentCommandStatusResponseStatus.d.ts.map +1 -0
- package/dist/react/model/agentCommandStatusResponseStatus.js +13 -0
- package/dist/react/model/agentCommandStatusResponseStatus.js.map +1 -0
- package/dist/react/model/agentPromptMode.d.ts +13 -0
- package/dist/react/model/agentPromptMode.d.ts.map +1 -0
- package/dist/react/model/agentPromptMode.js +12 -0
- package/dist/react/model/agentPromptMode.js.map +1 -0
- package/dist/react/model/createAgentBodyPromptMode.d.ts +1 -0
- package/dist/react/model/createAgentBodyPromptMode.d.ts.map +1 -1
- package/dist/react/model/createAgentBodyPromptMode.js +1 -0
- package/dist/react/model/createAgentBodyPromptMode.js.map +1 -1
- package/dist/react/model/createAgentResponse.d.ts +2 -0
- package/dist/react/model/createAgentResponse.d.ts.map +1 -1
- package/dist/react/model/createAgentResponsePromptMode.d.ts +13 -0
- package/dist/react/model/createAgentResponsePromptMode.d.ts.map +1 -0
- package/dist/react/model/createAgentResponsePromptMode.js +12 -0
- package/dist/react/model/createAgentResponsePromptMode.js.map +1 -0
- package/dist/react/model/getAgentCommandStatusParams.d.ts +14 -0
- package/dist/react/model/getAgentCommandStatusParams.d.ts.map +1 -0
- package/dist/react/model/getAgentCommandStatusParams.js +8 -0
- package/dist/react/model/getAgentCommandStatusParams.js.map +1 -0
- package/dist/react/model/getIdpConfig200.d.ts +11 -0
- package/dist/react/model/getIdpConfig200.d.ts.map +1 -0
- package/dist/react/model/getIdpConfig200.js +2 -0
- package/dist/react/model/getIdpConfig200.js.map +1 -0
- package/dist/react/model/getIdpConfig200Config.d.ts +21 -0
- package/dist/react/model/getIdpConfig200Config.d.ts.map +1 -0
- package/dist/react/model/getIdpConfig200Config.js +2 -0
- package/dist/react/model/getIdpConfig200Config.js.map +1 -0
- package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
- package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
- package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
- package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
- package/dist/react/model/rotateScimToken200.d.ts +10 -0
- package/dist/react/model/rotateScimToken200.d.ts.map +1 -0
- package/dist/react/model/rotateScimToken200.js +8 -0
- package/dist/react/model/rotateScimToken200.js.map +1 -0
- package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.d.ts +1 -0
- package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.d.ts.map +1 -1
- package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.js +1 -0
- package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.js.map +1 -1
- package/dist/react/model/upsertIdpConfig200.d.ts +21 -0
- package/dist/react/model/upsertIdpConfig200.d.ts.map +1 -0
- package/dist/react/model/upsertIdpConfig200.js +2 -0
- package/dist/react/model/upsertIdpConfig200.js.map +1 -0
- package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
- package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
- package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
- package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
- package/dist/react/model/upsertIdpConfigBody.d.ts +16 -0
- package/dist/react/model/upsertIdpConfigBody.d.ts.map +1 -0
- package/dist/react/model/upsertIdpConfigBody.js +2 -0
- package/dist/react/model/upsertIdpConfigBody.js.map +1 -0
- package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
- package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
- package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
- package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
- package/dist/react/organizations.d.ts +81 -0
- package/dist/react/organizations.d.ts.map +1 -1
- package/dist/react/organizations.js +80 -0
- package/dist/react/organizations.js.map +1 -1
- package/package.json +1 -1
- package/src/generated/agents.ts +51 -1
- package/src/generated/model/agent.ts +2 -0
- package/src/generated/model/agentCommandFailureResponse.ts +12 -0
- package/src/generated/model/agentCommandStatusResponse.ts +14 -0
- package/src/generated/model/agentCommandStatusResponseStatus.ts +16 -0
- package/src/generated/model/agentPromptMode.ts +15 -0
- package/src/generated/model/createAgentBodyPromptMode.ts +1 -0
- package/src/generated/model/createAgentResponse.ts +2 -0
- package/src/generated/model/createAgentResponsePromptMode.ts +15 -0
- package/src/generated/model/getAgentCommandStatusParams.ts +14 -0
- package/src/generated/model/getIdpConfig200.ts +11 -0
- package/src/generated/model/getIdpConfig200Config.ts +21 -0
- package/src/generated/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
- package/src/generated/model/index.ts +14 -0
- package/src/generated/model/rotateScimToken200.ts +10 -0
- package/src/generated/model/saveAgentDraftBodyPayloadPromptMode.ts +1 -0
- package/src/generated/model/upsertIdpConfig200.ts +21 -0
- package/src/generated/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
- package/src/generated/model/upsertIdpConfigBody.ts +16 -0
- package/src/generated/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
- package/src/generated/organizations.ts +110 -0
- package/src/react/agents.ts +89 -2
- package/src/react/model/agent.ts +2 -0
- package/src/react/model/agentCommandFailureResponse.ts +12 -0
- package/src/react/model/agentCommandStatusResponse.ts +14 -0
- package/src/react/model/agentCommandStatusResponseStatus.ts +16 -0
- package/src/react/model/agentPromptMode.ts +15 -0
- package/src/react/model/createAgentBodyPromptMode.ts +1 -0
- package/src/react/model/createAgentResponse.ts +2 -0
- package/src/react/model/createAgentResponsePromptMode.ts +15 -0
- package/src/react/model/getAgentCommandStatusParams.ts +14 -0
- package/src/react/model/getIdpConfig200.ts +11 -0
- package/src/react/model/getIdpConfig200Config.ts +21 -0
- package/src/react/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
- package/src/react/model/rotateScimToken200.ts +10 -0
- package/src/react/model/saveAgentDraftBodyPayloadPromptMode.ts +1 -0
- package/src/react/model/upsertIdpConfig200.ts +21 -0
- package/src/react/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
- package/src/react/model/upsertIdpConfigBody.ts +16 -0
- package/src/react/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
- package/src/react/organizations.ts +209 -0
|
@@ -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 { UpsertIdpConfig200GroupMappingsItem } from './upsertIdpConfig200GroupMappingsItem.js';
|
|
8
|
+
|
|
9
|
+
export type UpsertIdpConfig200 = {
|
|
10
|
+
id: string;
|
|
11
|
+
organizationId: string;
|
|
12
|
+
displayName: string | null;
|
|
13
|
+
issuer: string;
|
|
14
|
+
groupMappings: UpsertIdpConfig200GroupMappingsItem[];
|
|
15
|
+
oktaOrgUrl: string | null;
|
|
16
|
+
oktaSyncEnabled: boolean;
|
|
17
|
+
scimTokenSet: boolean;
|
|
18
|
+
lastSyncedAt: number | null;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
updatedAt: number;
|
|
21
|
+
};
|
|
@@ -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 UpsertIdpConfig200GroupMappingsItem = {
|
|
9
|
+
/** @minLength 1 */
|
|
10
|
+
group: string;
|
|
11
|
+
/** @minLength 1 */
|
|
12
|
+
roleId?: string;
|
|
13
|
+
/** @minLength 1 */
|
|
14
|
+
teamId?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { UpsertIdpConfigBodyGroupMappingsItem } from './upsertIdpConfigBodyGroupMappingsItem.js';
|
|
8
|
+
|
|
9
|
+
export type UpsertIdpConfigBody = {
|
|
10
|
+
displayName?: string | null;
|
|
11
|
+
issuer: string;
|
|
12
|
+
/** @maxItems 200 */
|
|
13
|
+
groupMappings?: UpsertIdpConfigBodyGroupMappingsItem[];
|
|
14
|
+
oktaOrgUrl?: string | null;
|
|
15
|
+
oktaSyncEnabled?: boolean;
|
|
16
|
+
};
|
|
@@ -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 UpsertIdpConfigBodyGroupMappingsItem = {
|
|
9
|
+
/** @minLength 1 */
|
|
10
|
+
group: string;
|
|
11
|
+
/** @minLength 1 */
|
|
12
|
+
roleId?: string;
|
|
13
|
+
/** @minLength 1 */
|
|
14
|
+
teamId?: string;
|
|
15
|
+
};
|
|
@@ -18,6 +18,7 @@ import type {
|
|
|
18
18
|
CreateOrganizationBody,
|
|
19
19
|
CreateTeamModelProviderSecretBody,
|
|
20
20
|
CreateTeamSecretBody,
|
|
21
|
+
GetIdpConfig200,
|
|
21
22
|
ListLlmTaskAssignments200,
|
|
22
23
|
ListOrgInvitesParams,
|
|
23
24
|
ListOrgModelProviderSecretDependents200,
|
|
@@ -28,6 +29,7 @@ import type {
|
|
|
28
29
|
ModelProviderSecret,
|
|
29
30
|
Organization,
|
|
30
31
|
RevokeOrgRoleBody,
|
|
32
|
+
RotateScimToken200,
|
|
31
33
|
ScopedSecret,
|
|
32
34
|
SetBaseImageOverridesBody,
|
|
33
35
|
SetOrgPluginSettingsBody,
|
|
@@ -36,6 +38,8 @@ import type {
|
|
|
36
38
|
UpdateOrganizationBody,
|
|
37
39
|
UpdateTeamModelProviderSecretBody,
|
|
38
40
|
UpdateTeamSecretBody,
|
|
41
|
+
UpsertIdpConfig200,
|
|
42
|
+
UpsertIdpConfigBody,
|
|
39
43
|
UpsertLlmTaskAssignmentBody
|
|
40
44
|
} from './model/index.js';
|
|
41
45
|
|
|
@@ -1389,6 +1393,112 @@ export const createOrgTeam = async (id: string,
|
|
|
1389
1393
|
);}
|
|
1390
1394
|
|
|
1391
1395
|
|
|
1396
|
+
export type getIdpConfigResponse200 = {
|
|
1397
|
+
data: GetIdpConfig200
|
|
1398
|
+
status: 200
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
export type getIdpConfigResponseSuccess = (getIdpConfigResponse200) & {
|
|
1402
|
+
headers: Headers;
|
|
1403
|
+
};
|
|
1404
|
+
;
|
|
1405
|
+
|
|
1406
|
+
export type getIdpConfigResponse = (getIdpConfigResponseSuccess)
|
|
1407
|
+
|
|
1408
|
+
export const getGetIdpConfigUrl = (organizationId: string,) => {
|
|
1409
|
+
|
|
1410
|
+
|
|
1411
|
+
|
|
1412
|
+
|
|
1413
|
+
return `/organizations/${encodeURIComponent(String(organizationId))}/idp-config`
|
|
1414
|
+
}
|
|
1415
|
+
|
|
1416
|
+
/**
|
|
1417
|
+
* @summary Get the org's enterprise IdP configuration.
|
|
1418
|
+
*/
|
|
1419
|
+
export const getIdpConfig = async (organizationId: string, options?: RequestInit): Promise<getIdpConfigResponse> => {
|
|
1420
|
+
|
|
1421
|
+
return apiFetch<getIdpConfigResponse>(getGetIdpConfigUrl(organizationId),
|
|
1422
|
+
{
|
|
1423
|
+
...options,
|
|
1424
|
+
method: 'GET'
|
|
1425
|
+
|
|
1426
|
+
|
|
1427
|
+
}
|
|
1428
|
+
);}
|
|
1429
|
+
|
|
1430
|
+
|
|
1431
|
+
export type upsertIdpConfigResponse200 = {
|
|
1432
|
+
data: UpsertIdpConfig200
|
|
1433
|
+
status: 200
|
|
1434
|
+
}
|
|
1435
|
+
|
|
1436
|
+
export type upsertIdpConfigResponseSuccess = (upsertIdpConfigResponse200) & {
|
|
1437
|
+
headers: Headers;
|
|
1438
|
+
};
|
|
1439
|
+
;
|
|
1440
|
+
|
|
1441
|
+
export type upsertIdpConfigResponse = (upsertIdpConfigResponseSuccess)
|
|
1442
|
+
|
|
1443
|
+
export const getUpsertIdpConfigUrl = (organizationId: string,) => {
|
|
1444
|
+
|
|
1445
|
+
|
|
1446
|
+
|
|
1447
|
+
|
|
1448
|
+
return `/organizations/${encodeURIComponent(String(organizationId))}/idp-config`
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
/**
|
|
1452
|
+
* @summary Create or update the org's enterprise IdP configuration.
|
|
1453
|
+
*/
|
|
1454
|
+
export const upsertIdpConfig = async (organizationId: string,
|
|
1455
|
+
upsertIdpConfigBody: UpsertIdpConfigBody, options?: RequestInit): Promise<upsertIdpConfigResponse> => {
|
|
1456
|
+
|
|
1457
|
+
return apiFetch<upsertIdpConfigResponse>(getUpsertIdpConfigUrl(organizationId),
|
|
1458
|
+
{
|
|
1459
|
+
...options,
|
|
1460
|
+
method: 'PUT',
|
|
1461
|
+
headers: { 'Content-Type': 'application/json', ...options?.headers },
|
|
1462
|
+
body: JSON.stringify(upsertIdpConfigBody)
|
|
1463
|
+
}
|
|
1464
|
+
);}
|
|
1465
|
+
|
|
1466
|
+
|
|
1467
|
+
export type rotateScimTokenResponse200 = {
|
|
1468
|
+
data: RotateScimToken200
|
|
1469
|
+
status: 200
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
export type rotateScimTokenResponseSuccess = (rotateScimTokenResponse200) & {
|
|
1473
|
+
headers: Headers;
|
|
1474
|
+
};
|
|
1475
|
+
;
|
|
1476
|
+
|
|
1477
|
+
export type rotateScimTokenResponse = (rotateScimTokenResponseSuccess)
|
|
1478
|
+
|
|
1479
|
+
export const getRotateScimTokenUrl = (organizationId: string,) => {
|
|
1480
|
+
|
|
1481
|
+
|
|
1482
|
+
|
|
1483
|
+
|
|
1484
|
+
return `/organizations/${encodeURIComponent(String(organizationId))}/idp-config/scim-token`
|
|
1485
|
+
}
|
|
1486
|
+
|
|
1487
|
+
/**
|
|
1488
|
+
* @summary Mint a fresh SCIM bearer token for the org's IdP, replacing any previous one.
|
|
1489
|
+
*/
|
|
1490
|
+
export const rotateScimToken = async (organizationId: string, options?: RequestInit): Promise<rotateScimTokenResponse> => {
|
|
1491
|
+
|
|
1492
|
+
return apiFetch<rotateScimTokenResponse>(getRotateScimTokenUrl(organizationId),
|
|
1493
|
+
{
|
|
1494
|
+
...options,
|
|
1495
|
+
method: 'POST'
|
|
1496
|
+
|
|
1497
|
+
|
|
1498
|
+
}
|
|
1499
|
+
);}
|
|
1500
|
+
|
|
1501
|
+
|
|
1392
1502
|
export type listLlmTaskAssignmentsResponse200 = {
|
|
1393
1503
|
data: ListLlmTaskAssignments200
|
|
1394
1504
|
status: 200
|
package/src/react/agents.ts
CHANGED
|
@@ -26,6 +26,10 @@ import type {
|
|
|
26
26
|
AgentCommandPendingResponse
|
|
27
27
|
} from './model/agentCommandPendingResponse.js';
|
|
28
28
|
|
|
29
|
+
import type {
|
|
30
|
+
AgentCommandStatusResponse
|
|
31
|
+
} from './model/agentCommandStatusResponse.js';
|
|
32
|
+
|
|
29
33
|
import type {
|
|
30
34
|
AgentServiceStatusesResponse
|
|
31
35
|
} from './model/agentServiceStatusesResponse.js';
|
|
@@ -70,6 +74,10 @@ import type {
|
|
|
70
74
|
EnqueueAgentMessageBody
|
|
71
75
|
} from './model/enqueueAgentMessageBody.js';
|
|
72
76
|
|
|
77
|
+
import type {
|
|
78
|
+
GetAgentCommandStatusParams
|
|
79
|
+
} from './model/getAgentCommandStatusParams.js';
|
|
80
|
+
|
|
73
81
|
import type {
|
|
74
82
|
GetAgentQueue200Item
|
|
75
83
|
} from './model/getAgentQueue200Item.js';
|
|
@@ -423,7 +431,8 @@ export const useUpdateAgent = <TError = unknown,
|
|
|
423
431
|
return useMutation(getUpdateAgentMutationOptions(options));
|
|
424
432
|
}
|
|
425
433
|
/**
|
|
426
|
-
*
|
|
434
|
+
* Soft-deletes the run so normal reads no longer return it while retaining its durable history. Use `POST /agents/:id/stop` to force stop an agent while keeping it visible.
|
|
435
|
+
* @summary Delete the agent: force stop it, shut down its devbox, and hide the run.
|
|
427
436
|
*/
|
|
428
437
|
export const killAgent = (
|
|
429
438
|
id: string,
|
|
@@ -471,7 +480,7 @@ const {mutation: mutationOptions, request: requestOptions} = options ?
|
|
|
471
480
|
export type KillAgentMutationError = unknown
|
|
472
481
|
|
|
473
482
|
/**
|
|
474
|
-
* @summary
|
|
483
|
+
* @summary Delete the agent: force stop it, shut down its devbox, and hide the run.
|
|
475
484
|
*/
|
|
476
485
|
export const useKillAgent = <TError = unknown,
|
|
477
486
|
TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof killAgent>>, TError,{id: string}, TContext>, request?: SecondParameter<typeof apiFetch>}
|
|
@@ -545,6 +554,84 @@ export const useArchiveAgent = <TError = unknown,
|
|
|
545
554
|
return useMutation(getArchiveAgentMutationOptions(options));
|
|
546
555
|
}
|
|
547
556
|
/**
|
|
557
|
+
* Returns the lifecycle status of a mailbox command (`pending`, `claimed`, `sent`, or `failed` with a failure code). Pass `wait` (ms, capped server-side) to hold the request open until the command reaches `sent` or `failed`; at the bound the current status is returned.
|
|
558
|
+
* @summary Read the delivery status of a command sent to the agent.
|
|
559
|
+
*/
|
|
560
|
+
export const getAgentCommandStatus = (
|
|
561
|
+
id: string,
|
|
562
|
+
commandId: string,
|
|
563
|
+
params?: GetAgentCommandStatusParams,
|
|
564
|
+
options?: SecondParameter<typeof apiFetch>,signal?: AbortSignal
|
|
565
|
+
) => {
|
|
566
|
+
|
|
567
|
+
|
|
568
|
+
return apiFetch<AgentCommandStatusResponse>(
|
|
569
|
+
{url: `/agents/${encodeURIComponent(String(id))}/commands/${encodeURIComponent(String(commandId))}`, method: 'GET',
|
|
570
|
+
params, signal
|
|
571
|
+
},
|
|
572
|
+
options);
|
|
573
|
+
}
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
578
|
+
export const getGetAgentCommandStatusQueryKey = (id: string,
|
|
579
|
+
commandId: string,
|
|
580
|
+
params?: GetAgentCommandStatusParams,) => {
|
|
581
|
+
return [
|
|
582
|
+
`/agents/${id}/commands/${commandId}`, ...(params ? [params] : [])
|
|
583
|
+
] as const;
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
|
|
587
|
+
export const getGetAgentCommandStatusQueryOptions = <TData = Awaited<ReturnType<typeof getAgentCommandStatus>>, TError = unknown>(id: string,
|
|
588
|
+
commandId: string,
|
|
589
|
+
params?: GetAgentCommandStatusParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
|
|
590
|
+
) => {
|
|
591
|
+
|
|
592
|
+
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
593
|
+
|
|
594
|
+
const queryKey = queryOptions?.queryKey ?? getGetAgentCommandStatusQueryKey(id,commandId,params);
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
|
|
598
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAgentCommandStatus>>> = ({ signal }) => getAgentCommandStatus(id,commandId,params, requestOptions, signal);
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
|
|
604
|
+
return { queryKey, queryFn, enabled: id !== null && id !== undefined && commandId !== null && commandId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData> & { queryKey: QueryKey }
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
export type GetAgentCommandStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getAgentCommandStatus>>>
|
|
608
|
+
export type GetAgentCommandStatusQueryError = unknown
|
|
609
|
+
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* @summary Read the delivery status of a command sent to the agent.
|
|
613
|
+
*/
|
|
614
|
+
|
|
615
|
+
export function useGetAgentCommandStatus<TData = Awaited<ReturnType<typeof getAgentCommandStatus>>, TError = unknown>(
|
|
616
|
+
id: string,
|
|
617
|
+
commandId: string,
|
|
618
|
+
params?: GetAgentCommandStatusParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
|
|
619
|
+
|
|
620
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
621
|
+
|
|
622
|
+
const queryOptions = getGetAgentCommandStatusQueryOptions(id,commandId,params,options)
|
|
623
|
+
|
|
624
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
625
|
+
|
|
626
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
|
|
634
|
+
/**
|
|
548
635
|
* @summary Mark the agent's run as completed without shutting down its devbox.
|
|
549
636
|
*/
|
|
550
637
|
export const completeAgent = (
|
package/src/react/model/agent.ts
CHANGED
|
@@ -9,6 +9,7 @@ import type { AgentAttachments } from './agentAttachments.js';
|
|
|
9
9
|
import type { AgentDaemons } from './agentDaemons.js';
|
|
10
10
|
import type { AgentEnvVars } from './agentEnvVars.js';
|
|
11
11
|
import type { AgentMark } from './agentMark.js';
|
|
12
|
+
import type { AgentPromptMode } from './agentPromptMode.js';
|
|
12
13
|
import type { AgentSandboxOptions } from './agentSandboxOptions.js';
|
|
13
14
|
import type { AgentStatus } from './agentStatus.js';
|
|
14
15
|
import type { AgentTurnState } from './agentTurnState.js';
|
|
@@ -34,6 +35,7 @@ export interface Agent {
|
|
|
34
35
|
blueprintId?: string | null;
|
|
35
36
|
blueprintName?: string | null;
|
|
36
37
|
sandboxOptions?: AgentSandboxOptions;
|
|
38
|
+
promptMode?: AgentPromptMode;
|
|
37
39
|
createdAt: number;
|
|
38
40
|
lastActiveAt?: number | null;
|
|
39
41
|
archived: boolean;
|
|
@@ -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
|
+
import type { AgentCommandFailureResponse } from './agentCommandFailureResponse.js';
|
|
8
|
+
import type { AgentCommandStatusResponseStatus } from './agentCommandStatusResponseStatus.js';
|
|
9
|
+
|
|
10
|
+
export interface AgentCommandStatusResponse {
|
|
11
|
+
commandId: string;
|
|
12
|
+
status: AgentCommandStatusResponseStatus;
|
|
13
|
+
failure?: AgentCommandFailureResponse;
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
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 AgentCommandStatusResponseStatus = typeof AgentCommandStatusResponseStatus[keyof typeof AgentCommandStatusResponseStatus];
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const AgentCommandStatusResponseStatus = {
|
|
12
|
+
pending: 'pending',
|
|
13
|
+
claimed: 'claimed',
|
|
14
|
+
sent: 'sent',
|
|
15
|
+
failed: 'failed',
|
|
16
|
+
} as const;
|
|
@@ -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 AgentPromptMode = typeof AgentPromptMode[keyof typeof AgentPromptMode] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const AgentPromptMode = {
|
|
12
|
+
implement: 'implement',
|
|
13
|
+
plan: 'plan',
|
|
14
|
+
review: 'review',
|
|
15
|
+
} as const;
|
|
@@ -10,6 +10,7 @@ import type { CreateAgentResponseAttachments } from './createAgentResponseAttach
|
|
|
10
10
|
import type { CreateAgentResponseDaemons } from './createAgentResponseDaemons.js';
|
|
11
11
|
import type { CreateAgentResponseEnvVars } from './createAgentResponseEnvVars.js';
|
|
12
12
|
import type { CreateAgentResponseMark } from './createAgentResponseMark.js';
|
|
13
|
+
import type { CreateAgentResponsePromptMode } from './createAgentResponsePromptMode.js';
|
|
13
14
|
import type { CreateAgentResponseSandboxOptions } from './createAgentResponseSandboxOptions.js';
|
|
14
15
|
import type { CreateAgentResponseStatus } from './createAgentResponseStatus.js';
|
|
15
16
|
import type { CreateAgentResponseTurnState } from './createAgentResponseTurnState.js';
|
|
@@ -34,6 +35,7 @@ export interface CreateAgentResponse {
|
|
|
34
35
|
blueprintId?: string | null;
|
|
35
36
|
blueprintName?: string | null;
|
|
36
37
|
sandboxOptions?: CreateAgentResponseSandboxOptions;
|
|
38
|
+
promptMode?: CreateAgentResponsePromptMode;
|
|
37
39
|
createdAt: number;
|
|
38
40
|
lastActiveAt?: number | null;
|
|
39
41
|
archived: boolean;
|
|
@@ -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 CreateAgentResponsePromptMode = typeof CreateAgentResponsePromptMode[keyof typeof CreateAgentResponsePromptMode] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const CreateAgentResponsePromptMode = {
|
|
12
|
+
implement: 'implement',
|
|
13
|
+
plan: 'plan',
|
|
14
|
+
review: 'review',
|
|
15
|
+
} as const;
|
|
@@ -0,0 +1,11 @@
|
|
|
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 { GetIdpConfig200Config } from './getIdpConfig200Config.js';
|
|
8
|
+
|
|
9
|
+
export type GetIdpConfig200 = {
|
|
10
|
+
config: GetIdpConfig200Config;
|
|
11
|
+
};
|
|
@@ -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 { GetIdpConfig200ConfigGroupMappingsItem } from './getIdpConfig200ConfigGroupMappingsItem.js';
|
|
8
|
+
|
|
9
|
+
export type GetIdpConfig200Config = {
|
|
10
|
+
id: string;
|
|
11
|
+
organizationId: string;
|
|
12
|
+
displayName: string | null;
|
|
13
|
+
issuer: string;
|
|
14
|
+
groupMappings: GetIdpConfig200ConfigGroupMappingsItem[];
|
|
15
|
+
oktaOrgUrl: string | null;
|
|
16
|
+
oktaSyncEnabled: boolean;
|
|
17
|
+
scimTokenSet: boolean;
|
|
18
|
+
lastSyncedAt: number | null;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
updatedAt: number;
|
|
21
|
+
} | 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 GetIdpConfig200ConfigGroupMappingsItem = {
|
|
9
|
+
/** @minLength 1 */
|
|
10
|
+
group: string;
|
|
11
|
+
/** @minLength 1 */
|
|
12
|
+
roleId?: string;
|
|
13
|
+
/** @minLength 1 */
|
|
14
|
+
teamId?: string;
|
|
15
|
+
};
|
|
@@ -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 { UpsertIdpConfig200GroupMappingsItem } from './upsertIdpConfig200GroupMappingsItem.js';
|
|
8
|
+
|
|
9
|
+
export type UpsertIdpConfig200 = {
|
|
10
|
+
id: string;
|
|
11
|
+
organizationId: string;
|
|
12
|
+
displayName: string | null;
|
|
13
|
+
issuer: string;
|
|
14
|
+
groupMappings: UpsertIdpConfig200GroupMappingsItem[];
|
|
15
|
+
oktaOrgUrl: string | null;
|
|
16
|
+
oktaSyncEnabled: boolean;
|
|
17
|
+
scimTokenSet: boolean;
|
|
18
|
+
lastSyncedAt: number | null;
|
|
19
|
+
createdAt: number;
|
|
20
|
+
updatedAt: number;
|
|
21
|
+
};
|
|
@@ -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 UpsertIdpConfig200GroupMappingsItem = {
|
|
9
|
+
/** @minLength 1 */
|
|
10
|
+
group: string;
|
|
11
|
+
/** @minLength 1 */
|
|
12
|
+
roleId?: string;
|
|
13
|
+
/** @minLength 1 */
|
|
14
|
+
teamId?: string;
|
|
15
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
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 { UpsertIdpConfigBodyGroupMappingsItem } from './upsertIdpConfigBodyGroupMappingsItem.js';
|
|
8
|
+
|
|
9
|
+
export type UpsertIdpConfigBody = {
|
|
10
|
+
displayName?: string | null;
|
|
11
|
+
issuer: string;
|
|
12
|
+
/** @maxItems 200 */
|
|
13
|
+
groupMappings?: UpsertIdpConfigBodyGroupMappingsItem[];
|
|
14
|
+
oktaOrgUrl?: string | null;
|
|
15
|
+
oktaSyncEnabled?: boolean;
|
|
16
|
+
};
|
|
@@ -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 UpsertIdpConfigBodyGroupMappingsItem = {
|
|
9
|
+
/** @minLength 1 */
|
|
10
|
+
group: string;
|
|
11
|
+
/** @minLength 1 */
|
|
12
|
+
roleId?: string;
|
|
13
|
+
/** @minLength 1 */
|
|
14
|
+
teamId?: string;
|
|
15
|
+
};
|