@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.
Files changed (190) hide show
  1. package/dist/generated/agents.d.ts +15 -1
  2. package/dist/generated/agents.d.ts.map +1 -1
  3. package/dist/generated/agents.js +21 -0
  4. package/dist/generated/agents.js.map +1 -1
  5. package/dist/generated/model/agent.d.ts +7 -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/agentTurnState.d.ts +12 -0
  20. package/dist/generated/model/agentTurnState.d.ts.map +1 -0
  21. package/dist/generated/model/agentTurnState.js +11 -0
  22. package/dist/generated/model/agentTurnState.js.map +1 -0
  23. package/dist/generated/model/createAgentResponse.d.ts +7 -0
  24. package/dist/generated/model/createAgentResponse.d.ts.map +1 -1
  25. package/dist/generated/model/createAgentResponseTurnState.d.ts +12 -0
  26. package/dist/generated/model/createAgentResponseTurnState.d.ts.map +1 -0
  27. package/dist/generated/model/createAgentResponseTurnState.js +11 -0
  28. package/dist/generated/model/createAgentResponseTurnState.js.map +1 -0
  29. package/dist/generated/model/getAgentCommandStatusParams.d.ts +14 -0
  30. package/dist/generated/model/getAgentCommandStatusParams.d.ts.map +1 -0
  31. package/dist/generated/model/getAgentCommandStatusParams.js +8 -0
  32. package/dist/generated/model/getAgentCommandStatusParams.js.map +1 -0
  33. package/dist/generated/model/getIdpConfig200.d.ts +11 -0
  34. package/dist/generated/model/getIdpConfig200.d.ts.map +1 -0
  35. package/dist/generated/model/getIdpConfig200.js +2 -0
  36. package/dist/generated/model/getIdpConfig200.js.map +1 -0
  37. package/dist/generated/model/getIdpConfig200Config.d.ts +21 -0
  38. package/dist/generated/model/getIdpConfig200Config.d.ts.map +1 -0
  39. package/dist/generated/model/getIdpConfig200Config.js +2 -0
  40. package/dist/generated/model/getIdpConfig200Config.js.map +1 -0
  41. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
  42. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
  43. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
  44. package/dist/generated/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
  45. package/dist/generated/model/index.d.ts +14 -0
  46. package/dist/generated/model/index.d.ts.map +1 -1
  47. package/dist/generated/model/index.js +14 -0
  48. package/dist/generated/model/index.js.map +1 -1
  49. package/dist/generated/model/organization.d.ts +2 -0
  50. package/dist/generated/model/organization.d.ts.map +1 -1
  51. package/dist/generated/model/rotateScimToken200.d.ts +10 -0
  52. package/dist/generated/model/rotateScimToken200.d.ts.map +1 -0
  53. package/dist/generated/model/rotateScimToken200.js +8 -0
  54. package/dist/generated/model/rotateScimToken200.js.map +1 -0
  55. package/dist/generated/model/updateOrganizationBody.d.ts +2 -0
  56. package/dist/generated/model/updateOrganizationBody.d.ts.map +1 -1
  57. package/dist/generated/model/upsertIdpConfig200.d.ts +21 -0
  58. package/dist/generated/model/upsertIdpConfig200.d.ts.map +1 -0
  59. package/dist/generated/model/upsertIdpConfig200.js +2 -0
  60. package/dist/generated/model/upsertIdpConfig200.js.map +1 -0
  61. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
  62. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
  63. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
  64. package/dist/generated/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
  65. package/dist/generated/model/upsertIdpConfigBody.d.ts +16 -0
  66. package/dist/generated/model/upsertIdpConfigBody.d.ts.map +1 -0
  67. package/dist/generated/model/upsertIdpConfigBody.js +2 -0
  68. package/dist/generated/model/upsertIdpConfigBody.js.map +1 -0
  69. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
  70. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
  71. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
  72. package/dist/generated/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
  73. package/dist/generated/organizations.d.ts +40 -1
  74. package/dist/generated/organizations.d.ts.map +1 -1
  75. package/dist/generated/organizations.js +41 -0
  76. package/dist/generated/organizations.js.map +1 -1
  77. package/dist/react/agents.d.ts +26 -1
  78. package/dist/react/agents.d.ts.map +1 -1
  79. package/dist/react/agents.js +29 -1
  80. package/dist/react/agents.js.map +1 -1
  81. package/dist/react/model/agent.d.ts +7 -0
  82. package/dist/react/model/agent.d.ts.map +1 -1
  83. package/dist/react/model/agentCommandFailureResponse.d.ts +12 -0
  84. package/dist/react/model/agentCommandFailureResponse.d.ts.map +1 -0
  85. package/dist/react/model/agentCommandFailureResponse.js +8 -0
  86. package/dist/react/model/agentCommandFailureResponse.js.map +1 -0
  87. package/dist/react/model/agentCommandStatusResponse.d.ts +14 -0
  88. package/dist/react/model/agentCommandStatusResponse.d.ts.map +1 -0
  89. package/dist/react/model/agentCommandStatusResponse.js +2 -0
  90. package/dist/react/model/agentCommandStatusResponse.js.map +1 -0
  91. package/dist/react/model/agentCommandStatusResponseStatus.d.ts +14 -0
  92. package/dist/react/model/agentCommandStatusResponseStatus.d.ts.map +1 -0
  93. package/dist/react/model/agentCommandStatusResponseStatus.js +13 -0
  94. package/dist/react/model/agentCommandStatusResponseStatus.js.map +1 -0
  95. package/dist/react/model/agentTurnState.d.ts +12 -0
  96. package/dist/react/model/agentTurnState.d.ts.map +1 -0
  97. package/dist/react/model/agentTurnState.js +11 -0
  98. package/dist/react/model/agentTurnState.js.map +1 -0
  99. package/dist/react/model/createAgentResponse.d.ts +7 -0
  100. package/dist/react/model/createAgentResponse.d.ts.map +1 -1
  101. package/dist/react/model/createAgentResponseTurnState.d.ts +12 -0
  102. package/dist/react/model/createAgentResponseTurnState.d.ts.map +1 -0
  103. package/dist/react/model/createAgentResponseTurnState.js +11 -0
  104. package/dist/react/model/createAgentResponseTurnState.js.map +1 -0
  105. package/dist/react/model/getAgentCommandStatusParams.d.ts +14 -0
  106. package/dist/react/model/getAgentCommandStatusParams.d.ts.map +1 -0
  107. package/dist/react/model/getAgentCommandStatusParams.js +8 -0
  108. package/dist/react/model/getAgentCommandStatusParams.js.map +1 -0
  109. package/dist/react/model/getIdpConfig200.d.ts +11 -0
  110. package/dist/react/model/getIdpConfig200.d.ts.map +1 -0
  111. package/dist/react/model/getIdpConfig200.js +2 -0
  112. package/dist/react/model/getIdpConfig200.js.map +1 -0
  113. package/dist/react/model/getIdpConfig200Config.d.ts +21 -0
  114. package/dist/react/model/getIdpConfig200Config.d.ts.map +1 -0
  115. package/dist/react/model/getIdpConfig200Config.js +2 -0
  116. package/dist/react/model/getIdpConfig200Config.js.map +1 -0
  117. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts +15 -0
  118. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.d.ts.map +1 -0
  119. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js +8 -0
  120. package/dist/react/model/getIdpConfig200ConfigGroupMappingsItem.js.map +1 -0
  121. package/dist/react/model/organization.d.ts +2 -0
  122. package/dist/react/model/organization.d.ts.map +1 -1
  123. package/dist/react/model/rotateScimToken200.d.ts +10 -0
  124. package/dist/react/model/rotateScimToken200.d.ts.map +1 -0
  125. package/dist/react/model/rotateScimToken200.js +8 -0
  126. package/dist/react/model/rotateScimToken200.js.map +1 -0
  127. package/dist/react/model/updateOrganizationBody.d.ts +2 -0
  128. package/dist/react/model/updateOrganizationBody.d.ts.map +1 -1
  129. package/dist/react/model/upsertIdpConfig200.d.ts +21 -0
  130. package/dist/react/model/upsertIdpConfig200.d.ts.map +1 -0
  131. package/dist/react/model/upsertIdpConfig200.js +2 -0
  132. package/dist/react/model/upsertIdpConfig200.js.map +1 -0
  133. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts +15 -0
  134. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.d.ts.map +1 -0
  135. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js +8 -0
  136. package/dist/react/model/upsertIdpConfig200GroupMappingsItem.js.map +1 -0
  137. package/dist/react/model/upsertIdpConfigBody.d.ts +16 -0
  138. package/dist/react/model/upsertIdpConfigBody.d.ts.map +1 -0
  139. package/dist/react/model/upsertIdpConfigBody.js +2 -0
  140. package/dist/react/model/upsertIdpConfigBody.js.map +1 -0
  141. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts +15 -0
  142. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.d.ts.map +1 -0
  143. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js +8 -0
  144. package/dist/react/model/upsertIdpConfigBodyGroupMappingsItem.js.map +1 -0
  145. package/dist/react/organizations.d.ts +81 -0
  146. package/dist/react/organizations.d.ts.map +1 -1
  147. package/dist/react/organizations.js +80 -0
  148. package/dist/react/organizations.js.map +1 -1
  149. package/package.json +1 -1
  150. package/src/generated/agents.ts +49 -0
  151. package/src/generated/model/agent.ts +7 -0
  152. package/src/generated/model/agentCommandFailureResponse.ts +12 -0
  153. package/src/generated/model/agentCommandStatusResponse.ts +14 -0
  154. package/src/generated/model/agentCommandStatusResponseStatus.ts +16 -0
  155. package/src/generated/model/agentTurnState.ts +14 -0
  156. package/src/generated/model/createAgentResponse.ts +7 -0
  157. package/src/generated/model/createAgentResponseTurnState.ts +14 -0
  158. package/src/generated/model/getAgentCommandStatusParams.ts +14 -0
  159. package/src/generated/model/getIdpConfig200.ts +11 -0
  160. package/src/generated/model/getIdpConfig200Config.ts +21 -0
  161. package/src/generated/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
  162. package/src/generated/model/index.ts +14 -0
  163. package/src/generated/model/organization.ts +2 -0
  164. package/src/generated/model/rotateScimToken200.ts +10 -0
  165. package/src/generated/model/updateOrganizationBody.ts +2 -0
  166. package/src/generated/model/upsertIdpConfig200.ts +21 -0
  167. package/src/generated/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
  168. package/src/generated/model/upsertIdpConfigBody.ts +16 -0
  169. package/src/generated/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
  170. package/src/generated/organizations.ts +110 -0
  171. package/src/react/agents.ts +86 -0
  172. package/src/react/model/agent.ts +7 -0
  173. package/src/react/model/agentCommandFailureResponse.ts +12 -0
  174. package/src/react/model/agentCommandStatusResponse.ts +14 -0
  175. package/src/react/model/agentCommandStatusResponseStatus.ts +16 -0
  176. package/src/react/model/agentTurnState.ts +14 -0
  177. package/src/react/model/createAgentResponse.ts +7 -0
  178. package/src/react/model/createAgentResponseTurnState.ts +14 -0
  179. package/src/react/model/getAgentCommandStatusParams.ts +14 -0
  180. package/src/react/model/getIdpConfig200.ts +11 -0
  181. package/src/react/model/getIdpConfig200Config.ts +21 -0
  182. package/src/react/model/getIdpConfig200ConfigGroupMappingsItem.ts +15 -0
  183. package/src/react/model/organization.ts +2 -0
  184. package/src/react/model/rotateScimToken200.ts +10 -0
  185. package/src/react/model/updateOrganizationBody.ts +2 -0
  186. package/src/react/model/upsertIdpConfig200.ts +21 -0
  187. package/src/react/model/upsertIdpConfig200GroupMappingsItem.ts +15 -0
  188. package/src/react/model/upsertIdpConfigBody.ts +16 -0
  189. package/src/react/model/upsertIdpConfigBodyGroupMappingsItem.ts +15 -0
  190. package/src/react/organizations.ts +209 -0
