@runloop/reflex-client 0.18.0 → 0.20.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 (160) hide show
  1. package/dist/generated/blueprints.d.ts +14 -1
  2. package/dist/generated/blueprints.d.ts.map +1 -1
  3. package/dist/generated/blueprints.js +20 -0
  4. package/dist/generated/blueprints.js.map +1 -1
  5. package/dist/generated/invites.d.ts +14 -1
  6. package/dist/generated/invites.d.ts.map +1 -1
  7. package/dist/generated/invites.js +13 -0
  8. package/dist/generated/invites.js.map +1 -1
  9. package/dist/generated/model/acceptInviteResponse.d.ts +11 -0
  10. package/dist/generated/model/acceptInviteResponse.d.ts.map +1 -0
  11. package/dist/generated/model/acceptInviteResponse.js +2 -0
  12. package/dist/generated/model/acceptInviteResponse.js.map +1 -0
  13. package/dist/generated/model/acceptInviteResponseJoined.d.ts +12 -0
  14. package/dist/generated/model/acceptInviteResponseJoined.d.ts.map +1 -0
  15. package/dist/generated/model/acceptInviteResponseJoined.js +8 -0
  16. package/dist/generated/model/acceptInviteResponseJoined.js.map +1 -0
  17. package/dist/generated/model/agent.d.ts +1 -0
  18. package/dist/generated/model/agent.d.ts.map +1 -1
  19. package/dist/generated/model/agentPersona.d.ts +2 -0
  20. package/dist/generated/model/agentPersona.d.ts.map +1 -1
  21. package/dist/generated/model/createAgentBody.d.ts +2 -0
  22. package/dist/generated/model/createAgentBody.d.ts.map +1 -1
  23. package/dist/generated/model/createAgentResponse.d.ts +1 -0
  24. package/dist/generated/model/createAgentResponse.d.ts.map +1 -1
  25. package/dist/generated/model/getBlueprintBuildLog200.d.ts +22 -0
  26. package/dist/generated/model/getBlueprintBuildLog200.d.ts.map +1 -0
  27. package/dist/generated/model/getBlueprintBuildLog200.js +2 -0
  28. package/dist/generated/model/getBlueprintBuildLog200.js.map +1 -0
  29. package/dist/generated/model/getBlueprintBuildLog200EntriesItem.d.ts +12 -0
  30. package/dist/generated/model/getBlueprintBuildLog200EntriesItem.d.ts.map +1 -0
  31. package/dist/generated/model/getBlueprintBuildLog200EntriesItem.js +8 -0
  32. package/dist/generated/model/getBlueprintBuildLog200EntriesItem.js.map +1 -0
  33. package/dist/generated/model/getBlueprintBuildLog200Status.d.ts +15 -0
  34. package/dist/generated/model/getBlueprintBuildLog200Status.d.ts.map +1 -0
  35. package/dist/generated/model/getBlueprintBuildLog200Status.js +14 -0
  36. package/dist/generated/model/getBlueprintBuildLog200Status.js.map +1 -0
  37. package/dist/generated/model/getBlueprintBuildLogOrder.d.ts +12 -0
  38. package/dist/generated/model/getBlueprintBuildLogOrder.d.ts.map +1 -0
  39. package/dist/generated/model/getBlueprintBuildLogOrder.js +11 -0
  40. package/dist/generated/model/getBlueprintBuildLogOrder.js.map +1 -0
  41. package/dist/generated/model/getBlueprintBuildLogParams.d.ts +21 -0
  42. package/dist/generated/model/getBlueprintBuildLogParams.d.ts.map +1 -0
  43. package/dist/generated/model/getBlueprintBuildLogParams.js +2 -0
  44. package/dist/generated/model/getBlueprintBuildLogParams.js.map +1 -0
  45. package/dist/generated/model/index.d.ts +8 -0
  46. package/dist/generated/model/index.d.ts.map +1 -1
  47. package/dist/generated/model/index.js +8 -0
  48. package/dist/generated/model/index.js.map +1 -1
  49. package/dist/generated/model/listAgentsParams.d.ts +1 -5
  50. package/dist/generated/model/listAgentsParams.d.ts.map +1 -1
  51. package/dist/generated/model/listMcpTools200ToolsItem.d.ts +1 -0
  52. package/dist/generated/model/listMcpTools200ToolsItem.d.ts.map +1 -1
  53. package/dist/generated/model/organization.d.ts +2 -0
  54. package/dist/generated/model/organization.d.ts.map +1 -1
  55. package/dist/generated/model/organizationSubscriptionTier.d.ts +13 -0
  56. package/dist/generated/model/organizationSubscriptionTier.d.ts.map +1 -0
  57. package/dist/generated/model/organizationSubscriptionTier.js +12 -0
  58. package/dist/generated/model/organizationSubscriptionTier.js.map +1 -0
  59. package/dist/generated/model/saveAgentDraftBodyPayload.d.ts +2 -0
  60. package/dist/generated/model/saveAgentDraftBodyPayload.d.ts.map +1 -1
  61. package/dist/generated/organizations.d.ts +1 -1
  62. package/dist/generated/organizations.js +1 -1
  63. package/dist/react/blueprints.d.ts +25 -1
  64. package/dist/react/blueprints.d.ts.map +1 -1
  65. package/dist/react/blueprints.js +28 -1
  66. package/dist/react/blueprints.js.map +1 -1
  67. package/dist/react/invites.d.ts +27 -1
  68. package/dist/react/invites.d.ts.map +1 -1
  69. package/dist/react/invites.js +27 -1
  70. package/dist/react/invites.js.map +1 -1
  71. package/dist/react/model/acceptInviteResponse.d.ts +11 -0
  72. package/dist/react/model/acceptInviteResponse.d.ts.map +1 -0
  73. package/dist/react/model/acceptInviteResponse.js +2 -0
  74. package/dist/react/model/acceptInviteResponse.js.map +1 -0
  75. package/dist/react/model/acceptInviteResponseJoined.d.ts +12 -0
  76. package/dist/react/model/acceptInviteResponseJoined.d.ts.map +1 -0
  77. package/dist/react/model/acceptInviteResponseJoined.js +8 -0
  78. package/dist/react/model/acceptInviteResponseJoined.js.map +1 -0
  79. package/dist/react/model/agent.d.ts +1 -0
  80. package/dist/react/model/agent.d.ts.map +1 -1
  81. package/dist/react/model/agentPersona.d.ts +2 -0
  82. package/dist/react/model/agentPersona.d.ts.map +1 -1
  83. package/dist/react/model/createAgentBody.d.ts +2 -0
  84. package/dist/react/model/createAgentBody.d.ts.map +1 -1
  85. package/dist/react/model/createAgentResponse.d.ts +1 -0
  86. package/dist/react/model/createAgentResponse.d.ts.map +1 -1
  87. package/dist/react/model/getBlueprintBuildLog200.d.ts +22 -0
  88. package/dist/react/model/getBlueprintBuildLog200.d.ts.map +1 -0
  89. package/dist/react/model/getBlueprintBuildLog200.js +2 -0
  90. package/dist/react/model/getBlueprintBuildLog200.js.map +1 -0
  91. package/dist/react/model/getBlueprintBuildLog200EntriesItem.d.ts +12 -0
  92. package/dist/react/model/getBlueprintBuildLog200EntriesItem.d.ts.map +1 -0
  93. package/dist/react/model/getBlueprintBuildLog200EntriesItem.js +8 -0
  94. package/dist/react/model/getBlueprintBuildLog200EntriesItem.js.map +1 -0
  95. package/dist/react/model/getBlueprintBuildLog200Status.d.ts +15 -0
  96. package/dist/react/model/getBlueprintBuildLog200Status.d.ts.map +1 -0
  97. package/dist/react/model/getBlueprintBuildLog200Status.js +14 -0
  98. package/dist/react/model/getBlueprintBuildLog200Status.js.map +1 -0
  99. package/dist/react/model/getBlueprintBuildLogOrder.d.ts +12 -0
  100. package/dist/react/model/getBlueprintBuildLogOrder.d.ts.map +1 -0
  101. package/dist/react/model/getBlueprintBuildLogOrder.js +11 -0
  102. package/dist/react/model/getBlueprintBuildLogOrder.js.map +1 -0
  103. package/dist/react/model/getBlueprintBuildLogParams.d.ts +21 -0
  104. package/dist/react/model/getBlueprintBuildLogParams.d.ts.map +1 -0
  105. package/dist/react/model/getBlueprintBuildLogParams.js +2 -0
  106. package/dist/react/model/getBlueprintBuildLogParams.js.map +1 -0
  107. package/dist/react/model/listAgentsParams.d.ts +1 -5
  108. package/dist/react/model/listAgentsParams.d.ts.map +1 -1
  109. package/dist/react/model/listMcpTools200ToolsItem.d.ts +1 -0
  110. package/dist/react/model/listMcpTools200ToolsItem.d.ts.map +1 -1
  111. package/dist/react/model/organization.d.ts +2 -0
  112. package/dist/react/model/organization.d.ts.map +1 -1
  113. package/dist/react/model/organizationSubscriptionTier.d.ts +13 -0
  114. package/dist/react/model/organizationSubscriptionTier.d.ts.map +1 -0
  115. package/dist/react/model/organizationSubscriptionTier.js +12 -0
  116. package/dist/react/model/organizationSubscriptionTier.js.map +1 -0
  117. package/dist/react/model/saveAgentDraftBodyPayload.d.ts +2 -0
  118. package/dist/react/model/saveAgentDraftBodyPayload.d.ts.map +1 -1
  119. package/dist/react/organizations.d.ts +1 -1
  120. package/dist/react/organizations.js +1 -1
  121. package/package.json +1 -1
  122. package/src/generated/blueprints.ts +46 -0
  123. package/src/generated/invites.ts +36 -0
  124. package/src/generated/model/acceptInviteResponse.ts +11 -0
  125. package/src/generated/model/acceptInviteResponseJoined.ts +12 -0
  126. package/src/generated/model/agent.ts +1 -0
  127. package/src/generated/model/agentPersona.ts +2 -0
  128. package/src/generated/model/createAgentBody.ts +2 -0
  129. package/src/generated/model/createAgentResponse.ts +1 -0
  130. package/src/generated/model/getBlueprintBuildLog200.ts +22 -0
  131. package/src/generated/model/getBlueprintBuildLog200EntriesItem.ts +12 -0
  132. package/src/generated/model/getBlueprintBuildLog200Status.ts +17 -0
  133. package/src/generated/model/getBlueprintBuildLogOrder.ts +14 -0
  134. package/src/generated/model/getBlueprintBuildLogParams.ts +21 -0
  135. package/src/generated/model/index.ts +8 -0
  136. package/src/generated/model/listAgentsParams.ts +1 -5
  137. package/src/generated/model/listMcpTools200ToolsItem.ts +1 -0
  138. package/src/generated/model/organization.ts +2 -0
  139. package/src/generated/model/organizationSubscriptionTier.ts +15 -0
  140. package/src/generated/model/saveAgentDraftBodyPayload.ts +2 -0
  141. package/src/generated/organizations.ts +1 -1
  142. package/src/react/blueprints.ts +81 -0
  143. package/src/react/invites.ts +65 -0
  144. package/src/react/model/acceptInviteResponse.ts +11 -0
  145. package/src/react/model/acceptInviteResponseJoined.ts +12 -0
  146. package/src/react/model/agent.ts +1 -0
  147. package/src/react/model/agentPersona.ts +2 -0
  148. package/src/react/model/createAgentBody.ts +2 -0
  149. package/src/react/model/createAgentResponse.ts +1 -0
  150. package/src/react/model/getBlueprintBuildLog200.ts +22 -0
  151. package/src/react/model/getBlueprintBuildLog200EntriesItem.ts +12 -0
  152. package/src/react/model/getBlueprintBuildLog200Status.ts +17 -0
  153. package/src/react/model/getBlueprintBuildLogOrder.ts +14 -0
  154. package/src/react/model/getBlueprintBuildLogParams.ts +21 -0
  155. package/src/react/model/listAgentsParams.ts +1 -5
  156. package/src/react/model/listMcpTools200ToolsItem.ts +1 -0
  157. package/src/react/model/organization.ts +2 -0
  158. package/src/react/model/organizationSubscriptionTier.ts +15 -0
  159. package/src/react/model/saveAgentDraftBodyPayload.ts +2 -0
  160. package/src/react/organizations.ts +1 -1
