@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.
Files changed (198) hide show
  1. package/dist/generated/agents.d.ts +17 -2
  2. package/dist/generated/agents.d.ts.map +1 -1
  3. package/dist/generated/agents.js +23 -1
  4. package/dist/generated/agents.js.map +1 -1
  5. package/dist/generated/model/agent.d.ts +2 -0
  6. package/dist/generated/model/agent.d.ts.map +1 -1
  7. package/dist/generated/model/agentCommandFailureResponse.d.ts +12 -0
  8. package/dist/generated/model/agentCommandFailureResponse.d.ts.map +1 -0
  9. package/dist/generated/model/agentCommandFailureResponse.js +8 -0
  10. package/dist/generated/model/agentCommandFailureResponse.js.map +1 -0
  11. package/dist/generated/model/agentCommandStatusResponse.d.ts +14 -0
  12. package/dist/generated/model/agentCommandStatusResponse.d.ts.map +1 -0
  13. package/dist/generated/model/agentCommandStatusResponse.js +2 -0
  14. package/dist/generated/model/agentCommandStatusResponse.js.map +1 -0
  15. package/dist/generated/model/agentCommandStatusResponseStatus.d.ts +14 -0
  16. package/dist/generated/model/agentCommandStatusResponseStatus.d.ts.map +1 -0
  17. package/dist/generated/model/agentCommandStatusResponseStatus.js +13 -0
  18. package/dist/generated/model/agentCommandStatusResponseStatus.js.map +1 -0
  19. package/dist/generated/model/agentPromptMode.d.ts +13 -0
  20. package/dist/generated/model/agentPromptMode.d.ts.map +1 -0
  21. package/dist/generated/model/agentPromptMode.js +12 -0
  22. package/dist/generated/model/agentPromptMode.js.map +1 -0
  23. package/dist/generated/model/createAgentBodyPromptMode.d.ts +1 -0
  24. package/dist/generated/model/createAgentBodyPromptMode.d.ts.map +1 -1
  25. package/dist/generated/model/createAgentBodyPromptMode.js +1 -0
  26. package/dist/generated/model/createAgentBodyPromptMode.js.map +1 -1
  27. package/dist/generated/model/createAgentResponse.d.ts +2 -0
  28. package/dist/generated/model/createAgentResponse.d.ts.map +1 -1
  29. package/dist/generated/model/createAgentResponsePromptMode.d.ts +13 -0
  30. package/dist/generated/model/createAgentResponsePromptMode.d.ts.map +1 -0
  31. package/dist/generated/model/createAgentResponsePromptMode.js +12 -0
  32. package/dist/generated/model/createAgentResponsePromptMode.js.map +1 -0
  33. package/dist/generated/model/getAgentCommandStatusParams.d.ts +14 -0
  34. package/dist/generated/model/getAgentCommandStatusParams.d.ts.map +1 -0
  35. package/dist/generated/model/getAgentCommandStatusParams.js +8 -0
  36. package/dist/generated/model/getAgentCommandStatusParams.js.map +1 -0
  37. package/dist/generated/model/getIdpConfig200.d.ts +11 -0
  38. package/dist/generated/model/getIdpConfig200.d.ts.map +1 -0
  39. package/dist/generated/model/getIdpConfig200.js +2 -0
  40. package/dist/generated/model/getIdpConfig200.js.map +1 -0
  41. package/dist/generated/model/getIdpConfig200Config.d.ts +21 -0
  42. package/dist/generated/model/getIdpConfig200Config.d.ts.map +1 -0
  43. package/dist/generated/model/getIdpConfig200Config.js +2 -0
  44. package/dist/generated/model/getIdpConfig200Config.js.map +1 -0
  45. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
  46. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
  47. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
  48. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
  49. package/dist/generated/model/index.d.ts +14 -0
  50. package/dist/generated/model/index.d.ts.map +1 -1
  51. package/dist/generated/model/index.js +14 -0
  52. package/dist/generated/model/index.js.map +1 -1
  53. package/dist/generated/model/rotateScimToken200.d.ts +10 -0
  54. package/dist/generated/model/rotateScimToken200.d.ts.map +1 -0
  55. package/dist/generated/model/rotateScimToken200.js +8 -0
  56. package/dist/generated/model/rotateScimToken200.js.map +1 -0
  57. package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.d.ts +1 -0
  58. package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.d.ts.map +1 -1
  59. package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.js +1 -0
  60. package/dist/generated/model/saveAgentDraftBodyPayloadPromptMode.js.map +1 -1
  61. package/dist/generated/model/upsertIdpConfig200.d.ts +21 -0
  62. package/dist/generated/model/upsertIdpConfig200.d.ts.map +1 -0
  63. package/dist/generated/model/upsertIdpConfig200.js +2 -0
  64. package/dist/generated/model/upsertIdpConfig200.js.map +1 -0
  65. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
  66. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
  67. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
  68. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
  69. package/dist/generated/model/upsertIdpConfigBody.d.ts +16 -0
  70. package/dist/generated/model/upsertIdpConfigBody.d.ts.map +1 -0
  71. package/dist/generated/model/upsertIdpConfigBody.js +2 -0
  72. package/dist/generated/model/upsertIdpConfigBody.js.map +1 -0
  73. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
  74. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
  75. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
  76. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
  77. package/dist/generated/organizations.d.ts +40 -1
  78. package/dist/generated/organizations.d.ts.map +1 -1
  79. package/dist/generated/organizations.js +41 -0
  80. package/dist/generated/organizations.js.map +1 -1
  81. package/dist/react/agents.d.ts +29 -3
  82. package/dist/react/agents.d.ts.map +1 -1
  83. package/dist/react/agents.js +32 -3
  84. package/dist/react/agents.js.map +1 -1
  85. package/dist/react/model/agent.d.ts +2 -0
  86. package/dist/react/model/agent.d.ts.map +1 -1
  87. package/dist/react/model/agentCommandFailureResponse.d.ts +12 -0
  88. package/dist/react/model/agentCommandFailureResponse.d.ts.map +1 -0
  89. package/dist/react/model/agentCommandFailureResponse.js +8 -0
  90. package/dist/react/model/agentCommandFailureResponse.js.map +1 -0
  91. package/dist/react/model/agentCommandStatusResponse.d.ts +14 -0
  92. package/dist/react/model/agentCommandStatusResponse.d.ts.map +1 -0
  93. package/dist/react/model/agentCommandStatusResponse.js +2 -0
  94. package/dist/react/model/agentCommandStatusResponse.js.map +1 -0
  95. package/dist/react/model/agentCommandStatusResponseStatus.d.ts +14 -0
  96. package/dist/react/model/agentCommandStatusResponseStatus.d.ts.map +1 -0
  97. package/dist/react/model/agentCommandStatusResponseStatus.js +13 -0
  98. package/dist/react/model/agentCommandStatusResponseStatus.js.map +1 -0
  99. package/dist/react/model/agentPromptMode.d.ts +13 -0
  100. package/dist/react/model/agentPromptMode.d.ts.map +1 -0
  101. package/dist/react/model/agentPromptMode.js +12 -0
  102. package/dist/react/model/agentPromptMode.js.map +1 -0
  103. package/dist/react/model/createAgentBodyPromptMode.d.ts +1 -0
  104. package/dist/react/model/createAgentBodyPromptMode.d.ts.map +1 -1
  105. package/dist/react/model/createAgentBodyPromptMode.js +1 -0
  106. package/dist/react/model/createAgentBodyPromptMode.js.map +1 -1
  107. package/dist/react/model/createAgentResponse.d.ts +2 -0
  108. package/dist/react/model/createAgentResponse.d.ts.map +1 -1
  109. package/dist/react/model/createAgentResponsePromptMode.d.ts +13 -0
  110. package/dist/react/model/createAgentResponsePromptMode.d.ts.map +1 -0
  111. package/dist/react/model/createAgentResponsePromptMode.js +12 -0
  112. package/dist/react/model/createAgentResponsePromptMode.js.map +1 -0
  113. package/dist/react/model/getAgentCommandStatusParams.d.ts +14 -0
  114. package/dist/react/model/getAgentCommandStatusParams.d.ts.map +1 -0
  115. package/dist/react/model/getAgentCommandStatusParams.js +8 -0
  116. package/dist/react/model/getAgentCommandStatusParams.js.map +1 -0
  117. package/dist/react/model/getIdpConfig200.d.ts +11 -0
  118. package/dist/react/model/getIdpConfig200.d.ts.map +1 -0
  119. package/dist/react/model/getIdpConfig200.js +2 -0
  120. package/dist/react/model/getIdpConfig200.js.map +1 -0
  121. package/dist/react/model/getIdpConfig200Config.d.ts +21 -0
  122. package/dist/react/model/getIdpConfig200Config.d.ts.map +1 -0
  123. package/dist/react/model/getIdpConfig200Config.js +2 -0
  124. package/dist/react/model/getIdpConfig200Config.js.map +1 -0
  125. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
  126. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
  127. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
  128. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
  129. package/dist/react/model/rotateScimToken200.d.ts +10 -0
  130. package/dist/react/model/rotateScimToken200.d.ts.map +1 -0
  131. package/dist/react/model/rotateScimToken200.js +8 -0
  132. package/dist/react/model/rotateScimToken200.js.map +1 -0
  133. package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.d.ts +1 -0
  134. package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.d.ts.map +1 -1
  135. package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.js +1 -0
  136. package/dist/react/model/saveAgentDraftBodyPayloadPromptMode.js.map +1 -1
  137. package/dist/react/model/upsertIdpConfig200.d.ts +21 -0
  138. package/dist/react/model/upsertIdpConfig200.d.ts.map +1 -0
  139. package/dist/react/model/upsertIdpConfig200.js +2 -0
  140. package/dist/react/model/upsertIdpConfig200.js.map +1 -0
  141. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
  142. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
  143. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
  144. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
  145. package/dist/react/model/upsertIdpConfigBody.d.ts +16 -0
  146. package/dist/react/model/upsertIdpConfigBody.d.ts.map +1 -0
  147. package/dist/react/model/upsertIdpConfigBody.js +2 -0
  148. package/dist/react/model/upsertIdpConfigBody.js.map +1 -0
  149. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
  150. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
  151. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
  152. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
  153. package/dist/react/organizations.d.ts +81 -0
  154. package/dist/react/organizations.d.ts.map +1 -1
  155. package/dist/react/organizations.js +80 -0
  156. package/dist/react/organizations.js.map +1 -1
  157. package/package.json +1 -1
  158. package/src/generated/agents.ts +51 -1
  159. package/src/generated/model/agent.ts +2 -0
  160. package/src/generated/model/agentCommandFailureResponse.ts +12 -0
  161. package/src/generated/model/agentCommandStatusResponse.ts +14 -0
  162. package/src/generated/model/agentCommandStatusResponseStatus.ts +16 -0
  163. package/src/generated/model/agentPromptMode.ts +15 -0
  164. package/src/generated/model/createAgentBodyPromptMode.ts +1 -0
  165. package/src/generated/model/createAgentResponse.ts +2 -0
  166. package/src/generated/model/createAgentResponsePromptMode.ts +15 -0
  167. package/src/generated/model/getAgentCommandStatusParams.ts +14 -0
  168. package/src/generated/model/getIdpConfig200.ts +11 -0
  169. package/src/generated/model/getIdpConfig200Config.ts +21 -0
  170. package/src/generated/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
  171. package/src/generated/model/index.ts +14 -0
  172. package/src/generated/model/rotateScimToken200.ts +10 -0
  173. package/src/generated/model/saveAgentDraftBodyPayloadPromptMode.ts +1 -0
  174. package/src/generated/model/upsertIdpConfig200.ts +21 -0
  175. package/src/generated/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
  176. package/src/generated/model/upsertIdpConfigBody.ts +16 -0
  177. package/src/generated/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
  178. package/src/generated/organizations.ts +110 -0
  179. package/src/react/agents.ts +89 -2
  180. package/src/react/model/agent.ts +2 -0
  181. package/src/react/model/agentCommandFailureResponse.ts +12 -0
  182. package/src/react/model/agentCommandStatusResponse.ts +14 -0
  183. package/src/react/model/agentCommandStatusResponseStatus.ts +16 -0
  184. package/src/react/model/agentPromptMode.ts +15 -0
  185. package/src/react/model/createAgentBodyPromptMode.ts +1 -0
  186. package/src/react/model/createAgentResponse.ts +2 -0
  187. package/src/react/model/createAgentResponsePromptMode.ts +15 -0
  188. package/src/react/model/getAgentCommandStatusParams.ts +14 -0
  189. package/src/react/model/getIdpConfig200.ts +11 -0
  190. package/src/react/model/getIdpConfig200Config.ts +21 -0
  191. package/src/react/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
  192. package/src/react/model/rotateScimToken200.ts +10 -0
  193. package/src/react/model/saveAgentDraftBodyPayloadPromptMode.ts +1 -0
  194. package/src/react/model/upsertIdpConfig200.ts +21 -0
  195. package/src/react/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
  196. package/src/react/model/upsertIdpConfigBody.ts +16 -0
  197. package/src/react/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
  198. package/src/react/organizations.ts +209 -0