@@ -27,4 +27,6 @@ export type UpdateOrganizationBody = {
27
27
  /** @maxItems 20 */
28
28
  customSandboxSizes?: UpdateOrganizationBodyCustomSandboxSizesItem[];
29
29
  sandboxArtifactMirrors?: boolean;
30
+ allowSessionShareView?: boolean;
31
+ allowSessionShareEdit?: boolean;
30
32
  };
@@ -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';
@@ -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 = (
@@ -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,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,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,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
+ };
@@ -30,4 +30,6 @@ export interface Organization {
30
30
  defaultSandboxSize?: string | null;
31
31
  customSandboxSizes?: OrganizationCustomSandboxSizesItem[];
32
32
  sandboxArtifactMirrors?: boolean;
33
+ allowSessionShareView?: boolean;
34
+ allowSessionShareEdit?: boolean;
33
35
  }
@@ -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
+ };
@@ -27,4 +27,6 @@ export type UpdateOrganizationBody = {
27
27
  /** @maxItems 20 */
28
28
  customSandboxSizes?: UpdateOrganizationBodyCustomSandboxSizesItem[];
29
29
  sandboxArtifactMirrors?: boolean;
30
+ allowSessionShareView?: boolean;
31
+ allowSessionShareEdit?: boolean;
30
32
  };
@@ -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
+ };