@constructive-io/react 0.15.2 → 0.15.4
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/admin/hooks/index.d.ts +1 -1
- package/admin/hooks/index.js +1 -1
- package/admin/hooks/invalidation.d.ts +65 -47
- package/admin/hooks/invalidation.js +143 -95
- package/admin/hooks/mutation-keys.d.ts +130 -96
- package/admin/hooks/mutation-keys.js +78 -60
- package/admin/hooks/mutations/index.d.ts +32 -28
- package/admin/hooks/mutations/index.js +32 -28
- package/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/{auth/hooks/mutations/useConfirmUploadMutation.js → admin/hooks/mutations/useCreateAppLimitEventMutation.js} +14 -6
- package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
- package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
- package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
- package/admin/hooks/queries/index.d.ts +22 -18
- package/admin/hooks/queries/index.js +22 -18
- package/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/admin/hooks/queries/useAppLimitEventsQuery.js +38 -0
- package/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/admin/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
- package/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
- package/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/admin/hooks/queries/useOrgLimitEventsQuery.js +38 -0
- package/admin/hooks/query-keys.d.ts +154 -112
- package/admin/hooks/query-keys.js +90 -66
- package/admin/orm/index.d.ts +24 -23
- package/admin/orm/index.js +24 -18
- package/admin/orm/input-types.d.ts +1297 -839
- package/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/admin/orm/models/appLimitEvent.js +55 -0
- package/admin/orm/models/index.d.ts +12 -9
- package/admin/orm/models/index.js +25 -19
- package/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/admin/orm/models/orgLimitAggregate.js +100 -0
- package/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/admin/orm/models/orgLimitEvent.js +55 -0
- package/admin/orm/mutation/index.d.ts +1 -15
- package/admin/orm/mutation/index.js +0 -12
- package/admin/schema-types.d.ts +1207 -856
- package/admin/types.d.ts +96 -53
- package/auth/hooks/mutation-keys.d.ts +0 -2
- package/auth/hooks/mutation-keys.js +0 -3
- package/auth/hooks/mutations/index.d.ts +0 -1
- package/auth/hooks/mutations/index.js +0 -1
- package/auth/orm/index.d.ts +0 -5
- package/auth/orm/input-types.d.ts +0 -20
- package/auth/orm/mutation/index.d.ts +1 -15
- package/auth/orm/mutation/index.js +0 -12
- package/auth/schema-types.d.ts +0 -14
- package/esm/admin/hooks/index.d.ts +1 -1
- package/esm/admin/hooks/index.js +1 -1
- package/esm/admin/hooks/invalidation.d.ts +65 -47
- package/esm/admin/hooks/invalidation.js +144 -96
- package/esm/admin/hooks/mutation-keys.d.ts +130 -96
- package/esm/admin/hooks/mutation-keys.js +77 -59
- package/esm/admin/hooks/mutations/index.d.ts +32 -28
- package/esm/admin/hooks/mutations/index.js +32 -28
- package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/esm/admin/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
- package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/esm/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
- package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/esm/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
- package/esm/admin/hooks/queries/index.d.ts +22 -18
- package/esm/admin/hooks/queries/index.js +22 -18
- package/esm/admin/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useAppLimitEventsQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
- package/esm/admin/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/esm/admin/hooks/queries/useOrgLimitEventsQuery.js +32 -0
- package/esm/admin/hooks/query-keys.d.ts +154 -112
- package/esm/admin/hooks/query-keys.js +89 -65
- package/esm/admin/orm/index.d.ts +24 -23
- package/esm/admin/orm/index.js +24 -18
- package/esm/admin/orm/input-types.d.ts +1297 -839
- package/esm/admin/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/appLimitEvent.js +51 -0
- package/esm/admin/orm/models/index.d.ts +12 -9
- package/esm/admin/orm/models/index.js +12 -9
- package/esm/admin/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/admin/orm/models/orgLimitAggregate.js +96 -0
- package/esm/admin/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/admin/orm/models/orgLimitEvent.js +51 -0
- package/esm/admin/orm/mutation/index.d.ts +1 -15
- package/esm/admin/orm/mutation/index.js +0 -12
- package/esm/admin/schema-types.d.ts +1207 -856
- package/esm/admin/types.d.ts +96 -53
- package/esm/auth/hooks/mutation-keys.d.ts +0 -2
- package/esm/auth/hooks/mutation-keys.js +0 -3
- package/esm/auth/hooks/mutations/index.d.ts +0 -1
- package/esm/auth/hooks/mutations/index.js +0 -1
- package/esm/auth/orm/index.d.ts +0 -5
- package/esm/auth/orm/input-types.d.ts +0 -20
- package/esm/auth/orm/mutation/index.d.ts +1 -15
- package/esm/auth/orm/mutation/index.js +0 -12
- package/esm/auth/schema-types.d.ts +0 -14
- package/esm/objects/hooks/mutation-keys.d.ts +0 -2
- package/esm/objects/hooks/mutation-keys.js +0 -3
- package/esm/objects/hooks/mutations/index.d.ts +0 -1
- package/esm/objects/hooks/mutations/index.js +0 -1
- package/esm/objects/orm/index.d.ts +0 -5
- package/esm/objects/orm/input-types.d.ts +0 -20
- package/esm/objects/orm/mutation/index.d.ts +1 -15
- package/esm/objects/orm/mutation/index.js +0 -12
- package/esm/objects/schema-types.d.ts +0 -14
- package/esm/public/hooks/index.d.ts +1 -1
- package/esm/public/hooks/index.js +1 -1
- package/esm/public/hooks/invalidation.d.ts +101 -47
- package/esm/public/hooks/invalidation.js +239 -95
- package/esm/public/hooks/mutation-keys.d.ts +206 -100
- package/esm/public/hooks/mutation-keys.js +125 -65
- package/esm/public/hooks/mutations/index.d.ts +50 -28
- package/esm/public/hooks/mutations/index.js +50 -28
- package/esm/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentMessageMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentTaskMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAgentThreadMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateAppLimitEventMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateBillingModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateNodeTypeRegistryMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreateOrgLimitEventMutation.js +31 -0
- package/esm/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
- package/esm/public/hooks/mutations/useCreatePlansModuleMutation.js +31 -0
- package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentMessageMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentTaskMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteAgentThreadMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteBillingModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +36 -0
- package/esm/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
- package/esm/public/hooks/mutations/useDeletePlansModuleMutation.js +36 -0
- package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentMessageMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentTaskMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateAgentThreadMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateBillingModuleMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +37 -0
- package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
- package/esm/public/hooks/mutations/useUpdatePlansModuleMutation.js +37 -0
- package/esm/public/hooks/queries/index.d.ts +36 -20
- package/esm/public/hooks/queries/index.js +36 -20
- package/esm/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentMessageQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentMessagesQuery.js +32 -0
- package/esm/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentTaskQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentTasksQuery.js +32 -0
- package/esm/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useAgentThreadQuery.js +47 -0
- package/esm/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAgentThreadsQuery.js +32 -0
- package/esm/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useAppLimitEventsQuery.js +32 -0
- package/esm/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useBillingModuleQuery.js +47 -0
- package/esm/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useBillingModulesQuery.js +32 -0
- package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useNodeTypeRegistriesQuery.js +32 -0
- package/esm/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useNodeTypeRegistryQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/esm/public/hooks/queries/useOrgLimitAggregateQuery.js +47 -0
- package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgLimitAggregatesQuery.js +32 -0
- package/esm/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/esm/public/hooks/queries/useOrgLimitEventsQuery.js +32 -0
- package/esm/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
- package/esm/public/hooks/queries/usePlansModuleQuery.js +47 -0
- package/esm/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
- package/esm/public/hooks/queries/usePlansModulesQuery.js +32 -0
- package/esm/public/hooks/query-keys.d.ts +246 -120
- package/esm/public/hooks/query-keys.js +141 -69
- package/esm/public/orm/index.d.ts +56 -43
- package/esm/public/orm/index.js +36 -18
- package/esm/public/orm/input-types.d.ts +2983 -1112
- package/esm/public/orm/input-types.js +9 -0
- package/esm/public/orm/models/agentMessage.d.ts +56 -0
- package/esm/public/orm/models/agentMessage.js +96 -0
- package/esm/public/orm/models/agentTask.d.ts +56 -0
- package/esm/public/orm/models/agentTask.js +96 -0
- package/esm/public/orm/models/agentThread.d.ts +56 -0
- package/esm/public/orm/models/agentThread.js +96 -0
- package/esm/public/orm/models/appLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/appLimitEvent.js +51 -0
- package/esm/public/orm/models/billingModule.d.ts +56 -0
- package/esm/public/orm/models/billingModule.js +96 -0
- package/esm/public/orm/models/index.d.ts +18 -9
- package/esm/public/orm/models/index.js +18 -9
- package/esm/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/esm/public/orm/models/nodeTypeRegistry.js +96 -0
- package/esm/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/esm/public/orm/models/orgLimitAggregate.js +96 -0
- package/esm/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/esm/public/orm/models/orgLimitEvent.js +51 -0
- package/esm/public/orm/models/plansModule.d.ts +56 -0
- package/esm/public/orm/models/plansModule.js +96 -0
- package/esm/public/orm/mutation/index.d.ts +17 -31
- package/esm/public/orm/mutation/index.js +24 -36
- package/esm/public/orm/query/index.d.ts +28 -28
- package/esm/public/orm/query/index.js +48 -48
- package/esm/public/schema-types.d.ts +3948 -2833
- package/esm/public/types.d.ts +194 -77
- package/objects/hooks/mutation-keys.d.ts +0 -2
- package/objects/hooks/mutation-keys.js +0 -3
- package/objects/hooks/mutations/index.d.ts +0 -1
- package/objects/hooks/mutations/index.js +0 -1
- package/objects/orm/index.d.ts +0 -5
- package/objects/orm/input-types.d.ts +0 -20
- package/objects/orm/mutation/index.d.ts +1 -15
- package/objects/orm/mutation/index.js +0 -12
- package/objects/schema-types.d.ts +0 -14
- package/package.json +4 -4
- package/public/hooks/index.d.ts +1 -1
- package/public/hooks/index.js +1 -1
- package/public/hooks/invalidation.d.ts +101 -47
- package/public/hooks/invalidation.js +238 -94
- package/public/hooks/mutation-keys.d.ts +206 -100
- package/public/hooks/mutation-keys.js +128 -68
- package/public/hooks/mutations/index.d.ts +50 -28
- package/public/hooks/mutations/index.js +50 -28
- package/public/hooks/mutations/useCreateAgentMessageMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentMessageMutation.js +34 -0
- package/public/hooks/mutations/useCreateAgentTaskMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentTaskMutation.js +34 -0
- package/public/hooks/mutations/useCreateAgentThreadMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAgentThreadMutation.js +34 -0
- package/public/hooks/mutations/useCreateAppLimitEventMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateAppLimitEventMutation.js +34 -0
- package/public/hooks/mutations/useCreateBillingModuleMutation.d.ts +34 -0
- package/{admin/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreateBillingModuleMutation.js} +14 -6
- package/public/hooks/mutations/useCreateNodeTypeRegistryMutation.d.ts +34 -0
- package/public/hooks/mutations/{useConfirmUploadMutation.js → useCreateNodeTypeRegistryMutation.js} +14 -6
- package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgLimitAggregateMutation.js +34 -0
- package/public/hooks/mutations/useCreateOrgLimitEventMutation.d.ts +34 -0
- package/public/hooks/mutations/useCreateOrgLimitEventMutation.js +34 -0
- package/public/hooks/mutations/useCreatePlansModuleMutation.d.ts +34 -0
- package/{objects/hooks/mutations/useConfirmUploadMutation.js → public/hooks/mutations/useCreatePlansModuleMutation.js} +14 -6
- package/public/hooks/mutations/useDeleteAgentMessageMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentMessageMutation.js +39 -0
- package/public/hooks/mutations/useDeleteAgentTaskMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentTaskMutation.js +39 -0
- package/public/hooks/mutations/useDeleteAgentThreadMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteAgentThreadMutation.js +39 -0
- package/public/hooks/mutations/useDeleteBillingModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteBillingModuleMutation.js +39 -0
- package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.js +39 -0
- package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.js +39 -0
- package/public/hooks/mutations/useDeletePlansModuleMutation.d.ts +38 -0
- package/public/hooks/mutations/useDeletePlansModuleMutation.js +39 -0
- package/public/hooks/mutations/useUpdateAgentMessageMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentMessageMutation.js +40 -0
- package/public/hooks/mutations/useUpdateAgentTaskMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentTaskMutation.js +40 -0
- package/public/hooks/mutations/useUpdateAgentThreadMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateAgentThreadMutation.js +40 -0
- package/public/hooks/mutations/useUpdateBillingModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateBillingModuleMutation.js +40 -0
- package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.js +40 -0
- package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.js +40 -0
- package/public/hooks/mutations/useUpdatePlansModuleMutation.d.ts +40 -0
- package/public/hooks/mutations/useUpdatePlansModuleMutation.js +40 -0
- package/public/hooks/queries/index.d.ts +36 -20
- package/public/hooks/queries/index.js +36 -20
- package/public/hooks/queries/useAgentMessageQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentMessageQuery.js +53 -0
- package/public/hooks/queries/useAgentMessagesQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentMessagesQuery.js +38 -0
- package/public/hooks/queries/useAgentTaskQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentTaskQuery.js +53 -0
- package/public/hooks/queries/useAgentTasksQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentTasksQuery.js +38 -0
- package/public/hooks/queries/useAgentThreadQuery.d.ts +65 -0
- package/public/hooks/queries/useAgentThreadQuery.js +53 -0
- package/public/hooks/queries/useAgentThreadsQuery.d.ts +69 -0
- package/public/hooks/queries/useAgentThreadsQuery.js +38 -0
- package/public/hooks/queries/useAppLimitEventsQuery.d.ts +69 -0
- package/public/hooks/queries/useAppLimitEventsQuery.js +38 -0
- package/public/hooks/queries/useBillingModuleQuery.d.ts +65 -0
- package/public/hooks/queries/useBillingModuleQuery.js +53 -0
- package/public/hooks/queries/useBillingModulesQuery.d.ts +69 -0
- package/public/hooks/queries/useBillingModulesQuery.js +38 -0
- package/public/hooks/queries/useNodeTypeRegistriesQuery.d.ts +69 -0
- package/public/hooks/queries/useNodeTypeRegistriesQuery.js +38 -0
- package/public/hooks/queries/useNodeTypeRegistryQuery.d.ts +65 -0
- package/public/hooks/queries/useNodeTypeRegistryQuery.js +53 -0
- package/public/hooks/queries/useOrgLimitAggregateQuery.d.ts +65 -0
- package/public/hooks/queries/useOrgLimitAggregateQuery.js +53 -0
- package/public/hooks/queries/useOrgLimitAggregatesQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgLimitAggregatesQuery.js +38 -0
- package/public/hooks/queries/useOrgLimitEventsQuery.d.ts +69 -0
- package/public/hooks/queries/useOrgLimitEventsQuery.js +38 -0
- package/public/hooks/queries/usePlansModuleQuery.d.ts +65 -0
- package/public/hooks/queries/usePlansModuleQuery.js +53 -0
- package/public/hooks/queries/usePlansModulesQuery.d.ts +69 -0
- package/public/hooks/queries/usePlansModulesQuery.js +38 -0
- package/public/hooks/query-keys.d.ts +246 -120
- package/public/hooks/query-keys.js +144 -72
- package/public/orm/index.d.ts +56 -43
- package/public/orm/index.js +36 -18
- package/public/orm/input-types.d.ts +2983 -1112
- package/public/orm/input-types.js +9 -0
- package/public/orm/models/agentMessage.d.ts +56 -0
- package/public/orm/models/agentMessage.js +100 -0
- package/public/orm/models/agentTask.d.ts +56 -0
- package/public/orm/models/agentTask.js +100 -0
- package/public/orm/models/agentThread.d.ts +56 -0
- package/public/orm/models/agentThread.js +100 -0
- package/public/orm/models/appLimitEvent.d.ts +32 -0
- package/public/orm/models/appLimitEvent.js +55 -0
- package/public/orm/models/billingModule.d.ts +56 -0
- package/public/orm/models/billingModule.js +100 -0
- package/public/orm/models/index.d.ts +18 -9
- package/public/orm/models/index.js +39 -21
- package/public/orm/models/nodeTypeRegistry.d.ts +56 -0
- package/public/orm/models/nodeTypeRegistry.js +100 -0
- package/public/orm/models/orgLimitAggregate.d.ts +56 -0
- package/public/orm/models/orgLimitAggregate.js +100 -0
- package/public/orm/models/orgLimitEvent.d.ts +32 -0
- package/public/orm/models/orgLimitEvent.js +55 -0
- package/public/orm/models/plansModule.d.ts +56 -0
- package/public/orm/models/plansModule.js +100 -0
- package/public/orm/mutation/index.d.ts +17 -31
- package/public/orm/mutation/index.js +24 -36
- package/public/orm/query/index.d.ts +28 -28
- package/public/orm/query/index.js +48 -48
- package/public/schema-types.d.ts +3948 -2833
- package/public/types.d.ts +194 -77
- package/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/admin/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/admin/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/auth/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/auth/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/objects/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/esm/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/esm/public/hooks/mutations/useConfirmUploadMutation.js +0 -23
- package/objects/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
- package/public/hooks/mutations/useConfirmUploadMutation.d.ts +0 -20
|
@@ -6,12 +6,12 @@
|
|
|
6
6
|
export * from './useOrgGetManagersQuery';
|
|
7
7
|
export * from './useOrgGetSubordinatesQuery';
|
|
8
8
|
export * from './useGetAllQuery';
|
|
9
|
-
export * from './useObjectsQuery';
|
|
10
|
-
export * from './useObjectQuery';
|
|
11
9
|
export * from './useAppPermissionsQuery';
|
|
12
10
|
export * from './useAppPermissionQuery';
|
|
13
11
|
export * from './useOrgPermissionsQuery';
|
|
14
12
|
export * from './useOrgPermissionQuery';
|
|
13
|
+
export * from './useObjectsQuery';
|
|
14
|
+
export * from './useObjectQuery';
|
|
15
15
|
export * from './useAppLevelRequirementsQuery';
|
|
16
16
|
export * from './useAppLevelRequirementQuery';
|
|
17
17
|
export * from './useDatabasesQuery';
|
|
@@ -172,6 +172,8 @@ export * from './useAppLimitsQuery';
|
|
|
172
172
|
export * from './useAppLimitQuery';
|
|
173
173
|
export * from './useOrgLimitsQuery';
|
|
174
174
|
export * from './useOrgLimitQuery';
|
|
175
|
+
export * from './useOrgLimitAggregatesQuery';
|
|
176
|
+
export * from './useOrgLimitAggregateQuery';
|
|
175
177
|
export * from './useAppStepsQuery';
|
|
176
178
|
export * from './useAppStepQuery';
|
|
177
179
|
export * from './useAppAchievementsQuery';
|
|
@@ -196,45 +198,59 @@ export * from './useOrgClaimedInvitesQuery';
|
|
|
196
198
|
export * from './useOrgClaimedInviteQuery';
|
|
197
199
|
export * from './useAuditLogsQuery';
|
|
198
200
|
export * from './useAuditLogQuery';
|
|
199
|
-
export * from './
|
|
200
|
-
export * from './
|
|
201
|
+
export * from './useAgentThreadsQuery';
|
|
202
|
+
export * from './useAgentThreadQuery';
|
|
203
|
+
export * from './useAgentMessagesQuery';
|
|
204
|
+
export * from './useAgentMessageQuery';
|
|
205
|
+
export * from './useAgentTasksQuery';
|
|
206
|
+
export * from './useAgentTaskQuery';
|
|
207
|
+
export * from './useRoleTypesQuery';
|
|
208
|
+
export * from './useRoleTypeQuery';
|
|
201
209
|
export * from './useIdentityProvidersQuery';
|
|
202
210
|
export * from './useRefsQuery';
|
|
203
211
|
export * from './useRefQuery';
|
|
204
212
|
export * from './useStoresQuery';
|
|
205
213
|
export * from './useStoreQuery';
|
|
206
|
-
export * from './
|
|
207
|
-
export * from './
|
|
214
|
+
export * from './useAppPermissionDefaultsQuery';
|
|
215
|
+
export * from './useAppPermissionDefaultQuery';
|
|
216
|
+
export * from './useMembershipTypesQuery';
|
|
217
|
+
export * from './useMembershipTypeQuery';
|
|
208
218
|
export * from './useMigrateFilesQuery';
|
|
209
219
|
export * from './useMigrateFileQuery';
|
|
220
|
+
export * from './useDevicesModulesQuery';
|
|
221
|
+
export * from './useDevicesModuleQuery';
|
|
222
|
+
export * from './useNodeTypeRegistriesQuery';
|
|
223
|
+
export * from './useNodeTypeRegistryQuery';
|
|
210
224
|
export * from './useAppLimitDefaultsQuery';
|
|
211
225
|
export * from './useAppLimitDefaultQuery';
|
|
212
226
|
export * from './useOrgLimitDefaultsQuery';
|
|
213
227
|
export * from './useOrgLimitDefaultQuery';
|
|
214
|
-
export * from './useDevicesModulesQuery';
|
|
215
|
-
export * from './useDevicesModuleQuery';
|
|
216
228
|
export * from './useUserConnectedAccountsQuery';
|
|
217
229
|
export * from './useUserConnectedAccountQuery';
|
|
218
|
-
export * from './useAppMembershipDefaultsQuery';
|
|
219
|
-
export * from './useAppMembershipDefaultQuery';
|
|
220
|
-
export * from './useOrgMembershipDefaultsQuery';
|
|
221
|
-
export * from './useOrgMembershipDefaultQuery';
|
|
222
230
|
export * from './useCommitsQuery';
|
|
223
231
|
export * from './useCommitQuery';
|
|
224
232
|
export * from './useRateLimitsModulesQuery';
|
|
225
233
|
export * from './useRateLimitsModuleQuery';
|
|
226
|
-
export * from './
|
|
227
|
-
export * from './
|
|
234
|
+
export * from './useAppMembershipDefaultsQuery';
|
|
235
|
+
export * from './useAppMembershipDefaultQuery';
|
|
236
|
+
export * from './useOrgMembershipDefaultsQuery';
|
|
237
|
+
export * from './useOrgMembershipDefaultQuery';
|
|
238
|
+
export * from './useAppLimitEventsQuery';
|
|
239
|
+
export * from './useOrgLimitEventsQuery';
|
|
240
|
+
export * from './usePlansModulesQuery';
|
|
241
|
+
export * from './usePlansModuleQuery';
|
|
228
242
|
export * from './useRlsModulesQuery';
|
|
229
243
|
export * from './useRlsModuleQuery';
|
|
230
244
|
export * from './useSqlActionsQuery';
|
|
231
245
|
export * from './useSqlActionQuery';
|
|
232
|
-
export * from './
|
|
233
|
-
export * from './
|
|
234
|
-
export * from './useUsersQuery';
|
|
235
|
-
export * from './useUserQuery';
|
|
246
|
+
export * from './useBillingModulesQuery';
|
|
247
|
+
export * from './useBillingModuleQuery';
|
|
236
248
|
export * from './useAstMigrationsQuery';
|
|
237
249
|
export * from './useAstMigrationQuery';
|
|
250
|
+
export * from './useUsersQuery';
|
|
251
|
+
export * from './useUserQuery';
|
|
252
|
+
export * from './useOrgMembershipSettingsQuery';
|
|
253
|
+
export * from './useOrgMembershipSettingQuery';
|
|
238
254
|
export * from './useAppMembershipsQuery';
|
|
239
255
|
export * from './useAppMembershipQuery';
|
|
240
256
|
export * from './useHierarchyModulesQuery';
|
|
@@ -254,10 +270,10 @@ export * from './useOrgPermissionsGetMaskQuery';
|
|
|
254
270
|
export * from './useResolveBlueprintTableQuery';
|
|
255
271
|
export * from './useAppPermissionsGetMaskByNamesQuery';
|
|
256
272
|
export * from './useOrgPermissionsGetMaskByNamesQuery';
|
|
273
|
+
export * from './useAppPermissionsGetByMaskQuery';
|
|
274
|
+
export * from './useOrgPermissionsGetByMaskQuery';
|
|
257
275
|
export * from './useGetAllObjectsFromRootQuery';
|
|
258
276
|
export * from './useGetPathObjectsFromRootQuery';
|
|
259
277
|
export * from './useGetObjectAtPathQuery';
|
|
260
|
-
export * from './useAppPermissionsGetByMaskQuery';
|
|
261
|
-
export * from './useOrgPermissionsGetByMaskQuery';
|
|
262
278
|
export * from './useStepsRequiredQuery';
|
|
263
279
|
export * from './useCurrentUserQuery';
|
|
@@ -22,12 +22,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
22
22
|
__exportStar(require("./useOrgGetManagersQuery"), exports);
|
|
23
23
|
__exportStar(require("./useOrgGetSubordinatesQuery"), exports);
|
|
24
24
|
__exportStar(require("./useGetAllQuery"), exports);
|
|
25
|
-
__exportStar(require("./useObjectsQuery"), exports);
|
|
26
|
-
__exportStar(require("./useObjectQuery"), exports);
|
|
27
25
|
__exportStar(require("./useAppPermissionsQuery"), exports);
|
|
28
26
|
__exportStar(require("./useAppPermissionQuery"), exports);
|
|
29
27
|
__exportStar(require("./useOrgPermissionsQuery"), exports);
|
|
30
28
|
__exportStar(require("./useOrgPermissionQuery"), exports);
|
|
29
|
+
__exportStar(require("./useObjectsQuery"), exports);
|
|
30
|
+
__exportStar(require("./useObjectQuery"), exports);
|
|
31
31
|
__exportStar(require("./useAppLevelRequirementsQuery"), exports);
|
|
32
32
|
__exportStar(require("./useAppLevelRequirementQuery"), exports);
|
|
33
33
|
__exportStar(require("./useDatabasesQuery"), exports);
|
|
@@ -188,6 +188,8 @@ __exportStar(require("./useAppLimitsQuery"), exports);
|
|
|
188
188
|
__exportStar(require("./useAppLimitQuery"), exports);
|
|
189
189
|
__exportStar(require("./useOrgLimitsQuery"), exports);
|
|
190
190
|
__exportStar(require("./useOrgLimitQuery"), exports);
|
|
191
|
+
__exportStar(require("./useOrgLimitAggregatesQuery"), exports);
|
|
192
|
+
__exportStar(require("./useOrgLimitAggregateQuery"), exports);
|
|
191
193
|
__exportStar(require("./useAppStepsQuery"), exports);
|
|
192
194
|
__exportStar(require("./useAppStepQuery"), exports);
|
|
193
195
|
__exportStar(require("./useAppAchievementsQuery"), exports);
|
|
@@ -212,45 +214,59 @@ __exportStar(require("./useOrgClaimedInvitesQuery"), exports);
|
|
|
212
214
|
__exportStar(require("./useOrgClaimedInviteQuery"), exports);
|
|
213
215
|
__exportStar(require("./useAuditLogsQuery"), exports);
|
|
214
216
|
__exportStar(require("./useAuditLogQuery"), exports);
|
|
215
|
-
__exportStar(require("./
|
|
216
|
-
__exportStar(require("./
|
|
217
|
+
__exportStar(require("./useAgentThreadsQuery"), exports);
|
|
218
|
+
__exportStar(require("./useAgentThreadQuery"), exports);
|
|
219
|
+
__exportStar(require("./useAgentMessagesQuery"), exports);
|
|
220
|
+
__exportStar(require("./useAgentMessageQuery"), exports);
|
|
221
|
+
__exportStar(require("./useAgentTasksQuery"), exports);
|
|
222
|
+
__exportStar(require("./useAgentTaskQuery"), exports);
|
|
223
|
+
__exportStar(require("./useRoleTypesQuery"), exports);
|
|
224
|
+
__exportStar(require("./useRoleTypeQuery"), exports);
|
|
217
225
|
__exportStar(require("./useIdentityProvidersQuery"), exports);
|
|
218
226
|
__exportStar(require("./useRefsQuery"), exports);
|
|
219
227
|
__exportStar(require("./useRefQuery"), exports);
|
|
220
228
|
__exportStar(require("./useStoresQuery"), exports);
|
|
221
229
|
__exportStar(require("./useStoreQuery"), exports);
|
|
222
|
-
__exportStar(require("./
|
|
223
|
-
__exportStar(require("./
|
|
230
|
+
__exportStar(require("./useAppPermissionDefaultsQuery"), exports);
|
|
231
|
+
__exportStar(require("./useAppPermissionDefaultQuery"), exports);
|
|
232
|
+
__exportStar(require("./useMembershipTypesQuery"), exports);
|
|
233
|
+
__exportStar(require("./useMembershipTypeQuery"), exports);
|
|
224
234
|
__exportStar(require("./useMigrateFilesQuery"), exports);
|
|
225
235
|
__exportStar(require("./useMigrateFileQuery"), exports);
|
|
236
|
+
__exportStar(require("./useDevicesModulesQuery"), exports);
|
|
237
|
+
__exportStar(require("./useDevicesModuleQuery"), exports);
|
|
238
|
+
__exportStar(require("./useNodeTypeRegistriesQuery"), exports);
|
|
239
|
+
__exportStar(require("./useNodeTypeRegistryQuery"), exports);
|
|
226
240
|
__exportStar(require("./useAppLimitDefaultsQuery"), exports);
|
|
227
241
|
__exportStar(require("./useAppLimitDefaultQuery"), exports);
|
|
228
242
|
__exportStar(require("./useOrgLimitDefaultsQuery"), exports);
|
|
229
243
|
__exportStar(require("./useOrgLimitDefaultQuery"), exports);
|
|
230
|
-
__exportStar(require("./useDevicesModulesQuery"), exports);
|
|
231
|
-
__exportStar(require("./useDevicesModuleQuery"), exports);
|
|
232
244
|
__exportStar(require("./useUserConnectedAccountsQuery"), exports);
|
|
233
245
|
__exportStar(require("./useUserConnectedAccountQuery"), exports);
|
|
234
|
-
__exportStar(require("./useAppMembershipDefaultsQuery"), exports);
|
|
235
|
-
__exportStar(require("./useAppMembershipDefaultQuery"), exports);
|
|
236
|
-
__exportStar(require("./useOrgMembershipDefaultsQuery"), exports);
|
|
237
|
-
__exportStar(require("./useOrgMembershipDefaultQuery"), exports);
|
|
238
246
|
__exportStar(require("./useCommitsQuery"), exports);
|
|
239
247
|
__exportStar(require("./useCommitQuery"), exports);
|
|
240
248
|
__exportStar(require("./useRateLimitsModulesQuery"), exports);
|
|
241
249
|
__exportStar(require("./useRateLimitsModuleQuery"), exports);
|
|
242
|
-
__exportStar(require("./
|
|
243
|
-
__exportStar(require("./
|
|
250
|
+
__exportStar(require("./useAppMembershipDefaultsQuery"), exports);
|
|
251
|
+
__exportStar(require("./useAppMembershipDefaultQuery"), exports);
|
|
252
|
+
__exportStar(require("./useOrgMembershipDefaultsQuery"), exports);
|
|
253
|
+
__exportStar(require("./useOrgMembershipDefaultQuery"), exports);
|
|
254
|
+
__exportStar(require("./useAppLimitEventsQuery"), exports);
|
|
255
|
+
__exportStar(require("./useOrgLimitEventsQuery"), exports);
|
|
256
|
+
__exportStar(require("./usePlansModulesQuery"), exports);
|
|
257
|
+
__exportStar(require("./usePlansModuleQuery"), exports);
|
|
244
258
|
__exportStar(require("./useRlsModulesQuery"), exports);
|
|
245
259
|
__exportStar(require("./useRlsModuleQuery"), exports);
|
|
246
260
|
__exportStar(require("./useSqlActionsQuery"), exports);
|
|
247
261
|
__exportStar(require("./useSqlActionQuery"), exports);
|
|
248
|
-
__exportStar(require("./
|
|
249
|
-
__exportStar(require("./
|
|
250
|
-
__exportStar(require("./useUsersQuery"), exports);
|
|
251
|
-
__exportStar(require("./useUserQuery"), exports);
|
|
262
|
+
__exportStar(require("./useBillingModulesQuery"), exports);
|
|
263
|
+
__exportStar(require("./useBillingModuleQuery"), exports);
|
|
252
264
|
__exportStar(require("./useAstMigrationsQuery"), exports);
|
|
253
265
|
__exportStar(require("./useAstMigrationQuery"), exports);
|
|
266
|
+
__exportStar(require("./useUsersQuery"), exports);
|
|
267
|
+
__exportStar(require("./useUserQuery"), exports);
|
|
268
|
+
__exportStar(require("./useOrgMembershipSettingsQuery"), exports);
|
|
269
|
+
__exportStar(require("./useOrgMembershipSettingQuery"), exports);
|
|
254
270
|
__exportStar(require("./useAppMembershipsQuery"), exports);
|
|
255
271
|
__exportStar(require("./useAppMembershipQuery"), exports);
|
|
256
272
|
__exportStar(require("./useHierarchyModulesQuery"), exports);
|
|
@@ -270,10 +286,10 @@ __exportStar(require("./useOrgPermissionsGetMaskQuery"), exports);
|
|
|
270
286
|
__exportStar(require("./useResolveBlueprintTableQuery"), exports);
|
|
271
287
|
__exportStar(require("./useAppPermissionsGetMaskByNamesQuery"), exports);
|
|
272
288
|
__exportStar(require("./useOrgPermissionsGetMaskByNamesQuery"), exports);
|
|
289
|
+
__exportStar(require("./useAppPermissionsGetByMaskQuery"), exports);
|
|
290
|
+
__exportStar(require("./useOrgPermissionsGetByMaskQuery"), exports);
|
|
273
291
|
__exportStar(require("./useGetAllObjectsFromRootQuery"), exports);
|
|
274
292
|
__exportStar(require("./useGetPathObjectsFromRootQuery"), exports);
|
|
275
293
|
__exportStar(require("./useGetObjectAtPathQuery"), exports);
|
|
276
|
-
__exportStar(require("./useAppPermissionsGetByMaskQuery"), exports);
|
|
277
|
-
__exportStar(require("./useOrgPermissionsGetByMaskQuery"), exports);
|
|
278
294
|
__exportStar(require("./useStepsRequiredQuery"), exports);
|
|
279
295
|
__exportStar(require("./useCurrentUserQuery"), exports);
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const agentMessageQueryKey: (id: string | number) => readonly ["agentmessage", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAgentMessageQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAgentMessageQuery<S extends AgentMessageSelect, TData = {
|
|
24
|
+
agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAgentMessageQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAgentMessageQuery<S extends AgentMessageSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
agentMessage: InferSelectResult<AgentMessageWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAgentMessageQuery<S extends AgentMessageSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.agentMessageQueryKey = void 0;
|
|
9
|
+
exports.useAgentMessageQuery = useAgentMessageQuery;
|
|
10
|
+
exports.fetchAgentMessageQuery = fetchAgentMessageQuery;
|
|
11
|
+
exports.prefetchAgentMessageQuery = prefetchAgentMessageQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.agentMessageQueryKey = query_keys_1.agentMessageKeys.detail;
|
|
18
|
+
function useAgentMessageQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.agentMessageKeys.detail(params.id),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)()
|
|
25
|
+
.agentMessage.findOne({
|
|
26
|
+
id: params.id,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
...queryOptions,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function fetchAgentMessageQuery(params) {
|
|
34
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
+
return (0, client_1.getClient)()
|
|
36
|
+
.agentMessage.findOne({
|
|
37
|
+
id: params.id,
|
|
38
|
+
select: args.select,
|
|
39
|
+
})
|
|
40
|
+
.unwrap();
|
|
41
|
+
}
|
|
42
|
+
async function prefetchAgentMessageQuery(queryClient, params) {
|
|
43
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
+
await queryClient.prefetchQuery({
|
|
45
|
+
queryKey: query_keys_1.agentMessageKeys.detail(params.id),
|
|
46
|
+
queryFn: () => (0, client_1.getClient)()
|
|
47
|
+
.agentMessage.findOne({
|
|
48
|
+
id: params.id,
|
|
49
|
+
select: args.select,
|
|
50
|
+
})
|
|
51
|
+
.unwrap(),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { AgentMessageSelect, AgentMessageWithRelations, AgentMessageFilter, AgentMessageOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AgentMessageSelect, AgentMessageWithRelations, AgentMessageFilter, AgentMessageOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const agentMessagesQueryKey: (variables?: object) => readonly ["agentmessage", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAgentMessagesQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAgentMessagesQuery<S extends AgentMessageSelect, TData = {
|
|
29
|
+
agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAgentMessagesQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAgentMessagesQuery<S extends AgentMessageSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
agentMessages: ConnectionResult<InferSelectResult<AgentMessageWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAgentMessagesQuery<S extends AgentMessageSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AgentMessageFilter, AgentMessageOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentMessageSelect>;
|
|
69
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* A single message in an agent_thread. The full client-rendered content (TextPart and ToolPart, including the ToolPart state machine and inline approval object) lives in the `parts` jsonb column — there is no separate agent_tool_call or agent_tool_approval table in v1. Cascade-deleted with the parent thread; RLS is owner-only.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.agentMessagesQueryKey = void 0;
|
|
9
|
+
exports.useAgentMessagesQuery = useAgentMessagesQuery;
|
|
10
|
+
exports.fetchAgentMessagesQuery = fetchAgentMessagesQuery;
|
|
11
|
+
exports.prefetchAgentMessagesQuery = prefetchAgentMessagesQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.agentMessagesQueryKey = query_keys_1.agentMessageKeys.list;
|
|
18
|
+
function useAgentMessagesQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.agentMessageKeys.list(args),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)().agentMessage.findMany(args).unwrap(),
|
|
25
|
+
...queryOptions,
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
async function fetchAgentMessagesQuery(params) {
|
|
29
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
30
|
+
return (0, client_1.getClient)().agentMessage.findMany(args).unwrap();
|
|
31
|
+
}
|
|
32
|
+
async function prefetchAgentMessagesQuery(queryClient, params) {
|
|
33
|
+
const args = (0, selection_1.buildListSelectionArgs)(params.selection);
|
|
34
|
+
await queryClient.prefetchQuery({
|
|
35
|
+
queryKey: query_keys_1.agentMessageKeys.list(args),
|
|
36
|
+
queryFn: () => (0, client_1.getClient)().agentMessage.findMany(args).unwrap(),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types';
|
|
8
|
+
import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types';
|
|
9
|
+
export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types';
|
|
10
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
11
|
+
export declare const agentTaskQueryKey: (id: string | number) => readonly ["agenttask", "detail", string | number];
|
|
12
|
+
/**
|
|
13
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* const { data, isLoading } = useAgentTaskQuery({
|
|
18
|
+
* id: 'some-id',
|
|
19
|
+
* selection: { fields: { id: true, name: true } },
|
|
20
|
+
* });
|
|
21
|
+
* ```
|
|
22
|
+
*/
|
|
23
|
+
export declare function useAgentTaskQuery<S extends AgentTaskSelect, TData = {
|
|
24
|
+
agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
|
|
25
|
+
}>(params: {
|
|
26
|
+
id: string;
|
|
27
|
+
selection: {
|
|
28
|
+
fields: S;
|
|
29
|
+
} & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
30
|
+
} & Omit<UseQueryOptions<{
|
|
31
|
+
agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
|
|
32
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
33
|
+
/**
|
|
34
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```ts
|
|
38
|
+
* const data = await fetchAgentTaskQuery({
|
|
39
|
+
* id: 'some-id',
|
|
40
|
+
* selection: { fields: { id: true } },
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
export declare function fetchAgentTaskQuery<S extends AgentTaskSelect>(params: {
|
|
45
|
+
id: string;
|
|
46
|
+
selection: {
|
|
47
|
+
fields: S;
|
|
48
|
+
} & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
49
|
+
}): Promise<{
|
|
50
|
+
agentTask: InferSelectResult<AgentTaskWithRelations, S> | null;
|
|
51
|
+
}>;
|
|
52
|
+
/**
|
|
53
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
54
|
+
*
|
|
55
|
+
* @example
|
|
56
|
+
* ```ts
|
|
57
|
+
* await prefetchAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } });
|
|
58
|
+
* ```
|
|
59
|
+
*/
|
|
60
|
+
export declare function prefetchAgentTaskQuery<S extends AgentTaskSelect>(queryClient: QueryClient, params: {
|
|
61
|
+
id: string;
|
|
62
|
+
selection: {
|
|
63
|
+
fields: S;
|
|
64
|
+
} & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
65
|
+
}): Promise<void>;
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
4
|
+
* @generated by @constructive-io/graphql-codegen
|
|
5
|
+
* DO NOT EDIT - changes will be overwritten
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.agentTaskQueryKey = void 0;
|
|
9
|
+
exports.useAgentTaskQuery = useAgentTaskQuery;
|
|
10
|
+
exports.fetchAgentTaskQuery = fetchAgentTaskQuery;
|
|
11
|
+
exports.prefetchAgentTaskQuery = prefetchAgentTaskQuery;
|
|
12
|
+
const react_query_1 = require("@tanstack/react-query");
|
|
13
|
+
const client_1 = require("../client");
|
|
14
|
+
const selection_1 = require("../selection");
|
|
15
|
+
const query_keys_1 = require("../query-keys");
|
|
16
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
17
|
+
exports.agentTaskQueryKey = query_keys_1.agentTaskKeys.detail;
|
|
18
|
+
function useAgentTaskQuery(params) {
|
|
19
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
20
|
+
const { selection: _selection, ...queryOptions } = params ?? {};
|
|
21
|
+
void _selection;
|
|
22
|
+
return (0, react_query_1.useQuery)({
|
|
23
|
+
queryKey: query_keys_1.agentTaskKeys.detail(params.id),
|
|
24
|
+
queryFn: () => (0, client_1.getClient)()
|
|
25
|
+
.agentTask.findOne({
|
|
26
|
+
id: params.id,
|
|
27
|
+
select: args.select,
|
|
28
|
+
})
|
|
29
|
+
.unwrap(),
|
|
30
|
+
...queryOptions,
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
async function fetchAgentTaskQuery(params) {
|
|
34
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
35
|
+
return (0, client_1.getClient)()
|
|
36
|
+
.agentTask.findOne({
|
|
37
|
+
id: params.id,
|
|
38
|
+
select: args.select,
|
|
39
|
+
})
|
|
40
|
+
.unwrap();
|
|
41
|
+
}
|
|
42
|
+
async function prefetchAgentTaskQuery(queryClient, params) {
|
|
43
|
+
const args = (0, selection_1.buildSelectionArgs)(params.selection);
|
|
44
|
+
await queryClient.prefetchQuery({
|
|
45
|
+
queryKey: query_keys_1.agentTaskKeys.detail(params.id),
|
|
46
|
+
queryFn: () => (0, client_1.getClient)()
|
|
47
|
+
.agentTask.findOne({
|
|
48
|
+
id: params.id,
|
|
49
|
+
select: args.select,
|
|
50
|
+
})
|
|
51
|
+
.unwrap(),
|
|
52
|
+
});
|
|
53
|
+
}
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
3
|
+
* @generated by @constructive-io/graphql-codegen
|
|
4
|
+
* DO NOT EDIT - changes will be overwritten
|
|
5
|
+
*/
|
|
6
|
+
import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query';
|
|
7
|
+
import type { ListSelectionConfig } from '../selection';
|
|
8
|
+
import type { AgentTaskSelect, AgentTaskWithRelations, AgentTaskFilter, AgentTaskOrderBy } from '../../orm/input-types';
|
|
9
|
+
import type { InferSelectResult, ConnectionResult, HookStrictSelect } from '../../orm/select-types';
|
|
10
|
+
export type { AgentTaskSelect, AgentTaskWithRelations, AgentTaskFilter, AgentTaskOrderBy, } from '../../orm/input-types';
|
|
11
|
+
/** Query key factory - re-exported from query-keys.ts */
|
|
12
|
+
export declare const agentTasksQueryKey: (variables?: object) => readonly ["agenttask", "list", object];
|
|
13
|
+
/**
|
|
14
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
15
|
+
*
|
|
16
|
+
* @example
|
|
17
|
+
* ```tsx
|
|
18
|
+
* const { data, isLoading } = useAgentTasksQuery({
|
|
19
|
+
* selection: {
|
|
20
|
+
* fields: { id: true, name: true },
|
|
21
|
+
* where: { name: { equalTo: "example" } },
|
|
22
|
+
* orderBy: ['CREATED_AT_DESC'],
|
|
23
|
+
* first: 10,
|
|
24
|
+
* },
|
|
25
|
+
* });
|
|
26
|
+
* ```
|
|
27
|
+
*/
|
|
28
|
+
export declare function useAgentTasksQuery<S extends AgentTaskSelect, TData = {
|
|
29
|
+
agentTasks: ConnectionResult<InferSelectResult<AgentTaskWithRelations, S>>;
|
|
30
|
+
}>(params: {
|
|
31
|
+
selection: {
|
|
32
|
+
fields: S;
|
|
33
|
+
} & Omit<ListSelectionConfig<S, AgentTaskFilter, AgentTaskOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
34
|
+
} & Omit<UseQueryOptions<{
|
|
35
|
+
agentTasks: ConnectionResult<InferSelectResult<AgentTaskWithRelations, S>>;
|
|
36
|
+
}, Error, TData>, 'queryKey' | 'queryFn'>): UseQueryResult<TData>;
|
|
37
|
+
/**
|
|
38
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
39
|
+
*
|
|
40
|
+
* @example
|
|
41
|
+
* ```ts
|
|
42
|
+
* const data = await fetchAgentTasksQuery({
|
|
43
|
+
* selection: {
|
|
44
|
+
* fields: { id: true },
|
|
45
|
+
* first: 10,
|
|
46
|
+
* },
|
|
47
|
+
* });
|
|
48
|
+
* ```
|
|
49
|
+
*/
|
|
50
|
+
export declare function fetchAgentTasksQuery<S extends AgentTaskSelect>(params: {
|
|
51
|
+
selection: {
|
|
52
|
+
fields: S;
|
|
53
|
+
} & Omit<ListSelectionConfig<S, AgentTaskFilter, AgentTaskOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
agentTasks: ConnectionResult<InferSelectResult<AgentTaskWithRelations, S>>;
|
|
56
|
+
}>;
|
|
57
|
+
/**
|
|
58
|
+
* An agent- or user-authored todo item attached to an agent_thread. Captures the planning surface for agent-mode conversations: each row is a single discrete unit of work with a status lifecycle (pending → in-progress → done|failed). Cascade-deleted with the parent thread; RLS is owner-only.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* ```ts
|
|
62
|
+
* await prefetchAgentTasksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } });
|
|
63
|
+
* ```
|
|
64
|
+
*/
|
|
65
|
+
export declare function prefetchAgentTasksQuery<S extends AgentTaskSelect>(queryClient: QueryClient, params: {
|
|
66
|
+
selection: {
|
|
67
|
+
fields: S;
|
|
68
|
+
} & Omit<ListSelectionConfig<S, AgentTaskFilter, AgentTaskOrderBy>, 'fields'> & HookStrictSelect<NoInfer<S>, AgentTaskSelect>;
|
|
69
|
+
}): Promise<void>;
|