@@ -11,4 +11,5 @@ export type SaveAgentDraftBodyPayloadPromptMode = typeof SaveAgentDraftBodyPaylo
11
11
  export const SaveAgentDraftBodyPayloadPromptMode = {
12
12
  implement: 'implement',
13
13
  plan: 'plan',
14
+ review: 'review',
14
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 { 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
@@ -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
- * @summary Force stop the agent and shut down its devbox.
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 Force stop the agent and shut down its devbox.
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 = (
@@ -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,12 @@
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 interface AgentCommandFailureResponse {
9
+ code: string;
10
+ detail?: string;
11
+ statusCode?: number;
12
+ }
@@ -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;
@@ -11,4 +11,5 @@ export type CreateAgentBodyPromptMode = typeof CreateAgentBodyPromptMode[keyof t
11
11
  export const CreateAgentBodyPromptMode = {
12
12
  implement: 'implement',
13
13
  plan: 'plan',
14
+ review: 'review',
14
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,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 GetAgentCommandStatusParams = {
9
+ /**
10
+ * @minimum 0
11
+ * @maximum 25000
12
+ */
13
+ wait?: number;
14
+ };
@@ -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,10 @@
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 RotateScimToken200 = {
9
+ token: string;
10
+ };
@@ -11,4 +11,5 @@ export type SaveAgentDraftBodyPayloadPromptMode = typeof SaveAgentDraftBodyPaylo
11
11
  export const SaveAgentDraftBodyPayloadPromptMode = {
12
12
  implement: 'implement',
13
13
  plan: 'plan',
14
+ review: 'review',
14
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 { 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
+ };