@runloop/reflex-client 0.9.0 → 0.11.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 +15 -1
- package/dist/generated/agents.d.ts.map +1 -1
- package/dist/generated/agents.js +21 -0
- package/dist/generated/agents.js.map +1 -1
- package/dist/generated/model/agent.d.ts +7 -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/agentTurnState.d.ts +12 -0
- package/dist/generated/model/agentTurnState.d.ts.map +1 -0
- package/dist/generated/model/agentTurnState.js +11 -0
- package/dist/generated/model/agentTurnState.js.map +1 -0
- package/dist/generated/model/createAgentResponse.d.ts +7 -0
- package/dist/generated/model/createAgentResponse.d.ts.map +1 -1
- package/dist/generated/model/createAgentResponseTurnState.d.ts +12 -0
- package/dist/generated/model/createAgentResponseTurnState.d.ts.map +1 -0
- package/dist/generated/model/createAgentResponseTurnState.js +11 -0
- package/dist/generated/model/createAgentResponseTurnState.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/organization.d.ts +2 -0
- package/dist/generated/model/organization.d.ts.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/updateOrganizationBody.d.ts +2 -0
- package/dist/generated/model/updateOrganizationBody.d.ts.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 +26 -1
- package/dist/react/agents.d.ts.map +1 -1
- package/dist/react/agents.js +29 -1
- package/dist/react/agents.js.map +1 -1
- package/dist/react/model/agent.d.ts +7 -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/agentTurnState.d.ts +12 -0
- package/dist/react/model/agentTurnState.d.ts.map +1 -0
- package/dist/react/model/agentTurnState.js +11 -0
- package/dist/react/model/agentTurnState.js.map +1 -0
- package/dist/react/model/createAgentResponse.d.ts +7 -0
- package/dist/react/model/createAgentResponse.d.ts.map +1 -1
- package/dist/react/model/createAgentResponseTurnState.d.ts +12 -0
- package/dist/react/model/createAgentResponseTurnState.d.ts.map +1 -0
- package/dist/react/model/createAgentResponseTurnState.js +11 -0
- package/dist/react/model/createAgentResponseTurnState.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/organization.d.ts +2 -0
- package/dist/react/model/organization.d.ts.map +1 -1
- 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/updateOrganizationBody.d.ts +2 -0
- package/dist/react/model/updateOrganizationBody.d.ts.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 +49 -0
- package/src/generated/model/agent.ts +7 -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/agentTurnState.ts +14 -0
- package/src/generated/model/createAgentResponse.ts +7 -0
- package/src/generated/model/createAgentResponseTurnState.ts +14 -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/organization.ts +2 -0
- package/src/generated/model/rotateScimToken200.ts +10 -0
- package/src/generated/model/updateOrganizationBody.ts +2 -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 +86 -0
- package/src/react/model/agent.ts +7 -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/agentTurnState.ts +14 -0
- package/src/react/model/createAgentResponse.ts +7 -0
- package/src/react/model/createAgentResponseTurnState.ts +14 -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/organization.ts +2 -0
- package/src/react/model/rotateScimToken200.ts +10 -0
- package/src/react/model/updateOrganizationBody.ts +2 -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';
|
|
@@ -545,6 +553,84 @@ export const useArchiveAgent = <TError = unknown,
|
|
|
545
553
|
return useMutation(getArchiveAgentMutationOptions(options));
|
|
546
554
|
}
|
|
547
555
|
/**
|
|
556
|
+
* 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.
|
|
557
|
+
* @summary Read the delivery status of a command sent to the agent.
|
|
558
|
+
*/
|
|
559
|
+
export const getAgentCommandStatus = (
|
|
560
|
+
id: string,
|
|
561
|
+
commandId: string,
|
|
562
|
+
params?: GetAgentCommandStatusParams,
|
|
563
|
+
options?: SecondParameter<typeof apiFetch>,signal?: AbortSignal
|
|
564
|
+
) => {
|
|
565
|
+
|
|
566
|
+
|
|
567
|
+
return apiFetch<AgentCommandStatusResponse>(
|
|
568
|
+
{url: `/agents/${encodeURIComponent(String(id))}/commands/${encodeURIComponent(String(commandId))}`, method: 'GET',
|
|
569
|
+
params, signal
|
|
570
|
+
},
|
|
571
|
+
options);
|
|
572
|
+
}
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
export const getGetAgentCommandStatusQueryKey = (id: string,
|
|
578
|
+
commandId: string,
|
|
579
|
+
params?: GetAgentCommandStatusParams,) => {
|
|
580
|
+
return [
|
|
581
|
+
`/agents/${id}/commands/${commandId}`, ...(params ? [params] : [])
|
|
582
|
+
] as const;
|
|
583
|
+
}
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
export const getGetAgentCommandStatusQueryOptions = <TData = Awaited<ReturnType<typeof getAgentCommandStatus>>, TError = unknown>(id: string,
|
|
587
|
+
commandId: string,
|
|
588
|
+
params?: GetAgentCommandStatusParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
|
|
589
|
+
) => {
|
|
590
|
+
|
|
591
|
+
const {query: queryOptions, request: requestOptions} = options ?? {};
|
|
592
|
+
|
|
593
|
+
const queryKey = queryOptions?.queryKey ?? getGetAgentCommandStatusQueryKey(id,commandId,params);
|
|
594
|
+
|
|
595
|
+
|
|
596
|
+
|
|
597
|
+
const queryFn: QueryFunction<Awaited<ReturnType<typeof getAgentCommandStatus>>> = ({ signal }) => getAgentCommandStatus(id,commandId,params, requestOptions, signal);
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
601
|
+
|
|
602
|
+
|
|
603
|
+
return { queryKey, queryFn, enabled: id !== null && id !== undefined && commandId !== null && commandId !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData> & { queryKey: QueryKey }
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export type GetAgentCommandStatusQueryResult = NonNullable<Awaited<ReturnType<typeof getAgentCommandStatus>>>
|
|
607
|
+
export type GetAgentCommandStatusQueryError = unknown
|
|
608
|
+
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* @summary Read the delivery status of a command sent to the agent.
|
|
612
|
+
*/
|
|
613
|
+
|
|
614
|
+
export function useGetAgentCommandStatus<TData = Awaited<ReturnType<typeof getAgentCommandStatus>>, TError = unknown>(
|
|
615
|
+
id: string,
|
|
616
|
+
commandId: string,
|
|
617
|
+
params?: GetAgentCommandStatusParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getAgentCommandStatus>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
|
|
618
|
+
|
|
619
|
+
): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
|
|
620
|
+
|
|
621
|
+
const queryOptions = getGetAgentCommandStatusQueryOptions(id,commandId,params,options)
|
|
622
|
+
|
|
623
|
+
const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
|
|
624
|
+
|
|
625
|
+
return withQueryKey(query, queryOptions.queryKey);
|
|
626
|
+
}
|
|
627
|
+
|
|
628
|
+
|
|
629
|
+
|
|
630
|
+
|
|
631
|
+
|
|
632
|
+
|
|
633
|
+
/**
|
|
548
634
|
* @summary Mark the agent's run as completed without shutting down its devbox.
|
|
549
635
|
*/
|
|
550
636
|
export const completeAgent = (
|
package/src/react/model/agent.ts
CHANGED
|
@@ -11,6 +11,7 @@ import type { AgentEnvVars } from './agentEnvVars.js';
|
|
|
11
11
|
import type { AgentMark } from './agentMark.js';
|
|
12
12
|
import type { AgentSandboxOptions } from './agentSandboxOptions.js';
|
|
13
13
|
import type { AgentStatus } from './agentStatus.js';
|
|
14
|
+
import type { AgentTurnState } from './agentTurnState.js';
|
|
14
15
|
import type { AgentViewerAccess } from './agentViewerAccess.js';
|
|
15
16
|
|
|
16
17
|
export interface Agent {
|
|
@@ -18,6 +19,12 @@ export interface Agent {
|
|
|
18
19
|
streamId: string;
|
|
19
20
|
agentType: string;
|
|
20
21
|
status: AgentStatus;
|
|
22
|
+
turnState: AgentTurnState;
|
|
23
|
+
/**
|
|
24
|
+
* @minimum 0
|
|
25
|
+
* @maximum 9007199254740991
|
|
26
|
+
*/
|
|
27
|
+
turnStateVersion: number;
|
|
21
28
|
devboxId: string | null;
|
|
22
29
|
tunnelKey?: string | null;
|
|
23
30
|
name: string;
|
|
@@ -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,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 AgentTurnState = typeof AgentTurnState[keyof typeof AgentTurnState] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const AgentTurnState = {
|
|
12
|
+
working: 'working',
|
|
13
|
+
idle: 'idle',
|
|
14
|
+
} as const;
|
|
@@ -12,12 +12,19 @@ import type { CreateAgentResponseEnvVars } from './createAgentResponseEnvVars.js
|
|
|
12
12
|
import type { CreateAgentResponseMark } from './createAgentResponseMark.js';
|
|
13
13
|
import type { CreateAgentResponseSandboxOptions } from './createAgentResponseSandboxOptions.js';
|
|
14
14
|
import type { CreateAgentResponseStatus } from './createAgentResponseStatus.js';
|
|
15
|
+
import type { CreateAgentResponseTurnState } from './createAgentResponseTurnState.js';
|
|
15
16
|
|
|
16
17
|
export interface CreateAgentResponse {
|
|
17
18
|
id: string;
|
|
18
19
|
streamId: string;
|
|
19
20
|
agentType: string;
|
|
20
21
|
status: CreateAgentResponseStatus;
|
|
22
|
+
turnState: CreateAgentResponseTurnState;
|
|
23
|
+
/**
|
|
24
|
+
* @minimum 0
|
|
25
|
+
* @maximum 9007199254740991
|
|
26
|
+
*/
|
|
27
|
+
turnStateVersion: number;
|
|
21
28
|
devboxId: string | null;
|
|
22
29
|
tunnelKey?: string | null;
|
|
23
30
|
name: string;
|
|
@@ -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 CreateAgentResponseTurnState = typeof CreateAgentResponseTurnState[keyof typeof CreateAgentResponseTurnState] | null;
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
export const CreateAgentResponseTurnState = {
|
|
12
|
+
working: 'working',
|
|
13
|
+
idle: 'idle',
|
|
14
|
+
} 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
|
+
};
|