@@ -16,11 +16,7 @@ userId?: string;
16
16
  * @maximum 200
17
17
  */
18
18
  limit?: number;
19
- /**
20
- * @minimum -9007199254740991
21
- * @maximum 9007199254740991
22
- */
23
- cursor?: number;
19
+ cursor?: string;
24
20
  search?: string;
25
21
  status?: string;
26
22
  mark?: 'any' | 'blocked' | 'in_review' | 'completed';
@@ -11,5 +11,6 @@ export type ListMcpTools200ToolsItem = {
11
11
  title?: string;
12
12
  description?: string;
13
13
  readOnly?: boolean;
14
+ destructive?: boolean;
14
15
  inputSchema?: ListMcpTools200ToolsItemInputSchema;
15
16
  };
@@ -10,6 +10,7 @@ import type { OrganizationEnabledReleaseChannelsItem } from './organizationEnabl
10
10
  import type { OrganizationSharingSettings } from './organizationSharingSettings.js';
11
11
  import type { OrganizationStatus } from './organizationStatus.js';
12
12
  import type { OrganizationSubscription } from './organizationSubscription.js';
13
+ import type { OrganizationSubscriptionTier } from './organizationSubscriptionTier.js';
13
14
 
14
15
  export interface Organization {
15
16
  id: string;
@@ -23,6 +24,7 @@ export interface Organization {
23
24
  emailDomains: unknown[];
24
25
  bootstrappedAt?: number | null;
25
26
  capabilities: string[];
27
+ subscriptionTier?: OrganizationSubscriptionTier;
26
28
  enabledReleaseChannels: OrganizationEnabledReleaseChannelsItem[];
27
29
  status?: OrganizationStatus;
28
30
  disabledReason?: OrganizationDisabledReason;
@@ -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 OrganizationSubscriptionTier = typeof OrganizationSubscriptionTier[keyof typeof OrganizationSubscriptionTier];
9
+
10
+
11
+ export const OrganizationSubscriptionTier = {
12
+ trial: 'trial',
13
+ standard: 'standard',
14
+ enterprise: 'enterprise',
15
+ } as const;
@@ -19,6 +19,8 @@ export type SaveAgentDraftBodyPayload = {
19
19
  /** @minLength 1 */
20
20
  prompt?: string;
21
21
  systemPrompt?: string;
22
+ /** @maxLength 64 */
23
+ personaId?: string;
22
24
  model?: string;
23
25
  modelEndpointId?: string | null;
24
26
  blueprintId?: string;
@@ -173,7 +173,7 @@ export const getUpdateOrganizationUrl = (id: string,) => {
173
173
  }
174
174
 
175
175
  /**
176
- * Capability changes are restricted to platform super-admins.
176
+ * Capability changes are restricted to platform admins.
177
177
  * @summary Update an organization's name, slug, or settings.
178
178
  */
179
179
  export const updateOrganization = async (id: string,
@@ -30,6 +30,14 @@ import type {
30
30
  DeleteBlueprint200
31
31
  } from './model/deleteBlueprint200.js';
32
32
 
33
+ import type {
34
+ GetBlueprintBuildLog200
35
+ } from './model/getBlueprintBuildLog200.js';
36
+
37
+ import type {
38
+ GetBlueprintBuildLogParams
39
+ } from './model/getBlueprintBuildLogParams.js';
40
+
33
41
  import type {
34
42
  GetBlueprintLogs200
35
43
  } from './model/getBlueprintLogs200.js';
@@ -323,6 +331,79 @@ export const useDeleteBlueprint = <TError = unknown,
323
331
  return useMutation(getDeleteBlueprintMutationOptions(options));
324
332
  }
325
333
  /**
334
+ * @summary Get a page of a blueprint's build log, with its build state.
335
+ */
336
+ export const getBlueprintBuildLog = (
337
+ id: string,
338
+ params?: GetBlueprintBuildLogParams,
339
+ options?: SecondParameter<typeof apiFetch>,signal?: AbortSignal
340
+ ) => {
341
+
342
+
343
+ return apiFetch<GetBlueprintBuildLog200>(
344
+ {url: `/blueprints/${encodeURIComponent(String(id))}/build-log`, method: 'GET',
345
+ params, signal
346
+ },
347
+ options);
348
+ }
349
+
350
+
351
+
352
+
353
+ export const getGetBlueprintBuildLogQueryKey = (id: string,
354
+ params?: GetBlueprintBuildLogParams,) => {
355
+ return [
356
+ `/blueprints/${id}/build-log`, ...(params ? [params] : [])
357
+ ] as const;
358
+ }
359
+
360
+
361
+ export const getGetBlueprintBuildLogQueryOptions = <TData = Awaited<ReturnType<typeof getBlueprintBuildLog>>, TError = unknown>(id: string,
362
+ params?: GetBlueprintBuildLogParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getBlueprintBuildLog>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
363
+ ) => {
364
+
365
+ const {query: queryOptions, request: requestOptions} = options ?? {};
366
+
367
+ const queryKey = queryOptions?.queryKey ?? getGetBlueprintBuildLogQueryKey(id,params);
368
+
369
+
370
+
371
+ const queryFn: QueryFunction<Awaited<ReturnType<typeof getBlueprintBuildLog>>> = ({ signal }) => getBlueprintBuildLog(id,params, requestOptions, signal);
372
+
373
+
374
+
375
+
376
+
377
+ return { queryKey, queryFn, enabled: id !== null && id !== undefined, ...queryOptions} as UseQueryOptions<Awaited<ReturnType<typeof getBlueprintBuildLog>>, TError, TData> & { queryKey: QueryKey }
378
+ }
379
+
380
+ export type GetBlueprintBuildLogQueryResult = NonNullable<Awaited<ReturnType<typeof getBlueprintBuildLog>>>
381
+ export type GetBlueprintBuildLogQueryError = unknown
382
+
383
+
384
+ /**
385
+ * @summary Get a page of a blueprint's build log, with its build state.
386
+ */
387
+
388
+ export function useGetBlueprintBuildLog<TData = Awaited<ReturnType<typeof getBlueprintBuildLog>>, TError = unknown>(
389
+ id: string,
390
+ params?: GetBlueprintBuildLogParams, options?: { query?:UseQueryOptions<Awaited<ReturnType<typeof getBlueprintBuildLog>>, TError, TData>, request?: SecondParameter<typeof apiFetch>}
391
+
392
+ ): UseQueryResult<TData, TError> & { queryKey: QueryKey } {
393
+
394
+ const queryOptions = getGetBlueprintBuildLogQueryOptions(id,params,options)
395
+
396
+ const query = useQuery(queryOptions) as UseQueryResult<TData, TError> & { queryKey: QueryKey };
397
+
398
+ return withQueryKey(query, queryOptions.queryKey);
399
+ }
400
+
401
+
402
+
403
+
404
+
405
+
406
+ /**
326
407
  * @summary Get a blueprint's build logs.
327
408
  */
328
409
  export const getBlueprintLogs = (
@@ -18,6 +18,10 @@ import type {
18
18
  UseQueryResult
19
19
  } from '@tanstack/react-query';
20
20
 
21
+ import type {
22
+ AcceptInviteResponse
23
+ } from './model/acceptInviteResponse.js';
24
+
21
25
  import type {
22
26
  AcceptPendingInvites200
23
27
  } from './model/acceptPendingInvites200.js';
@@ -62,6 +66,67 @@ const withQueryKey = <T extends object, K>(query: T, queryKey: K): T & { queryKe
62
66
  };
63
67
 
64
68
  /**
69
+ * @summary Accept one organization invite
70
+ */
71
+ export const acceptInvite = (
72
+ inviteId: string,
73
+ options?: SecondParameter<typeof apiFetch>,signal?: AbortSignal
74
+ ) => {
75
+
76
+
77
+ return apiFetch<AcceptInviteResponse>(
78
+ {url: `/invites/${encodeURIComponent(String(inviteId))}/accept`, method: 'POST', signal
79
+ },
80
+ options);
81
+ }
82
+
83
+
84
+
85
+ export const getAcceptInviteMutationOptions = <TError = unknown,
86
+ TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof acceptInvite>>, TError,{inviteId: string}, TContext>, request?: SecondParameter<typeof apiFetch>}
87
+ ): UseMutationOptions<Awaited<ReturnType<typeof acceptInvite>>, TError,{inviteId: string}, TContext> => {
88
+
89
+ const mutationKey = ['acceptInvite'];
90
+ const {mutation: mutationOptions, request: requestOptions} = options ?
91
+ options.mutation && 'mutationKey' in options.mutation && options.mutation.mutationKey ?
92
+ options
93
+ : {...options, mutation: {...options.mutation, mutationKey}}
94
+ : {mutation: { mutationKey, }, request: undefined};
95
+
96
+
97
+
98
+
99
+ const mutationFn: MutationFunction<Awaited<ReturnType<typeof acceptInvite>>, {inviteId: string}> = (props) => {
100
+ const {inviteId} = props ?? {};
101
+
102
+ return acceptInvite(inviteId,requestOptions)
103
+ }
104
+
105
+
106
+
107
+
108
+
109
+
110
+ return { mutationFn, ...mutationOptions }}
111
+
112
+ export type AcceptInviteMutationResult = NonNullable<Awaited<ReturnType<typeof acceptInvite>>>
113
+
114
+ export type AcceptInviteMutationError = unknown
115
+
116
+ /**
117
+ * @summary Accept one organization invite
118
+ */
119
+ export const useAcceptInvite = <TError = unknown,
120
+ TContext = unknown>(options?: { mutation?:UseMutationOptions<Awaited<ReturnType<typeof acceptInvite>>, TError,{inviteId: string}, TContext>, request?: SecondParameter<typeof apiFetch>}
121
+ ): UseMutationResult<
122
+ Awaited<ReturnType<typeof acceptInvite>>,
123
+ TError,
124
+ {inviteId: string},
125
+ TContext
126
+ > => {
127
+ return useMutation(getAcceptInviteMutationOptions(options));
128
+ }
129
+ /**
65
130
  * @summary Decline an organization invite
66
131
  */
67
132
  export const declineInvite = (
@@ -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 { AcceptInviteResponseJoined } from './acceptInviteResponseJoined.js';
8
+
9
+ export interface AcceptInviteResponse {
10
+ joined: AcceptInviteResponseJoined;
11
+ }
@@ -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 type AcceptInviteResponseJoined = {
9
+ organizationId: string;
10
+ organizationName: string;
11
+ organizationSlug: string;
12
+ };
@@ -31,6 +31,7 @@ export interface Agent {
31
31
  name: string;
32
32
  prompt: string;
33
33
  systemPrompt?: string | null;
34
+ personaId?: string | null;
34
35
  model?: string | null;
35
36
  blueprintId?: string | null;
36
37
  blueprintName?: string | null;
@@ -13,6 +13,8 @@ export interface AgentPersona {
13
13
  name: string;
14
14
  agentType: string;
15
15
  systemPrompt: string | null;
16
+ /** @maxLength 64 */
17
+ personaId?: string;
16
18
  model: string | null;
17
19
  modelEndpointId: string | null;
18
20
  blueprintId?: string;
@@ -17,6 +17,8 @@ export type CreateAgentBody = {
17
17
  /** @minLength 1 */
18
18
  prompt: string;
19
19
  systemPrompt?: string;
20
+ /** @maxLength 64 */
21
+ personaId?: string;
20
22
  model?: string;
21
23
  /** @minLength 1 */
22
24
  modelEndpointId?: string;
@@ -31,6 +31,7 @@ export interface CreateAgentResponse {
31
31
  name: string;
32
32
  prompt: string;
33
33
  systemPrompt?: string | null;
34
+ personaId?: string | null;
34
35
  model?: string | null;
35
36
  blueprintId?: string | null;
36
37
  blueprintName?: string | null;
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Generated by orval v8.18.0 🍺
3
+ * Do not edit manually.
4
+ * Reflex API
5
+ * OpenAPI spec version: 1.0.0
6
+ */
7
+ import type { GetBlueprintBuildLog200EntriesItem } from './getBlueprintBuildLog200EntriesItem.js';
8
+ import type { GetBlueprintBuildLog200Status } from './getBlueprintBuildLog200Status.js';
9
+
10
+ export type GetBlueprintBuildLog200 = {
11
+ id: string;
12
+ name: string | null;
13
+ status: GetBlueprintBuildLog200Status;
14
+ failureReason: string | null;
15
+ entries: GetBlueprintBuildLog200EntriesItem[];
16
+ /**
17
+ * @minimum -9007199254740991
18
+ * @maximum 9007199254740991
19
+ */
20
+ totalEntries: number;
21
+ nextCursor: string | null;
22
+ };
@@ -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 type GetBlueprintBuildLog200EntriesItem = {
9
+ level: string;
10
+ message: string;
11
+ timestampMs: number;
12
+ };
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Generated by orval v8.18.0 🍺
3
+ * Do not edit manually.
4
+ * Reflex API
5
+ * OpenAPI spec version: 1.0.0
6
+ */
7
+
8
+ export type GetBlueprintBuildLog200Status = typeof GetBlueprintBuildLog200Status[keyof typeof GetBlueprintBuildLog200Status];
9
+
10
+
11
+ export const GetBlueprintBuildLog200Status = {
12
+ queued: 'queued',
13
+ provisioning: 'provisioning',
14
+ building: 'building',
15
+ failed: 'failed',
16
+ build_complete: 'build_complete',
17
+ } 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 GetBlueprintBuildLogOrder = typeof GetBlueprintBuildLogOrder[keyof typeof GetBlueprintBuildLogOrder];
9
+
10
+
11
+ export const GetBlueprintBuildLogOrder = {
12
+ asc: 'asc',
13
+ desc: 'desc',
14
+ } as const;
@@ -0,0 +1,21 @@
1
+ /**
2
+ * Generated by orval v8.18.0 🍺
3
+ * Do not edit manually.
4
+ * Reflex API
5
+ * OpenAPI spec version: 1.0.0
6
+ */
7
+ import type { GetBlueprintBuildLogOrder } from './getBlueprintBuildLogOrder.js';
8
+
9
+ export type GetBlueprintBuildLogParams = {
10
+ /**
11
+ * Entries per page (default 200).
12
+ * @minimum 1
13
+ * @maximum 1000
14
+ */
15
+ limit?: number;
16
+ cursor?: string;
17
+ /**
18
+ * Page direction (default asc).
19
+ */
20
+ order?: GetBlueprintBuildLogOrder;
21
+ };
@@ -16,11 +16,7 @@ userId?: string;
16
16
  * @maximum 200
17
17
  */
18
18
  limit?: number;
19
- /**
20
- * @minimum -9007199254740991
21
- * @maximum 9007199254740991
22
- */
23
- cursor?: number;
19
+ cursor?: string;
24
20
  search?: string;
25
21
  status?: string;
26
22
  mark?: 'any' | 'blocked' | 'in_review' | 'completed';
@@ -11,5 +11,6 @@ export type ListMcpTools200ToolsItem = {
11
11
  title?: string;
12
12
  description?: string;
13
13
  readOnly?: boolean;
14
+ destructive?: boolean;
14
15
  inputSchema?: ListMcpTools200ToolsItemInputSchema;
15
16
  };
@@ -10,6 +10,7 @@ import type { OrganizationEnabledReleaseChannelsItem } from './organizationEnabl
10
10
  import type { OrganizationSharingSettings } from './organizationSharingSettings.js';
11
11
  import type { OrganizationStatus } from './organizationStatus.js';
12
12
  import type { OrganizationSubscription } from './organizationSubscription.js';
13
+ import type { OrganizationSubscriptionTier } from './organizationSubscriptionTier.js';
13
14
 
14
15
  export interface Organization {
15
16
  id: string;
@@ -23,6 +24,7 @@ export interface Organization {
23
24
  emailDomains: unknown[];
24
25
  bootstrappedAt?: number | null;
25
26
  capabilities: string[];
27
+ subscriptionTier?: OrganizationSubscriptionTier;
26
28
  enabledReleaseChannels: OrganizationEnabledReleaseChannelsItem[];
27
29
  status?: OrganizationStatus;
28
30
  disabledReason?: OrganizationDisabledReason;
@@ -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 OrganizationSubscriptionTier = typeof OrganizationSubscriptionTier[keyof typeof OrganizationSubscriptionTier];
9
+
10
+
11
+ export const OrganizationSubscriptionTier = {
12
+ trial: 'trial',
13
+ standard: 'standard',
14
+ enterprise: 'enterprise',
15
+ } as const;
@@ -19,6 +19,8 @@ export type SaveAgentDraftBodyPayload = {
19
19
  /** @minLength 1 */
20
20
  prompt?: string;
21
21
  systemPrompt?: string;
22
+ /** @maxLength 64 */
23
+ personaId?: string;
22
24
  model?: string;
23
25
  modelEndpointId?: string | null;
24
26
  blueprintId?: string;
@@ -393,7 +393,7 @@ export function useGetOrganization<TData = Awaited<ReturnType<typeof getOrganiza
393
393
 
394
394
 
395
395
  /**
396
- * Capability changes are restricted to platform super-admins.
396
+ * Capability changes are restricted to platform admins.
397
397
  * @summary Update an organization's name, slug, or settings.
398
398
  */
399
399
  export const updateOrganization = (