From 2a5f72c380ee684d81d597b75ec902a9cb104e5a Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Tue, 5 May 2026 09:17:52 +0000 Subject: [PATCH] chore: update schemas and regenerate all SDK clients Auto-generated by schema-propagation workflow. Source: constructive-db@465148962b --- .agents/skills/cli-admin/SKILL.md | 26 +- .../skills/cli-admin/references/app-invite.md | 6 +- .../cli-admin/references/app-limit-default.md | 6 +- .../cli-admin/references/app-limit-event.md | 68 + .../skills/cli-admin/references/app-limit.md | 6 +- .../cli-admin/references/app-membership.md | 6 +- .../skills/cli-admin/references/org-invite.md | 6 +- .../references/org-limit-aggregate.md | 68 + .../cli-admin/references/org-limit-default.md | 6 +- .../cli-admin/references/org-limit-event.md | 68 + .../skills/cli-admin/references/org-limit.md | 6 +- .../references/org-membership-setting.md | 6 +- .agents/skills/cli-auth/SKILL.md | 5 +- .agents/skills/cli-objects/SKILL.md | 5 +- .agents/skills/cli-public/SKILL.md | 40 +- .../cli-public/references/agent-message.md | 68 + .../cli-public/references/agent-task.md | 68 + .../cli-public/references/agent-thread.md | 68 + .../cli-public/references/app-invite.md | 6 +- .../references/app-limit-default.md | 6 +- .../cli-public/references/app-limit-event.md | 68 + .../skills/cli-public/references/app-limit.md | 6 +- .../cli-public/references/app-membership.md | 6 +- .../cli-public/references/billing-module.md | 68 + .../cli-public/references/limits-module.md | 6 +- .../references/node-type-registry.md | 6 +- .../cli-public/references/org-invite.md | 6 +- .../references/org-limit-aggregate.md | 68 + .../references/org-limit-default.md | 6 +- .../cli-public/references/org-limit-event.md | 68 + .../skills/cli-public/references/org-limit.md | 6 +- .../references/org-membership-setting.md | 6 +- .../cli-public/references/plans-module.md | 68 + .../cli-public/references/profiles-module.md | 6 +- .../cli-public/references/storage-module.md | 6 +- .agents/skills/hooks-admin/SKILL.md | 26 +- .../hooks-admin/references/app-invite.md | 8 +- .../references/app-limit-default.md | 8 +- .../hooks-admin/references/app-limit-event.md | 31 + .../hooks-admin/references/app-limit.md | 8 +- .../hooks-admin/references/app-membership.md | 8 +- .../hooks-admin/references/org-invite.md | 8 +- .../references/org-limit-aggregate.md | 34 + .../references/org-limit-default.md | 8 +- .../hooks-admin/references/org-limit-event.md | 31 + .../hooks-admin/references/org-limit.md | 8 +- .../references/org-membership-setting.md | 8 +- .agents/skills/hooks-auth/SKILL.md | 5 +- .agents/skills/hooks-objects/SKILL.md | 5 +- .agents/skills/hooks-public/SKILL.md | 40 +- .../hooks-public/references/agent-message.md | 34 + .../hooks-public/references/agent-task.md | 34 + .../hooks-public/references/agent-thread.md | 34 + .../hooks-public/references/app-invite.md | 8 +- .../references/app-limit-default.md | 8 +- .../references/app-limit-event.md | 31 + .../hooks-public/references/app-limit.md | 8 +- .../hooks-public/references/app-membership.md | 8 +- .../hooks-public/references/billing-module.md | 34 + .../hooks-public/references/limits-module.md | 8 +- .../references/node-type-registry.md | 10 +- .../hooks-public/references/org-invite.md | 8 +- .../references/org-limit-aggregate.md | 34 + .../references/org-limit-default.md | 8 +- .../references/org-limit-event.md | 31 + .../hooks-public/references/org-limit.md | 8 +- .../references/org-membership-setting.md | 8 +- .../hooks-public/references/plans-module.md | 34 + .../references/profiles-module.md | 8 +- .../hooks-public/references/storage-module.md | 8 +- .agents/skills/orm-admin/SKILL.md | 26 +- .../skills/orm-admin/references/app-invite.md | 4 +- .../orm-admin/references/app-limit-default.md | 4 +- .../orm-admin/references/app-limit-event.md | 34 + .../skills/orm-admin/references/app-limit.md | 4 +- .../orm-admin/references/app-membership.md | 4 +- .../skills/orm-admin/references/org-invite.md | 4 +- .../references/org-limit-aggregate.md | 34 + .../orm-admin/references/org-limit-default.md | 4 +- .../orm-admin/references/org-limit-event.md | 34 + .../skills/orm-admin/references/org-limit.md | 4 +- .../references/org-membership-setting.md | 4 +- .agents/skills/orm-auth/SKILL.md | 5 +- .agents/skills/orm-objects/SKILL.md | 5 +- .agents/skills/orm-public/SKILL.md | 42 +- .../orm-public/references/agent-message.md | 34 + .../orm-public/references/agent-task.md | 34 + .../orm-public/references/agent-thread.md | 34 + .../orm-public/references/app-invite.md | 4 +- .../references/app-limit-default.md | 4 +- .../orm-public/references/app-limit-event.md | 34 + .../skills/orm-public/references/app-limit.md | 4 +- .../orm-public/references/app-membership.md | 4 +- .../orm-public/references/billing-module.md | 34 + .../orm-public/references/limits-module.md | 4 +- .../references/node-type-registry.md | 6 +- .../orm-public/references/org-invite.md | 4 +- .../references/org-limit-aggregate.md | 34 + .../references/org-limit-default.md | 4 +- .../orm-public/references/org-limit-event.md | 34 + .../skills/orm-public/references/org-limit.md | 4 +- .../references/org-membership-setting.md | 4 +- .../orm-public/references/plans-module.md | 34 + .../orm-public/references/profiles-module.md | 4 +- .../orm-public/references/storage-module.md | 4 +- sdk/constructive-cli/src/admin/README.md | 4 +- sdk/constructive-cli/src/admin/cli/README.md | 439 +- .../src/admin/cli/commands.ts | 46 +- .../src/admin/cli/commands/app-invite.ts | 22 + .../admin/cli/commands/app-limit-default.ts | 22 + .../src/admin/cli/commands/app-limit-event.ts | 236 + .../src/admin/cli/commands/app-limit.ts | 66 + .../src/admin/cli/commands/app-membership.ts | 22 - .../src/admin/cli/commands/confirm-upload.ts | 53 - .../src/admin/cli/commands/org-invite.ts | 22 + .../admin/cli/commands/org-limit-aggregate.ts | 383 + .../admin/cli/commands/org-limit-default.ts | 22 + .../src/admin/cli/commands/org-limit-event.ts | 236 + .../src/admin/cli/commands/org-limit.ts | 66 + .../cli/commands/org-membership-setting.ts | 44 + sdk/constructive-cli/src/admin/orm/README.md | 485 +- sdk/constructive-cli/src/admin/orm/index.ts | 42 +- .../src/admin/orm/input-types.ts | 2358 ++- .../src/admin/orm/models/appLimitEvent.ts | 127 + .../src/admin/orm/models/index.ts | 21 +- .../src/admin/orm/models/orgLimitAggregate.ts | 237 + .../src/admin/orm/models/orgLimitEvent.ts | 127 + .../src/admin/orm/mutation/index.ts | 41 - sdk/constructive-cli/src/auth/README.md | 2 +- sdk/constructive-cli/src/auth/cli/README.md | 16 - sdk/constructive-cli/src/auth/cli/commands.ts | 4 +- .../src/auth/cli/commands/confirm-upload.ts | 53 - sdk/constructive-cli/src/auth/orm/README.md | 17 - .../src/auth/orm/input-types.ts | 20 - .../src/auth/orm/mutation/index.ts | 41 - sdk/constructive-cli/src/objects/README.md | 2 +- .../src/objects/cli/README.md | 16 - .../src/objects/cli/commands.ts | 4 +- .../objects/cli/commands/confirm-upload.ts | 53 - .../src/objects/orm/README.md | 17 - .../src/objects/orm/input-types.ts | 20 - .../src/objects/orm/mutation/index.ts | 41 - sdk/constructive-cli/src/public/README.md | 4 +- sdk/constructive-cli/src/public/cli/README.md | 827 +- .../src/public/cli/commands.ts | 74 +- .../src/public/cli/commands/agent-message.ts | 347 + .../src/public/cli/commands/agent-task.ts | 388 + .../src/public/cli/commands/agent-thread.ts | 395 + .../src/public/cli/commands/app-invite.ts | 22 + .../public/cli/commands/app-limit-default.ts | 22 + .../public/cli/commands/app-limit-event.ts | 236 + .../src/public/cli/commands/app-limit.ts | 66 + .../src/public/cli/commands/app-membership.ts | 22 - .../src/public/cli/commands/billing-module.ts | 515 + .../src/public/cli/commands/confirm-upload.ts | 53 - .../src/public/cli/commands/limits-module.ts | 22 + .../public/cli/commands/node-type-registry.ts | 366 + .../src/public/cli/commands/org-invite.ts | 22 + .../cli/commands/org-limit-aggregate.ts | 383 + .../public/cli/commands/org-limit-default.ts | 22 + .../public/cli/commands/org-limit-event.ts | 236 + .../src/public/cli/commands/org-limit.ts | 66 + .../cli/commands/org-membership-setting.ts | 44 + .../src/public/cli/commands/plans-module.ts | 449 + .../public/cli/commands/profiles-module.ts | 44 + .../src/public/cli/commands/storage-module.ts | 66 +- sdk/constructive-cli/src/public/orm/README.md | 999 +- sdk/constructive-cli/src/public/orm/index.ts | 54 +- .../src/public/orm/input-types.ts | 4468 ++-- .../src/public/orm/models/agentMessage.ts | 237 + .../src/public/orm/models/agentTask.ts | 237 + .../src/public/orm/models/agentThread.ts | 237 + .../src/public/orm/models/appLimitEvent.ts | 127 + .../src/public/orm/models/billingModule.ts | 237 + .../src/public/orm/models/index.ts | 27 +- .../src/public/orm/models/nodeTypeRegistry.ts | 237 + .../public/orm/models/orgLimitAggregate.ts | 237 + .../src/public/orm/models/orgLimitEvent.ts | 127 + .../src/public/orm/models/plansModule.ts | 237 + .../src/public/orm/mutation/index.ts | 181 +- .../src/public/orm/query/index.ts | 190 +- sdk/constructive-react/src/admin/README.md | 4 +- .../src/admin/hooks/README.md | 410 +- .../src/admin/hooks/index.ts | 2 +- .../src/admin/hooks/invalidation.ts | 320 +- .../src/admin/hooks/mutation-keys.ts | 194 +- .../src/admin/hooks/mutations/index.ts | 60 +- .../mutations/useConfirmUploadMutation.ts | 55 - .../useCreateAppLimitEventMutation.ts | 88 + .../useCreateOrgLimitAggregateMutation.ts | 91 + .../useCreateOrgLimitEventMutation.ts | 88 + .../useDeleteOrgLimitAggregateMutation.ts | 104 + .../useUpdateOrgLimitAggregateMutation.ts | 116 + .../src/admin/hooks/queries/index.ts | 40 +- .../hooks/queries/useAppLimitEventsQuery.ts | 151 + .../queries/useOrgLimitAggregateQuery.ts | 144 + .../queries/useOrgLimitAggregatesQuery.ts | 163 + .../hooks/queries/useOrgLimitEventsQuery.ts | 151 + .../src/admin/hooks/query-keys.ts | 168 +- .../src/admin/orm/README.md | 485 +- sdk/constructive-react/src/admin/orm/index.ts | 42 +- .../src/admin/orm/input-types.ts | 2358 ++- .../src/admin/orm/models/appLimitEvent.ts | 127 + .../src/admin/orm/models/index.ts | 21 +- .../src/admin/orm/models/orgLimitAggregate.ts | 237 + .../src/admin/orm/models/orgLimitEvent.ts | 127 + .../src/admin/orm/mutation/index.ts | 41 - .../src/admin/schema-types.ts | 2353 ++- sdk/constructive-react/src/admin/types.ts | 149 +- sdk/constructive-react/src/auth/README.md | 2 +- .../src/auth/hooks/README.md | 16 - .../src/auth/hooks/mutation-keys.ts | 4 - .../src/auth/hooks/mutations/index.ts | 1 - .../mutations/useConfirmUploadMutation.ts | 55 - sdk/constructive-react/src/auth/orm/README.md | 17 - .../src/auth/orm/input-types.ts | 20 - .../src/auth/orm/mutation/index.ts | 41 - .../src/auth/schema-types.ts | 14 - sdk/constructive-react/src/objects/README.md | 2 +- .../src/objects/hooks/README.md | 16 - .../src/objects/hooks/mutation-keys.ts | 4 - .../src/objects/hooks/mutations/index.ts | 1 - .../mutations/useConfirmUploadMutation.ts | 55 - .../src/objects/orm/README.md | 17 - .../src/objects/orm/input-types.ts | 20 - .../src/objects/orm/mutation/index.ts | 41 - .../src/objects/schema-types.ts | 14 - sdk/constructive-react/src/public/README.md | 4 +- .../src/public/hooks/README.md | 720 +- .../src/public/hooks/index.ts | 2 +- .../src/public/hooks/invalidation.ts | 449 +- .../src/public/hooks/mutation-keys.ts | 273 +- .../src/public/hooks/mutations/index.ts | 78 +- .../mutations/useConfirmUploadMutation.ts | 55 - .../useCreateAgentMessageMutation.ts | 88 + .../mutations/useCreateAgentTaskMutation.ts | 88 + .../mutations/useCreateAgentThreadMutation.ts | 88 + .../useCreateAppLimitEventMutation.ts | 88 + .../useCreateBillingModuleMutation.ts | 88 + .../useCreateNodeTypeRegistryMutation.ts | 91 + .../useCreateOrgLimitAggregateMutation.ts | 91 + .../useCreateOrgLimitEventMutation.ts | 88 + .../mutations/useCreatePlansModuleMutation.ts | 88 + .../useDeleteAgentMessageMutation.ts | 98 + .../mutations/useDeleteAgentTaskMutation.ts | 98 + .../mutations/useDeleteAgentThreadMutation.ts | 98 + .../useDeleteBillingModuleMutation.ts | 98 + .../useDeleteNodeTypeRegistryMutation.ts | 98 + .../useDeleteOrgLimitAggregateMutation.ts | 104 + .../mutations/useDeletePlansModuleMutation.ts | 98 + .../useUpdateAgentMessageMutation.ts | 110 + .../mutations/useUpdateAgentTaskMutation.ts | 110 + .../mutations/useUpdateAgentThreadMutation.ts | 110 + .../useUpdateBillingModuleMutation.ts | 116 + .../useUpdateNodeTypeRegistryMutation.ts | 116 + .../useUpdateOrgLimitAggregateMutation.ts | 116 + .../mutations/useUpdatePlansModuleMutation.ts | 110 + .../src/public/hooks/queries/index.ts | 56 +- .../hooks/queries/useAgentMessageQuery.ts | 138 + .../hooks/queries/useAgentMessagesQuery.ts | 145 + .../public/hooks/queries/useAgentTaskQuery.ts | 138 + .../hooks/queries/useAgentTasksQuery.ts | 145 + .../hooks/queries/useAgentThreadQuery.ts | 138 + .../hooks/queries/useAgentThreadsQuery.ts | 145 + .../hooks/queries/useAppLimitEventsQuery.ts | 151 + .../hooks/queries/useBillingModuleQuery.ts | 138 + .../hooks/queries/useBillingModulesQuery.ts | 151 + .../queries/useNodeTypeRegistriesQuery.ts | 163 + .../hooks/queries/useNodeTypeRegistryQuery.ts | 138 + .../queries/useOrgLimitAggregateQuery.ts | 144 + .../queries/useOrgLimitAggregatesQuery.ts | 163 + .../hooks/queries/useOrgLimitEventsQuery.ts | 151 + .../hooks/queries/usePlansModuleQuery.ts | 138 + .../hooks/queries/usePlansModulesQuery.ts | 145 + .../src/public/hooks/query-keys.ts | 236 +- .../src/public/orm/README.md | 999 +- .../src/public/orm/index.ts | 54 +- .../src/public/orm/input-types.ts | 4468 ++-- .../src/public/orm/models/agentMessage.ts | 237 + .../src/public/orm/models/agentTask.ts | 237 + .../src/public/orm/models/agentThread.ts | 237 + .../src/public/orm/models/appLimitEvent.ts | 127 + .../src/public/orm/models/billingModule.ts | 237 + .../src/public/orm/models/index.ts | 27 +- .../src/public/orm/models/nodeTypeRegistry.ts | 237 + .../public/orm/models/orgLimitAggregate.ts | 237 + .../src/public/orm/models/orgLimitEvent.ts | 127 + .../src/public/orm/models/plansModule.ts | 237 + .../src/public/orm/mutation/index.ts | 181 +- .../src/public/orm/query/index.ts | 190 +- .../src/public/schema-types.ts | 7109 ++++--- sdk/constructive-react/src/public/types.ts | 271 +- sdk/constructive-sdk/schemas/admin.graphql | 6570 +++--- sdk/constructive-sdk/schemas/app.graphql | 33 - sdk/constructive-sdk/schemas/auth.graphql | 33 - sdk/constructive-sdk/schemas/objects.graphql | 33 - sdk/constructive-sdk/schemas/public.graphql | 17191 ++++++++++------ sdk/constructive-sdk/src/admin/README.md | 4 +- sdk/constructive-sdk/src/admin/orm/README.md | 485 +- sdk/constructive-sdk/src/admin/orm/index.ts | 42 +- .../src/admin/orm/input-types.ts | 2358 ++- .../src/admin/orm/models/appLimitEvent.ts | 127 + .../src/admin/orm/models/index.ts | 21 +- .../src/admin/orm/models/orgLimitAggregate.ts | 237 + .../src/admin/orm/models/orgLimitEvent.ts | 127 + .../src/admin/orm/mutation/index.ts | 41 - sdk/constructive-sdk/src/auth/README.md | 2 +- sdk/constructive-sdk/src/auth/orm/README.md | 17 - .../src/auth/orm/input-types.ts | 20 - .../src/auth/orm/mutation/index.ts | 41 - sdk/constructive-sdk/src/objects/README.md | 2 +- .../src/objects/orm/README.md | 17 - .../src/objects/orm/input-types.ts | 20 - .../src/objects/orm/mutation/index.ts | 41 - sdk/constructive-sdk/src/public/README.md | 4 +- sdk/constructive-sdk/src/public/orm/README.md | 999 +- sdk/constructive-sdk/src/public/orm/index.ts | 54 +- .../src/public/orm/input-types.ts | 4468 ++-- .../src/public/orm/models/agentMessage.ts | 237 + .../src/public/orm/models/agentTask.ts | 237 + .../src/public/orm/models/agentThread.ts | 237 + .../src/public/orm/models/appLimitEvent.ts | 127 + .../src/public/orm/models/billingModule.ts | 237 + .../src/public/orm/models/index.ts | 27 +- .../src/public/orm/models/nodeTypeRegistry.ts | 237 + .../public/orm/models/orgLimitAggregate.ts | 237 + .../src/public/orm/models/orgLimitEvent.ts | 127 + .../src/public/orm/models/plansModule.ts | 237 + .../src/public/orm/mutation/index.ts | 181 +- .../src/public/orm/query/index.ts | 190 +- sdk/migrate-client/schemas/migrate.graphql | 33 - sdk/migrate-client/src/migrate/README.md | 2 +- sdk/migrate-client/src/migrate/orm/README.md | 17 - .../src/migrate/orm/input-types.ts | 20 - .../src/migrate/orm/mutation/index.ts | 41 - 335 files changed, 60237 insertions(+), 25525 deletions(-) create mode 100644 .agents/skills/cli-admin/references/app-limit-event.md create mode 100644 .agents/skills/cli-admin/references/org-limit-aggregate.md create mode 100644 .agents/skills/cli-admin/references/org-limit-event.md create mode 100644 .agents/skills/cli-public/references/agent-message.md create mode 100644 .agents/skills/cli-public/references/agent-task.md create mode 100644 .agents/skills/cli-public/references/agent-thread.md create mode 100644 .agents/skills/cli-public/references/app-limit-event.md create mode 100644 .agents/skills/cli-public/references/billing-module.md create mode 100644 .agents/skills/cli-public/references/org-limit-aggregate.md create mode 100644 .agents/skills/cli-public/references/org-limit-event.md create mode 100644 .agents/skills/cli-public/references/plans-module.md create mode 100644 .agents/skills/hooks-admin/references/app-limit-event.md create mode 100644 .agents/skills/hooks-admin/references/org-limit-aggregate.md create mode 100644 .agents/skills/hooks-admin/references/org-limit-event.md create mode 100644 .agents/skills/hooks-public/references/agent-message.md create mode 100644 .agents/skills/hooks-public/references/agent-task.md create mode 100644 .agents/skills/hooks-public/references/agent-thread.md create mode 100644 .agents/skills/hooks-public/references/app-limit-event.md create mode 100644 .agents/skills/hooks-public/references/billing-module.md create mode 100644 .agents/skills/hooks-public/references/org-limit-aggregate.md create mode 100644 .agents/skills/hooks-public/references/org-limit-event.md create mode 100644 .agents/skills/hooks-public/references/plans-module.md create mode 100644 .agents/skills/orm-admin/references/app-limit-event.md create mode 100644 .agents/skills/orm-admin/references/org-limit-aggregate.md create mode 100644 .agents/skills/orm-admin/references/org-limit-event.md create mode 100644 .agents/skills/orm-public/references/agent-message.md create mode 100644 .agents/skills/orm-public/references/agent-task.md create mode 100644 .agents/skills/orm-public/references/agent-thread.md create mode 100644 .agents/skills/orm-public/references/app-limit-event.md create mode 100644 .agents/skills/orm-public/references/billing-module.md create mode 100644 .agents/skills/orm-public/references/org-limit-aggregate.md create mode 100644 .agents/skills/orm-public/references/org-limit-event.md create mode 100644 .agents/skills/orm-public/references/plans-module.md create mode 100644 sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts delete mode 100644 sdk/constructive-cli/src/admin/cli/commands/confirm-upload.ts create mode 100644 sdk/constructive-cli/src/admin/cli/commands/org-limit-aggregate.ts create mode 100644 sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts delete mode 100644 sdk/constructive-cli/src/auth/cli/commands/confirm-upload.ts delete mode 100644 sdk/constructive-cli/src/objects/cli/commands/confirm-upload.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/agent-message.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/agent-task.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/agent-thread.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/billing-module.ts delete mode 100644 sdk/constructive-cli/src/public/cli/commands/confirm-upload.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts create mode 100644 sdk/constructive-cli/src/public/cli/commands/plans-module.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/agentMessage.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/agentTask.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/agentThread.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/billingModule.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts create mode 100644 sdk/constructive-cli/src/public/orm/models/plansModule.ts delete mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useConfirmUploadMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts create mode 100644 sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts delete mode 100644 sdk/constructive-react/src/auth/hooks/mutations/useConfirmUploadMutation.ts delete mode 100644 sdk/constructive-react/src/objects/hooks/mutations/useConfirmUploadMutation.ts delete mode 100644 sdk/constructive-react/src/public/hooks/mutations/useConfirmUploadMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts create mode 100644 sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts create mode 100644 sdk/constructive-react/src/public/orm/models/agentMessage.ts create mode 100644 sdk/constructive-react/src/public/orm/models/agentTask.ts create mode 100644 sdk/constructive-react/src/public/orm/models/agentThread.ts create mode 100644 sdk/constructive-react/src/public/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-react/src/public/orm/models/billingModule.ts create mode 100644 sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts create mode 100644 sdk/constructive-react/src/public/orm/models/plansModule.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/agentMessage.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/agentTask.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/agentThread.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/billingModule.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts create mode 100644 sdk/constructive-sdk/src/public/orm/models/plansModule.ts diff --git a/.agents/skills/cli-admin/SKILL.md b/.agents/skills/cli-admin/SKILL.md index ad0f8407c..cff181493 100644 --- a/.agents/skills/cli-admin/SKILL.md +++ b/.agents/skills/cli-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-admin -description: CLI tool (csdk) for the admin API — provides CRUD commands for 34 tables and 16 custom operations +description: CLI tool (csdk) for the admin API — provides CRUD commands for 37 tables and 15 custom operations --- # cli-admin -CLI tool (csdk) for the admin API — provides CRUD commands for 34 tables and 16 custom operations +CLI tool (csdk) for the admin API — provides CRUD commands for 37 tables and 15 custom operations ## Usage @@ -66,27 +66,30 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [app-limit](references/app-limit.md) - [app-achievement](references/app-achievement.md) - [app-step](references/app-step.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-limit](references/org-limit.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) - [membership-type](references/membership-type.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-membership-default](references/app-membership-default.md) - [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) - [org-chart-edge](references/org-chart-edge.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [org-member-profile](references/org-member-profile.md) -- [org-membership-setting](references/org-membership-setting.md) +- [org-limit](references/org-limit.md) - [app-level](references/app-level.md) - [app-invite](references/app-invite.md) +- [org-membership-setting](references/org-membership-setting.md) - [org-invite](references/org-invite.md) - [app-membership](references/app-membership.md) - [org-membership](references/org-membership.md) @@ -104,5 +107,4 @@ See the `references/` directory for detailed per-entity API documentation: - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-admin/references/app-invite.md b/.agents/skills/cli-admin/references/app-invite.md index 7563ca56e..a67996f49 100644 --- a/.agents/skills/cli-admin/references/app-invite.md +++ b/.agents/skills/cli-admin/references/app-invite.md @@ -12,8 +12,8 @@ csdk app-invite list --where.. --orderBy csdk app-invite list --limit 10 --after csdk app-invite find-first --where.. csdk app-invite get --id -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] csdk app-invite delete --id ``` @@ -58,7 +58,7 @@ csdk app-invite list --where.id.equalTo --orderBy ID_ASC ### Create a appInvite ```bash -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] ``` ### Get a appInvite by id diff --git a/.agents/skills/cli-admin/references/app-limit-default.md b/.agents/skills/cli-admin/references/app-limit-default.md index 3acad75f5..365d73b58 100644 --- a/.agents/skills/cli-admin/references/app-limit-default.md +++ b/.agents/skills/cli-admin/references/app-limit-default.md @@ -12,8 +12,8 @@ csdk app-limit-default list --where.. --orderBy csdk app-limit-default list --limit 10 --after csdk app-limit-default find-first --where.. csdk app-limit-default get --id -csdk app-limit-default create --name [--max ] -csdk app-limit-default update --id [--name ] [--max ] +csdk app-limit-default create --name [--max ] [--softMax ] +csdk app-limit-default update --id [--name ] [--max ] [--softMax ] csdk app-limit-default delete --id ``` @@ -58,7 +58,7 @@ csdk app-limit-default list --where.id.equalTo --orderBy ID_ASC ### Create a appLimitDefault ```bash -csdk app-limit-default create --name [--max ] +csdk app-limit-default create --name [--max ] [--softMax ] ``` ### Get a appLimitDefault by id diff --git a/.agents/skills/cli-admin/references/app-limit-event.md b/.agents/skills/cli-admin/references/app-limit-event.md new file mode 100644 index 000000000..8c52edd3b --- /dev/null +++ b/.agents/skills/cli-admin/references/app-limit-event.md @@ -0,0 +1,68 @@ +# appLimitEvent + + + +CRUD operations for AppLimitEvent records via csdk CLI + +## Usage + +```bash +csdk app-limit-event list +csdk app-limit-event list --where.. --orderBy +csdk app-limit-event list --limit 10 --after +csdk app-limit-event find-first --where.. +csdk app-limit-event get --id +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event update --id [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event delete --id +``` + +## Examples + +### List appLimitEvent records + +```bash +csdk app-limit-event list +``` + +### List appLimitEvent records with pagination + +```bash +csdk app-limit-event list --limit 10 --offset 0 +``` + +### List appLimitEvent records with cursor pagination + +```bash +csdk app-limit-event list --limit 10 --after +``` + +### Find first matching appLimitEvent + +```bash +csdk app-limit-event find-first --where.id.equalTo +``` + +### List appLimitEvent records with field selection + +```bash +csdk app-limit-event list --select id,id +``` + +### List appLimitEvent records with filtering and ordering + +```bash +csdk app-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitEvent + +```bash +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a appLimitEvent by id + +```bash +csdk app-limit-event get --id +``` diff --git a/.agents/skills/cli-admin/references/app-limit.md b/.agents/skills/cli-admin/references/app-limit.md index 1b995e011..6b16dab5e 100644 --- a/.agents/skills/cli-admin/references/app-limit.md +++ b/.agents/skills/cli-admin/references/app-limit.md @@ -12,8 +12,8 @@ csdk app-limit list --where.. --orderBy csdk app-limit list --limit 10 --after csdk app-limit find-first --where.. csdk app-limit get --id -csdk app-limit create --actorId [--name ] [--num ] [--max ] -csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] csdk app-limit delete --id ``` @@ -58,7 +58,7 @@ csdk app-limit list --where.id.equalTo --orderBy ID_ASC ### Create a appLimit ```bash -csdk app-limit create --actorId [--name ] [--num ] [--max ] +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] ``` ### Get a appLimit by id diff --git a/.agents/skills/cli-admin/references/app-membership.md b/.agents/skills/cli-admin/references/app-membership.md index 8c668a4b5..c58e06de7 100644 --- a/.agents/skills/cli-admin/references/app-membership.md +++ b/.agents/skills/cli-admin/references/app-membership.md @@ -12,8 +12,8 @@ csdk app-membership list --where.. --orderBy csdk app-membership list --limit 10 --after csdk app-membership find-first --where.. csdk app-membership get --id -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] -csdk app-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--profileId ] +csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] +csdk app-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--profileId ] csdk app-membership delete --id ``` @@ -58,7 +58,7 @@ csdk app-membership list --where.id.equalTo --orderBy ID_ASC ### Create a appMembership ```bash -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] +csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] ``` ### Get a appMembership by id diff --git a/.agents/skills/cli-admin/references/org-invite.md b/.agents/skills/cli-admin/references/org-invite.md index 1f48d7b17..24db7d492 100644 --- a/.agents/skills/cli-admin/references/org-invite.md +++ b/.agents/skills/cli-admin/references/org-invite.md @@ -12,8 +12,8 @@ csdk org-invite list --where.. --orderBy csdk org-invite list --limit 10 --after csdk org-invite find-first --where.. csdk org-invite get --id -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] [--entityId ] +csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] [--entityId ] csdk org-invite delete --id ``` @@ -58,7 +58,7 @@ csdk org-invite list --where.id.equalTo --orderBy ID_ASC ### Create a orgInvite ```bash -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] ``` ### Get a orgInvite by id diff --git a/.agents/skills/cli-admin/references/org-limit-aggregate.md b/.agents/skills/cli-admin/references/org-limit-aggregate.md new file mode 100644 index 000000000..d0256c9e1 --- /dev/null +++ b/.agents/skills/cli-admin/references/org-limit-aggregate.md @@ -0,0 +1,68 @@ +# orgLimitAggregate + + + +CRUD operations for OrgLimitAggregate records via csdk CLI + +## Usage + +```bash +csdk org-limit-aggregate list +csdk org-limit-aggregate list --where.. --orderBy +csdk org-limit-aggregate list --limit 10 --after +csdk org-limit-aggregate find-first --where.. +csdk org-limit-aggregate get --id +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit-aggregate update --id [--name ] [--entityId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit-aggregate delete --id +``` + +## Examples + +### List orgLimitAggregate records + +```bash +csdk org-limit-aggregate list +``` + +### List orgLimitAggregate records with pagination + +```bash +csdk org-limit-aggregate list --limit 10 --offset 0 +``` + +### List orgLimitAggregate records with cursor pagination + +```bash +csdk org-limit-aggregate list --limit 10 --after +``` + +### Find first matching orgLimitAggregate + +```bash +csdk org-limit-aggregate find-first --where.id.equalTo +``` + +### List orgLimitAggregate records with field selection + +```bash +csdk org-limit-aggregate list --select id,id +``` + +### List orgLimitAggregate records with filtering and ordering + +```bash +csdk org-limit-aggregate list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitAggregate + +```bash +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +``` + +### Get a orgLimitAggregate by id + +```bash +csdk org-limit-aggregate get --id +``` diff --git a/.agents/skills/cli-admin/references/org-limit-default.md b/.agents/skills/cli-admin/references/org-limit-default.md index 017e51f53..2a1be2a45 100644 --- a/.agents/skills/cli-admin/references/org-limit-default.md +++ b/.agents/skills/cli-admin/references/org-limit-default.md @@ -12,8 +12,8 @@ csdk org-limit-default list --where.. --orderBy csdk org-limit-default list --limit 10 --after csdk org-limit-default find-first --where.. csdk org-limit-default get --id -csdk org-limit-default create --name [--max ] -csdk org-limit-default update --id [--name ] [--max ] +csdk org-limit-default create --name [--max ] [--softMax ] +csdk org-limit-default update --id [--name ] [--max ] [--softMax ] csdk org-limit-default delete --id ``` @@ -58,7 +58,7 @@ csdk org-limit-default list --where.id.equalTo --orderBy ID_ASC ### Create a orgLimitDefault ```bash -csdk org-limit-default create --name [--max ] +csdk org-limit-default create --name [--max ] [--softMax ] ``` ### Get a orgLimitDefault by id diff --git a/.agents/skills/cli-admin/references/org-limit-event.md b/.agents/skills/cli-admin/references/org-limit-event.md new file mode 100644 index 000000000..72201611b --- /dev/null +++ b/.agents/skills/cli-admin/references/org-limit-event.md @@ -0,0 +1,68 @@ +# orgLimitEvent + + + +CRUD operations for OrgLimitEvent records via csdk CLI + +## Usage + +```bash +csdk org-limit-event list +csdk org-limit-event list --where.. --orderBy +csdk org-limit-event list --limit 10 --after +csdk org-limit-event find-first --where.. +csdk org-limit-event get --id +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event update --id [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event delete --id +``` + +## Examples + +### List orgLimitEvent records + +```bash +csdk org-limit-event list +``` + +### List orgLimitEvent records with pagination + +```bash +csdk org-limit-event list --limit 10 --offset 0 +``` + +### List orgLimitEvent records with cursor pagination + +```bash +csdk org-limit-event list --limit 10 --after +``` + +### Find first matching orgLimitEvent + +```bash +csdk org-limit-event find-first --where.id.equalTo +``` + +### List orgLimitEvent records with field selection + +```bash +csdk org-limit-event list --select id,id +``` + +### List orgLimitEvent records with filtering and ordering + +```bash +csdk org-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitEvent + +```bash +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a orgLimitEvent by id + +```bash +csdk org-limit-event get --id +``` diff --git a/.agents/skills/cli-admin/references/org-limit.md b/.agents/skills/cli-admin/references/org-limit.md index e3ba12bd9..1f0fbdfc9 100644 --- a/.agents/skills/cli-admin/references/org-limit.md +++ b/.agents/skills/cli-admin/references/org-limit.md @@ -12,8 +12,8 @@ csdk org-limit list --where.. --orderBy csdk org-limit list --limit 10 --after csdk org-limit find-first --where.. csdk org-limit get --id -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] -csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--entityId ] +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--entityId ] csdk org-limit delete --id ``` @@ -58,7 +58,7 @@ csdk org-limit list --where.id.equalTo --orderBy ID_ASC ### Create a orgLimit ```bash -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] ``` ### Get a orgLimit by id diff --git a/.agents/skills/cli-admin/references/org-membership-setting.md b/.agents/skills/cli-admin/references/org-membership-setting.md index 64ec11715..0d8644454 100644 --- a/.agents/skills/cli-admin/references/org-membership-setting.md +++ b/.agents/skills/cli-admin/references/org-membership-setting.md @@ -12,8 +12,8 @@ csdk org-membership-setting list --where.. --orderBy csdk org-membership-setting list --limit 10 --after csdk org-membership-setting find-first --where.. csdk org-membership-setting get --id -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] -csdk org-membership-setting update --id [--createdBy ] [--updatedBy ] [--entityId ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] +csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] +csdk org-membership-setting update --id [--createdBy ] [--updatedBy ] [--entityId ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] csdk org-membership-setting delete --id ``` @@ -58,7 +58,7 @@ csdk org-membership-setting list --where.id.equalTo --orderBy ID_ASC ### Create a orgMembershipSetting ```bash -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] +csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] ``` ### Get a orgMembershipSetting by id diff --git a/.agents/skills/cli-auth/SKILL.md b/.agents/skills/cli-auth/SKILL.md index cc0c6e861..adc678fe5 100644 --- a/.agents/skills/cli-auth/SKILL.md +++ b/.agents/skills/cli-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-auth -description: CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 29 custom operations +description: CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 28 custom operations --- # cli-auth -CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 29 custom operations +CLI tool (csdk) for the auth API — provides CRUD commands for 9 tables and 28 custom operations ## Usage @@ -92,5 +92,4 @@ See the `references/` directory for detailed per-entity API documentation: - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-objects/SKILL.md b/.agents/skills/cli-objects/SKILL.md index 24ca681a9..f517cbee5 100644 --- a/.agents/skills/cli-objects/SKILL.md +++ b/.agents/skills/cli-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-objects -description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 15 custom operations +description: CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 14 custom operations --- # cli-objects -CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 15 custom operations +CLI tool (csdk) for the objects API — provides CRUD commands for 5 tables and 14 custom operations ## Usage @@ -74,5 +74,4 @@ See the `references/` directory for detailed per-entity API documentation: - [update-node-at-path](references/update-node-at-path.md) - [set-and-commit](references/set-and-commit.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-public/SKILL.md b/.agents/skills/cli-public/SKILL.md index 1b65f9473..a6299b87f 100644 --- a/.agents/skills/cli-public/SKILL.md +++ b/.agents/skills/cli-public/SKILL.md @@ -1,13 +1,13 @@ --- name: cli-public -description: CLI tool (csdk) for the public API — provides CRUD commands for 120 tables and 72 custom operations +description: CLI tool (csdk) for the public API — provides CRUD commands for 129 tables and 71 custom operations --- # cli-public -CLI tool (csdk) for the public API — provides CRUD commands for 120 tables and 72 custom operations +CLI tool (csdk) for the public API — provides CRUD commands for 129 tables and 71 custom operations ## Usage @@ -59,9 +59,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) +- [object](references/object.md) - [app-level-requirement](references/app-level-requirement.md) - [database](references/database.md) - [schema](references/schema.md) @@ -142,6 +142,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-limit](references/app-limit.md) - [org-limit](references/org-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [app-step](references/app-step.md) - [app-achievement](references/app-achievement.md) - [app-level](references/app-level.md) @@ -154,26 +155,34 @@ See the `references/` directory for detailed per-entity API documentation: - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) - [audit-log](references/audit-log.md) -- [app-permission-default](references/app-permission-default.md) +- [agent-thread](references/agent-thread.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) -- [role-type](references/role-type.md) +- [app-permission-default](references/app-permission-default.md) +- [membership-type](references/membership-type.md) - [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) -- [devices-module](references/devices-module.md) - [user-connected-account](references/user-connected-account.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [commit](references/commit.md) - [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [plans-module](references/plans-module.md) - [rls-module](references/rls-module.md) - [sql-action](references/sql-action.md) -- [org-membership-setting](references/org-membership-setting.md) -- [user](references/user.md) +- [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -191,11 +200,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [steps-required](references/steps-required.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) @@ -239,12 +248,11 @@ See the `references/` directory for detailed per-entity API documentation: - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/cli-public/references/agent-message.md b/.agents/skills/cli-public/references/agent-message.md new file mode 100644 index 000000000..d75a14ca9 --- /dev/null +++ b/.agents/skills/cli-public/references/agent-message.md @@ -0,0 +1,68 @@ +# agentMessage + + + +CRUD operations for AgentMessage records via csdk CLI + +## Usage + +```bash +csdk agent-message list +csdk agent-message list --where.. --orderBy +csdk agent-message list --limit 10 --after +csdk agent-message find-first --where.. +csdk agent-message get --id +csdk agent-message create --threadId --entityId --authorRole [--ownerId ] [--parts ] +csdk agent-message update --id [--threadId ] [--entityId ] [--authorRole ] [--ownerId ] [--parts ] +csdk agent-message delete --id +``` + +## Examples + +### List agentMessage records + +```bash +csdk agent-message list +``` + +### List agentMessage records with pagination + +```bash +csdk agent-message list --limit 10 --offset 0 +``` + +### List agentMessage records with cursor pagination + +```bash +csdk agent-message list --limit 10 --after +``` + +### Find first matching agentMessage + +```bash +csdk agent-message find-first --where.id.equalTo +``` + +### List agentMessage records with field selection + +```bash +csdk agent-message list --select id,id +``` + +### List agentMessage records with filtering and ordering + +```bash +csdk agent-message list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentMessage + +```bash +csdk agent-message create --threadId --entityId --authorRole [--ownerId ] [--parts ] +``` + +### Get a agentMessage by id + +```bash +csdk agent-message get --id +``` diff --git a/.agents/skills/cli-public/references/agent-task.md b/.agents/skills/cli-public/references/agent-task.md new file mode 100644 index 000000000..0c44d7215 --- /dev/null +++ b/.agents/skills/cli-public/references/agent-task.md @@ -0,0 +1,68 @@ +# agentTask + + + +CRUD operations for AgentTask records via csdk CLI + +## Usage + +```bash +csdk agent-task list +csdk agent-task list --where.. --orderBy +csdk agent-task list --limit 10 --after +csdk agent-task find-first --where.. +csdk agent-task get --id +csdk agent-task create --threadId --entityId --description [--source ] [--error ] [--ownerId ] [--status ] +csdk agent-task update --id [--threadId ] [--entityId ] [--description ] [--source ] [--error ] [--ownerId ] [--status ] +csdk agent-task delete --id +``` + +## Examples + +### List agentTask records + +```bash +csdk agent-task list +``` + +### List agentTask records with pagination + +```bash +csdk agent-task list --limit 10 --offset 0 +``` + +### List agentTask records with cursor pagination + +```bash +csdk agent-task list --limit 10 --after +``` + +### Find first matching agentTask + +```bash +csdk agent-task find-first --where.id.equalTo +``` + +### List agentTask records with field selection + +```bash +csdk agent-task list --select id,id +``` + +### List agentTask records with filtering and ordering + +```bash +csdk agent-task list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentTask + +```bash +csdk agent-task create --threadId --entityId --description [--source ] [--error ] [--ownerId ] [--status ] +``` + +### Get a agentTask by id + +```bash +csdk agent-task get --id +``` diff --git a/.agents/skills/cli-public/references/agent-thread.md b/.agents/skills/cli-public/references/agent-thread.md new file mode 100644 index 000000000..6bfc83f7c --- /dev/null +++ b/.agents/skills/cli-public/references/agent-thread.md @@ -0,0 +1,68 @@ +# agentThread + + + +CRUD operations for AgentThread records via csdk CLI + +## Usage + +```bash +csdk agent-thread list +csdk agent-thread list --where.. --orderBy +csdk agent-thread list --limit 10 --after +csdk agent-thread find-first --where.. +csdk agent-thread get --id +csdk agent-thread create --entityId [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--status ] +csdk agent-thread update --id [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--entityId ] [--status ] +csdk agent-thread delete --id +``` + +## Examples + +### List agentThread records + +```bash +csdk agent-thread list +``` + +### List agentThread records with pagination + +```bash +csdk agent-thread list --limit 10 --offset 0 +``` + +### List agentThread records with cursor pagination + +```bash +csdk agent-thread list --limit 10 --after +``` + +### Find first matching agentThread + +```bash +csdk agent-thread find-first --where.id.equalTo +``` + +### List agentThread records with field selection + +```bash +csdk agent-thread list --select id,id +``` + +### List agentThread records with filtering and ordering + +```bash +csdk agent-thread list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a agentThread + +```bash +csdk agent-thread create --entityId [--title ] [--mode ] [--model ] [--systemPrompt ] [--ownerId ] [--status ] +``` + +### Get a agentThread by id + +```bash +csdk agent-thread get --id +``` diff --git a/.agents/skills/cli-public/references/app-invite.md b/.agents/skills/cli-public/references/app-invite.md index 7563ca56e..a67996f49 100644 --- a/.agents/skills/cli-public/references/app-invite.md +++ b/.agents/skills/cli-public/references/app-invite.md @@ -12,8 +12,8 @@ csdk app-invite list --where.. --orderBy csdk app-invite list --limit 10 --after csdk app-invite find-first --where.. csdk app-invite get --id -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk app-invite update --id [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] csdk app-invite delete --id ``` @@ -58,7 +58,7 @@ csdk app-invite list --where.id.equalTo --orderBy ID_ASC ### Create a appInvite ```bash -csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk app-invite create [--email ] [--senderId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] ``` ### Get a appInvite by id diff --git a/.agents/skills/cli-public/references/app-limit-default.md b/.agents/skills/cli-public/references/app-limit-default.md index 3acad75f5..365d73b58 100644 --- a/.agents/skills/cli-public/references/app-limit-default.md +++ b/.agents/skills/cli-public/references/app-limit-default.md @@ -12,8 +12,8 @@ csdk app-limit-default list --where.. --orderBy csdk app-limit-default list --limit 10 --after csdk app-limit-default find-first --where.. csdk app-limit-default get --id -csdk app-limit-default create --name [--max ] -csdk app-limit-default update --id [--name ] [--max ] +csdk app-limit-default create --name [--max ] [--softMax ] +csdk app-limit-default update --id [--name ] [--max ] [--softMax ] csdk app-limit-default delete --id ``` @@ -58,7 +58,7 @@ csdk app-limit-default list --where.id.equalTo --orderBy ID_ASC ### Create a appLimitDefault ```bash -csdk app-limit-default create --name [--max ] +csdk app-limit-default create --name [--max ] [--softMax ] ``` ### Get a appLimitDefault by id diff --git a/.agents/skills/cli-public/references/app-limit-event.md b/.agents/skills/cli-public/references/app-limit-event.md new file mode 100644 index 000000000..8c52edd3b --- /dev/null +++ b/.agents/skills/cli-public/references/app-limit-event.md @@ -0,0 +1,68 @@ +# appLimitEvent + + + +CRUD operations for AppLimitEvent records via csdk CLI + +## Usage + +```bash +csdk app-limit-event list +csdk app-limit-event list --where.. --orderBy +csdk app-limit-event list --limit 10 --after +csdk app-limit-event find-first --where.. +csdk app-limit-event get --id +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event update --id [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk app-limit-event delete --id +``` + +## Examples + +### List appLimitEvent records + +```bash +csdk app-limit-event list +``` + +### List appLimitEvent records with pagination + +```bash +csdk app-limit-event list --limit 10 --offset 0 +``` + +### List appLimitEvent records with cursor pagination + +```bash +csdk app-limit-event list --limit 10 --after +``` + +### Find first matching appLimitEvent + +```bash +csdk app-limit-event find-first --where.id.equalTo +``` + +### List appLimitEvent records with field selection + +```bash +csdk app-limit-event list --select id,id +``` + +### List appLimitEvent records with filtering and ordering + +```bash +csdk app-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a appLimitEvent + +```bash +csdk app-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a appLimitEvent by id + +```bash +csdk app-limit-event get --id +``` diff --git a/.agents/skills/cli-public/references/app-limit.md b/.agents/skills/cli-public/references/app-limit.md index 1b995e011..6b16dab5e 100644 --- a/.agents/skills/cli-public/references/app-limit.md +++ b/.agents/skills/cli-public/references/app-limit.md @@ -12,8 +12,8 @@ csdk app-limit list --where.. --orderBy csdk app-limit list --limit 10 --after csdk app-limit find-first --where.. csdk app-limit get --id -csdk app-limit create --actorId [--name ] [--num ] [--max ] -csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk app-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] csdk app-limit delete --id ``` @@ -58,7 +58,7 @@ csdk app-limit list --where.id.equalTo --orderBy ID_ASC ### Create a appLimit ```bash -csdk app-limit create --actorId [--name ] [--num ] [--max ] +csdk app-limit create --actorId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] ``` ### Get a appLimit by id diff --git a/.agents/skills/cli-public/references/app-membership.md b/.agents/skills/cli-public/references/app-membership.md index 8c668a4b5..c58e06de7 100644 --- a/.agents/skills/cli-public/references/app-membership.md +++ b/.agents/skills/cli-public/references/app-membership.md @@ -12,8 +12,8 @@ csdk app-membership list --where.. --orderBy csdk app-membership list --limit 10 --after csdk app-membership find-first --where.. csdk app-membership get --id -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] -csdk app-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--profileId ] +csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] +csdk app-membership update --id [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--actorId ] [--profileId ] csdk app-membership delete --id ``` @@ -58,7 +58,7 @@ csdk app-membership list --where.id.equalTo --orderBy ID_ASC ### Create a appMembership ```bash -csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isExternal ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] +csdk app-membership create --actorId [--createdBy ] [--updatedBy ] [--isApproved ] [--isBanned ] [--isDisabled ] [--isVerified ] [--isActive ] [--isOwner ] [--isAdmin ] [--permissions ] [--granted ] [--profileId ] ``` ### Get a appMembership by id diff --git a/.agents/skills/cli-public/references/billing-module.md b/.agents/skills/cli-public/references/billing-module.md new file mode 100644 index 000000000..a2ab7e635 --- /dev/null +++ b/.agents/skills/cli-public/references/billing-module.md @@ -0,0 +1,68 @@ +# billingModule + + + +CRUD operations for BillingModule records via csdk CLI + +## Usage + +```bash +csdk billing-module list +csdk billing-module list --where.. --orderBy +csdk billing-module list --limit 10 --after +csdk billing-module find-first --where.. +csdk billing-module get --id +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +csdk billing-module delete --id +``` + +## Examples + +### List billingModule records + +```bash +csdk billing-module list +``` + +### List billingModule records with pagination + +```bash +csdk billing-module list --limit 10 --offset 0 +``` + +### List billingModule records with cursor pagination + +```bash +csdk billing-module list --limit 10 --after +``` + +### Find first matching billingModule + +```bash +csdk billing-module find-first --where.id.equalTo +``` + +### List billingModule records with field selection + +```bash +csdk billing-module list --select id,id +``` + +### List billingModule records with filtering and ordering + +```bash +csdk billing-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a billingModule + +```bash +csdk billing-module create --databaseId [--schemaId ] [--privateSchemaId ] [--metersTableId ] [--metersTableName ] [--planSubscriptionsTableId ] [--planSubscriptionsTableName ] [--ledgerTableId ] [--ledgerTableName ] [--balancesTableId ] [--balancesTableName ] [--recordUsageFunction ] [--prefix ] +``` + +### Get a billingModule by id + +```bash +csdk billing-module get --id +``` diff --git a/.agents/skills/cli-public/references/limits-module.md b/.agents/skills/cli-public/references/limits-module.md index ff57e8c4c..d971d44a9 100644 --- a/.agents/skills/cli-public/references/limits-module.md +++ b/.agents/skills/cli-public/references/limits-module.md @@ -12,8 +12,8 @@ csdk limits-module list --where.. --orderBy csdk limits-module list --limit 10 --after csdk limits-module find-first --where.. csdk limits-module get --id -csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--prefix ] [--entityTableId ] [--actorTableId ] -csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--prefix ] [--membershipType ] [--entityTableId ] [--actorTableId ] +csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--aggregateTableId ] [--prefix ] [--entityTableId ] [--actorTableId ] +csdk limits-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--aggregateTableId ] [--prefix ] [--membershipType ] [--entityTableId ] [--actorTableId ] csdk limits-module delete --id ``` @@ -58,7 +58,7 @@ csdk limits-module list --where.id.equalTo --orderBy ID_ASC ### Create a limitsModule ```bash -csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--prefix ] [--entityTableId ] [--actorTableId ] +csdk limits-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--defaultTableId ] [--defaultTableName ] [--limitIncrementFunction ] [--limitDecrementFunction ] [--limitIncrementTrigger ] [--limitDecrementTrigger ] [--limitUpdateTrigger ] [--limitCheckFunction ] [--aggregateTableId ] [--prefix ] [--entityTableId ] [--actorTableId ] ``` ### Get a limitsModule by id diff --git a/.agents/skills/cli-public/references/node-type-registry.md b/.agents/skills/cli-public/references/node-type-registry.md index 55019a4e4..fd008214a 100644 --- a/.agents/skills/cli-public/references/node-type-registry.md +++ b/.agents/skills/cli-public/references/node-type-registry.md @@ -12,8 +12,8 @@ csdk node-type-registry list --where.. --orderBy csdk node-type-registry list --limit 10 --after csdk node-type-registry find-first --where.. csdk node-type-registry get --name -csdk node-type-registry create --slug --category [--displayName ] [--description ] [--summary ] [--parameterSchema ] [--guidance ] [--tags ] -csdk node-type-registry update --name [--slug ] [--category ] [--displayName ] [--description ] [--summary ] [--parameterSchema ] [--guidance ] [--tags ] +csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] +csdk node-type-registry update --name [--slug ] [--category ] [--displayName ] [--description ] [--parameterSchema ] [--tags ] csdk node-type-registry delete --name ``` @@ -58,7 +58,7 @@ csdk node-type-registry list --where.name.equalTo --orderBy NAME_ASC ### Create a nodeTypeRegistry ```bash -csdk node-type-registry create --slug --category [--displayName ] [--description ] [--summary ] [--parameterSchema ] [--guidance ] [--tags ] +csdk node-type-registry create --slug --category [--displayName ] [--description ] [--parameterSchema ] [--tags ] ``` ### Get a nodeTypeRegistry by name diff --git a/.agents/skills/cli-public/references/org-invite.md b/.agents/skills/cli-public/references/org-invite.md index 1f48d7b17..24db7d492 100644 --- a/.agents/skills/cli-public/references/org-invite.md +++ b/.agents/skills/cli-public/references/org-invite.md @@ -12,8 +12,8 @@ csdk org-invite list --where.. --orderBy csdk org-invite list --limit 10 --after csdk org-invite find-first --where.. csdk org-invite get --id -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] -csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] [--entityId ] +csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] +csdk org-invite update --id [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] [--entityId ] csdk org-invite delete --id ``` @@ -58,7 +58,7 @@ csdk org-invite list --where.id.equalTo --orderBy ID_ASC ### Create a orgInvite ```bash -csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--expiresAt ] +csdk org-invite create --entityId [--email ] [--senderId ] [--receiverId ] [--inviteToken ] [--inviteValid ] [--inviteLimit ] [--inviteCount ] [--multiple ] [--data ] [--profileId ] [--expiresAt ] ``` ### Get a orgInvite by id diff --git a/.agents/skills/cli-public/references/org-limit-aggregate.md b/.agents/skills/cli-public/references/org-limit-aggregate.md new file mode 100644 index 000000000..d0256c9e1 --- /dev/null +++ b/.agents/skills/cli-public/references/org-limit-aggregate.md @@ -0,0 +1,68 @@ +# orgLimitAggregate + + + +CRUD operations for OrgLimitAggregate records via csdk CLI + +## Usage + +```bash +csdk org-limit-aggregate list +csdk org-limit-aggregate list --where.. --orderBy +csdk org-limit-aggregate list --limit 10 --after +csdk org-limit-aggregate find-first --where.. +csdk org-limit-aggregate get --id +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit-aggregate update --id [--name ] [--entityId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit-aggregate delete --id +``` + +## Examples + +### List orgLimitAggregate records + +```bash +csdk org-limit-aggregate list +``` + +### List orgLimitAggregate records with pagination + +```bash +csdk org-limit-aggregate list --limit 10 --offset 0 +``` + +### List orgLimitAggregate records with cursor pagination + +```bash +csdk org-limit-aggregate list --limit 10 --after +``` + +### Find first matching orgLimitAggregate + +```bash +csdk org-limit-aggregate find-first --where.id.equalTo +``` + +### List orgLimitAggregate records with field selection + +```bash +csdk org-limit-aggregate list --select id,id +``` + +### List orgLimitAggregate records with filtering and ordering + +```bash +csdk org-limit-aggregate list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitAggregate + +```bash +csdk org-limit-aggregate create --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +``` + +### Get a orgLimitAggregate by id + +```bash +csdk org-limit-aggregate get --id +``` diff --git a/.agents/skills/cli-public/references/org-limit-default.md b/.agents/skills/cli-public/references/org-limit-default.md index 017e51f53..2a1be2a45 100644 --- a/.agents/skills/cli-public/references/org-limit-default.md +++ b/.agents/skills/cli-public/references/org-limit-default.md @@ -12,8 +12,8 @@ csdk org-limit-default list --where.. --orderBy csdk org-limit-default list --limit 10 --after csdk org-limit-default find-first --where.. csdk org-limit-default get --id -csdk org-limit-default create --name [--max ] -csdk org-limit-default update --id [--name ] [--max ] +csdk org-limit-default create --name [--max ] [--softMax ] +csdk org-limit-default update --id [--name ] [--max ] [--softMax ] csdk org-limit-default delete --id ``` @@ -58,7 +58,7 @@ csdk org-limit-default list --where.id.equalTo --orderBy ID_ASC ### Create a orgLimitDefault ```bash -csdk org-limit-default create --name [--max ] +csdk org-limit-default create --name [--max ] [--softMax ] ``` ### Get a orgLimitDefault by id diff --git a/.agents/skills/cli-public/references/org-limit-event.md b/.agents/skills/cli-public/references/org-limit-event.md new file mode 100644 index 000000000..72201611b --- /dev/null +++ b/.agents/skills/cli-public/references/org-limit-event.md @@ -0,0 +1,68 @@ +# orgLimitEvent + + + +CRUD operations for OrgLimitEvent records via csdk CLI + +## Usage + +```bash +csdk org-limit-event list +csdk org-limit-event list --where.. --orderBy +csdk org-limit-event list --limit 10 --after +csdk org-limit-event find-first --where.. +csdk org-limit-event get --id +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event update --id [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +csdk org-limit-event delete --id +``` + +## Examples + +### List orgLimitEvent records + +```bash +csdk org-limit-event list +``` + +### List orgLimitEvent records with pagination + +```bash +csdk org-limit-event list --limit 10 --offset 0 +``` + +### List orgLimitEvent records with cursor pagination + +```bash +csdk org-limit-event list --limit 10 --after +``` + +### Find first matching orgLimitEvent + +```bash +csdk org-limit-event find-first --where.id.equalTo +``` + +### List orgLimitEvent records with field selection + +```bash +csdk org-limit-event list --select id,id +``` + +### List orgLimitEvent records with filtering and ordering + +```bash +csdk org-limit-event list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a orgLimitEvent + +```bash +csdk org-limit-event create [--name ] [--actorId ] [--entityId ] [--eventType ] [--delta ] [--numBefore ] [--numAfter ] [--maxAtEvent ] [--reason ] +``` + +### Get a orgLimitEvent by id + +```bash +csdk org-limit-event get --id +``` diff --git a/.agents/skills/cli-public/references/org-limit.md b/.agents/skills/cli-public/references/org-limit.md index e3ba12bd9..1f0fbdfc9 100644 --- a/.agents/skills/cli-public/references/org-limit.md +++ b/.agents/skills/cli-public/references/org-limit.md @@ -12,8 +12,8 @@ csdk org-limit list --where.. --orderBy csdk org-limit list --limit 10 --after csdk org-limit find-first --where.. csdk org-limit get --id -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] -csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--entityId ] +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] +csdk org-limit update --id [--name ] [--actorId ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] [--entityId ] csdk org-limit delete --id ``` @@ -58,7 +58,7 @@ csdk org-limit list --where.id.equalTo --orderBy ID_ASC ### Create a orgLimit ```bash -csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] +csdk org-limit create --actorId --entityId [--name ] [--num ] [--max ] [--softMax ] [--windowStart ] [--windowDuration ] ``` ### Get a orgLimit by id diff --git a/.agents/skills/cli-public/references/org-membership-setting.md b/.agents/skills/cli-public/references/org-membership-setting.md index 64ec11715..0d8644454 100644 --- a/.agents/skills/cli-public/references/org-membership-setting.md +++ b/.agents/skills/cli-public/references/org-membership-setting.md @@ -12,8 +12,8 @@ csdk org-membership-setting list --where.. --orderBy csdk org-membership-setting list --limit 10 --after csdk org-membership-setting find-first --where.. csdk org-membership-setting get --id -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] -csdk org-membership-setting update --id [--createdBy ] [--updatedBy ] [--entityId ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] +csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] +csdk org-membership-setting update --id [--createdBy ] [--updatedBy ] [--entityId ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] csdk org-membership-setting delete --id ``` @@ -58,7 +58,7 @@ csdk org-membership-setting list --where.id.equalTo --orderBy ID_ASC ### Create a orgMembershipSetting ```bash -csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--populateMemberEmail ] +csdk org-membership-setting create --entityId [--createdBy ] [--updatedBy ] [--deleteMemberCascadeChildren ] [--createChildCascadeOwners ] [--createChildCascadeAdmins ] [--createChildCascadeMembers ] [--allowExternalMembers ] [--inviteProfileAssignmentMode ] [--populateMemberEmail ] [--limitAllocationMode ] ``` ### Get a orgMembershipSetting by id diff --git a/.agents/skills/cli-public/references/plans-module.md b/.agents/skills/cli-public/references/plans-module.md new file mode 100644 index 000000000..596b5b663 --- /dev/null +++ b/.agents/skills/cli-public/references/plans-module.md @@ -0,0 +1,68 @@ +# plansModule + + + +CRUD operations for PlansModule records via csdk CLI + +## Usage + +```bash +csdk plans-module list +csdk plans-module list --where.. --orderBy +csdk plans-module list --limit 10 --after +csdk plans-module find-first --where.. +csdk plans-module get --id +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] +csdk plans-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] +csdk plans-module delete --id +``` + +## Examples + +### List plansModule records + +```bash +csdk plans-module list +``` + +### List plansModule records with pagination + +```bash +csdk plans-module list --limit 10 --offset 0 +``` + +### List plansModule records with cursor pagination + +```bash +csdk plans-module list --limit 10 --after +``` + +### Find first matching plansModule + +```bash +csdk plans-module find-first --where.id.equalTo +``` + +### List plansModule records with field selection + +```bash +csdk plans-module list --select id,id +``` + +### List plansModule records with filtering and ordering + +```bash +csdk plans-module list --where.id.equalTo --orderBy ID_ASC +``` + +### Create a plansModule + +```bash +csdk plans-module create --databaseId [--schemaId ] [--privateSchemaId ] [--plansTableId ] [--plansTableName ] [--planLimitsTableId ] [--planLimitsTableName ] [--applyPlanFunction ] [--applyPlanAggregateFunction ] [--prefix ] +``` + +### Get a plansModule by id + +```bash +csdk plans-module get --id +``` diff --git a/.agents/skills/cli-public/references/profiles-module.md b/.agents/skills/cli-public/references/profiles-module.md index d26c4ca4c..16fa005c9 100644 --- a/.agents/skills/cli-public/references/profiles-module.md +++ b/.agents/skills/cli-public/references/profiles-module.md @@ -12,8 +12,8 @@ csdk profiles-module list --where.. --orderBy csdk profiles-module list --limit 10 --after csdk profiles-module find-first --where.. csdk profiles-module get --id -csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] -csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--membershipType ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] +csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] +csdk profiles-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--membershipType ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] csdk profiles-module delete --id ``` @@ -58,7 +58,7 @@ csdk profiles-module list --where.id.equalTo --orderBy ID_ASC ### Create a profilesModule ```bash -csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] +csdk profiles-module create --databaseId --membershipType [--schemaId ] [--privateSchemaId ] [--tableId ] [--tableName ] [--profilePermissionsTableId ] [--profilePermissionsTableName ] [--profileGrantsTableId ] [--profileGrantsTableName ] [--profileDefinitionGrantsTableId ] [--profileDefinitionGrantsTableName ] [--profileTemplatesTableId ] [--profileTemplatesTableName ] [--entityTableId ] [--actorTableId ] [--permissionsTableId ] [--membershipsTableId ] [--prefix ] ``` ### Get a profilesModule by id diff --git a/.agents/skills/cli-public/references/storage-module.md b/.agents/skills/cli-public/references/storage-module.md index eb04f68c3..e96cfc3d4 100644 --- a/.agents/skills/cli-public/references/storage-module.md +++ b/.agents/skills/cli-public/references/storage-module.md @@ -12,8 +12,8 @@ csdk storage-module list --where.. --orderBy csdk storage-module list --limit 10 --after csdk storage-module find-first --where.. csdk storage-module get --id -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--uploadRequestsTableId ] [--bucketsTableName ] [--filesTableName ] [--uploadRequestsTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] -csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--uploadRequestsTableId ] [--bucketsTableName ] [--filesTableName ] [--uploadRequestsTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] +csdk storage-module update --id [--databaseId ] [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] csdk storage-module delete --id ``` @@ -58,7 +58,7 @@ csdk storage-module list --where.id.equalTo --orderBy ID_ASC ### Create a storageModule ```bash -csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--uploadRequestsTableId ] [--bucketsTableName ] [--filesTableName ] [--uploadRequestsTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] +csdk storage-module create --databaseId [--schemaId ] [--privateSchemaId ] [--bucketsTableId ] [--filesTableId ] [--bucketsTableName ] [--filesTableName ] [--membershipType ] [--policies ] [--skipDefaultPolicyTables ] [--entityTableId ] [--endpoint ] [--publicUrlPrefix ] [--provider ] [--allowedOrigins ] [--restrictReads ] [--uploadUrlExpirySeconds ] [--downloadUrlExpirySeconds ] [--defaultMaxFileSize ] [--maxFilenameLength ] [--cacheTtlSeconds ] ``` ### Get a storageModule by id diff --git a/.agents/skills/hooks-admin/SKILL.md b/.agents/skills/hooks-admin/SKILL.md index 946a22a48..1f7f2bd80 100644 --- a/.agents/skills/hooks-admin/SKILL.md +++ b/.agents/skills/hooks-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-admin -description: React Query hooks for the admin API — provides typed query and mutation hooks for 34 tables and 16 custom operations +description: React Query hooks for the admin API — provides typed query and mutation hooks for 37 tables and 15 custom operations --- # hooks-admin -React Query hooks for the admin API — provides typed query and mutation hooks for 34 tables and 16 custom operations +React Query hooks for the admin API — provides typed query and mutation hooks for 37 tables and 15 custom operations ## Usage @@ -47,27 +47,30 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [app-limit](references/app-limit.md) - [app-achievement](references/app-achievement.md) - [app-step](references/app-step.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-limit](references/org-limit.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) - [membership-type](references/membership-type.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-membership-default](references/app-membership-default.md) - [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) - [org-chart-edge](references/org-chart-edge.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [org-member-profile](references/org-member-profile.md) -- [org-membership-setting](references/org-membership-setting.md) +- [org-limit](references/org-limit.md) - [app-level](references/app-level.md) - [app-invite](references/app-invite.md) +- [org-membership-setting](references/org-membership-setting.md) - [org-invite](references/org-invite.md) - [app-membership](references/app-membership.md) - [org-membership](references/org-membership.md) @@ -85,5 +88,4 @@ See the `references/` directory for detailed per-entity API documentation: - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-admin/references/app-invite.md b/.agents/skills/hooks-admin/references/app-invite.md index 11c57a151..8697f64c5 100644 --- a/.agents/skills/hooks-admin/references/app-invite.md +++ b/.agents/skills/hooks-admin/references/app-invite.md @@ -7,8 +7,8 @@ Invitation records sent to prospective members via email, with token-based redem ## Usage ```typescript -useAppInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useAppInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useAppInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useAppInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) useCreateAppInviteMutation({ selection: { fields: { id: true } } }) useUpdateAppInviteMutation({ selection: { fields: { id: true } } }) useDeleteAppInviteMutation({}) @@ -20,7 +20,7 @@ useDeleteAppInviteMutation({}) ```typescript const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppInvitesQuery({ const { mutate } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-limit-default.md b/.agents/skills/hooks-admin/references/app-limit-default.md index 584707ba6..da6f1b58c 100644 --- a/.agents/skills/hooks-admin/references/app-limit-default.md +++ b/.agents/skills/hooks-admin/references/app-limit-default.md @@ -7,8 +7,8 @@ Default maximum values for each named limit, applied when no per-actor override ## Usage ```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) useDeleteAppLimitDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteAppLimitDefaultMutation({}) ```typescript const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppLimitDefaultsQuery({ const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', max: '' }); +mutate({ name: '', max: '', softMax: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-limit-event.md b/.agents/skills/hooks-admin/references/app-limit-event.md new file mode 100644 index 000000000..d67a98c76 --- /dev/null +++ b/.agents/skills/hooks-admin/references/app-limit-event.md @@ -0,0 +1,31 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all appLimitEvents + +```typescript +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a appLimitEvent + +```typescript +const { mutate } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/app-limit.md b/.agents/skills/hooks-admin/references/app-limit.md index dc492f90a..b3daa144e 100644 --- a/.agents/skills/hooks-admin/references/app-limit.md +++ b/.agents/skills/hooks-admin/references/app-limit.md @@ -7,8 +7,8 @@ Tracks per-actor usage counts against configurable maximum limits ## Usage ```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) useCreateAppLimitMutation({ selection: { fields: { id: true } } }) useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) useDeleteAppLimitMutation({}) @@ -20,7 +20,7 @@ useDeleteAppLimitMutation({}) ```typescript const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppLimitsQuery({ const { mutate } = useCreateAppLimitMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', actorId: '', num: '', max: '' }); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/app-membership.md b/.agents/skills/hooks-admin/references/app-membership.md index 75b48ac9c..b8d352ef8 100644 --- a/.agents/skills/hooks-admin/references/app-membership.md +++ b/.agents/skills/hooks-admin/references/app-membership.md @@ -7,8 +7,8 @@ Tracks membership records linking actors to entities with permission bitmasks, o ## Usage ```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipMutation({}) @@ -20,7 +20,7 @@ useDeleteAppMembershipMutation({}) ```typescript const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-invite.md b/.agents/skills/hooks-admin/references/org-invite.md index a6fd4d4c9..6c3cec647 100644 --- a/.agents/skills/hooks-admin/references/org-invite.md +++ b/.agents/skills/hooks-admin/references/org-invite.md @@ -7,8 +7,8 @@ Invitation records sent to prospective members via email, with token-based redem ## Usage ```typescript -useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) useDeleteOrgInviteMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgInviteMutation({}) ```typescript const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgInvitesQuery({ const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-limit-aggregate.md b/.agents/skills/hooks-admin/references/org-limit-aggregate.md new file mode 100644 index 000000000..af128ef10 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +useOrgLimitAggregatesQuery({ selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useOrgLimitAggregateQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useCreateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitAggregateMutation({}) +``` + +## Examples + +### List all orgLimitAggregates + +```typescript +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); +``` + +### Create a orgLimitAggregate + +```typescript +const { mutate } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-limit-default.md b/.agents/skills/hooks-admin/references/org-limit-default.md index e8ed74592..343480af8 100644 --- a/.agents/skills/hooks-admin/references/org-limit-default.md +++ b/.agents/skills/hooks-admin/references/org-limit-default.md @@ -7,8 +7,8 @@ Default maximum values for each named limit, applied when no per-actor override ## Usage ```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) useDeleteOrgLimitDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgLimitDefaultMutation({}) ```typescript const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgLimitDefaultsQuery({ const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', max: '' }); +mutate({ name: '', max: '', softMax: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-limit-event.md b/.agents/skills/hooks-admin/references/org-limit-event.md new file mode 100644 index 000000000..4055f0c39 --- /dev/null +++ b/.agents/skills/hooks-admin/references/org-limit-event.md @@ -0,0 +1,31 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgLimitEvents + +```typescript +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a orgLimitEvent + +```typescript +const { mutate } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-admin/references/org-limit.md b/.agents/skills/hooks-admin/references/org-limit.md index 3cd38365d..14120bec0 100644 --- a/.agents/skills/hooks-admin/references/org-limit.md +++ b/.agents/skills/hooks-admin/references/org-limit.md @@ -7,8 +7,8 @@ Tracks per-actor usage counts against configurable maximum limits ## Usage ```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } } }) +useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } } }) useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) useDeleteOrgLimitMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgLimitMutation({}) ```typescript const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgLimitsQuery({ const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }); ``` diff --git a/.agents/skills/hooks-admin/references/org-membership-setting.md b/.agents/skills/hooks-admin/references/org-membership-setting.md index 0001b8e5b..e3bc7d179 100644 --- a/.agents/skills/hooks-admin/references/org-membership-setting.md +++ b/.agents/skills/hooks-admin/references/org-membership-setting.md @@ -7,8 +7,8 @@ Per-entity settings for the memberships module ## Usage ```typescript -useOrgMembershipSettingsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } } }) -useOrgMembershipSettingQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } } }) +useOrgMembershipSettingsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) +useOrgMembershipSettingQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMembershipSettingMutation({}) ```typescript const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipSettingsQuery({ const { mutate } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }); +mutate({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` diff --git a/.agents/skills/hooks-auth/SKILL.md b/.agents/skills/hooks-auth/SKILL.md index 83a627cff..8d96cc367 100644 --- a/.agents/skills/hooks-auth/SKILL.md +++ b/.agents/skills/hooks-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-auth -description: React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 29 custom operations +description: React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 28 custom operations --- # hooks-auth -React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 29 custom operations +React Query hooks for the auth API — provides typed query and mutation hooks for 9 tables and 28 custom operations ## Usage @@ -73,5 +73,4 @@ See the `references/` directory for detailed per-entity API documentation: - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-objects/SKILL.md b/.agents/skills/hooks-objects/SKILL.md index 12b366931..bd44b5707 100644 --- a/.agents/skills/hooks-objects/SKILL.md +++ b/.agents/skills/hooks-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-objects -description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 15 custom operations +description: React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 14 custom operations --- # hooks-objects -React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 15 custom operations +React Query hooks for the objects API — provides typed query and mutation hooks for 5 tables and 14 custom operations ## Usage @@ -55,5 +55,4 @@ See the `references/` directory for detailed per-entity API documentation: - [update-node-at-path](references/update-node-at-path.md) - [set-and-commit](references/set-and-commit.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-public/SKILL.md b/.agents/skills/hooks-public/SKILL.md index e7aeba197..a1a2555bd 100644 --- a/.agents/skills/hooks-public/SKILL.md +++ b/.agents/skills/hooks-public/SKILL.md @@ -1,13 +1,13 @@ --- name: hooks-public -description: React Query hooks for the public API — provides typed query and mutation hooks for 120 tables and 72 custom operations +description: React Query hooks for the public API — provides typed query and mutation hooks for 129 tables and 71 custom operations --- # hooks-public -React Query hooks for the public API — provides typed query and mutation hooks for 120 tables and 72 custom operations +React Query hooks for the public API — provides typed query and mutation hooks for 129 tables and 71 custom operations ## Usage @@ -40,9 +40,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) +- [object](references/object.md) - [app-level-requirement](references/app-level-requirement.md) - [database](references/database.md) - [schema](references/schema.md) @@ -123,6 +123,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-limit](references/app-limit.md) - [org-limit](references/org-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [app-step](references/app-step.md) - [app-achievement](references/app-achievement.md) - [app-level](references/app-level.md) @@ -135,26 +136,34 @@ See the `references/` directory for detailed per-entity API documentation: - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) - [audit-log](references/audit-log.md) -- [app-permission-default](references/app-permission-default.md) +- [agent-thread](references/agent-thread.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) -- [role-type](references/role-type.md) +- [app-permission-default](references/app-permission-default.md) +- [membership-type](references/membership-type.md) - [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) -- [devices-module](references/devices-module.md) - [user-connected-account](references/user-connected-account.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [commit](references/commit.md) - [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [plans-module](references/plans-module.md) - [rls-module](references/rls-module.md) - [sql-action](references/sql-action.md) -- [org-membership-setting](references/org-membership-setting.md) -- [user](references/user.md) +- [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -172,11 +181,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [steps-required](references/steps-required.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) @@ -220,12 +229,11 @@ See the `references/` directory for detailed per-entity API documentation: - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/hooks-public/references/agent-message.md b/.agents/skills/hooks-public/references/agent-message.md new file mode 100644 index 000000000..679cbd05b --- /dev/null +++ b/.agents/skills/hooks-public/references/agent-message.md @@ -0,0 +1,34 @@ +# agentMessage + + + +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. + +## Usage + +```typescript +useAgentMessagesQuery({ selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } } }) +useAgentMessageQuery({ id: '', selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } } }) +useCreateAgentMessageMutation({ selection: { fields: { id: true } } }) +useUpdateAgentMessageMutation({ selection: { fields: { id: true } } }) +useDeleteAgentMessageMutation({}) +``` + +## Examples + +### List all agentMessages + +```typescript +const { data, isLoading } = useAgentMessagesQuery({ + selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, +}); +``` + +### Create a agentMessage + +```typescript +const { mutate } = useCreateAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +mutate({ threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }); +``` diff --git a/.agents/skills/hooks-public/references/agent-task.md b/.agents/skills/hooks-public/references/agent-task.md new file mode 100644 index 000000000..dbc7b2593 --- /dev/null +++ b/.agents/skills/hooks-public/references/agent-task.md @@ -0,0 +1,34 @@ +# agentTask + + + +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. + +## Usage + +```typescript +useAgentTasksQuery({ selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } } }) +useAgentTaskQuery({ id: '', selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } } }) +useCreateAgentTaskMutation({ selection: { fields: { id: true } } }) +useUpdateAgentTaskMutation({ selection: { fields: { id: true } } }) +useDeleteAgentTaskMutation({}) +``` + +## Examples + +### List all agentTasks + +```typescript +const { data, isLoading } = useAgentTasksQuery({ + selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, +}); +``` + +### Create a agentTask + +```typescript +const { mutate } = useCreateAgentTaskMutation({ + selection: { fields: { id: true } }, +}); +mutate({ threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }); +``` diff --git a/.agents/skills/hooks-public/references/agent-thread.md b/.agents/skills/hooks-public/references/agent-thread.md new file mode 100644 index 000000000..0ecb45263 --- /dev/null +++ b/.agents/skills/hooks-public/references/agent-thread.md @@ -0,0 +1,34 @@ +# agentThread + + + +Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + +## Usage + +```typescript +useAgentThreadsQuery({ selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } } }) +useAgentThreadQuery({ id: '', selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } } }) +useCreateAgentThreadMutation({ selection: { fields: { id: true } } }) +useUpdateAgentThreadMutation({ selection: { fields: { id: true } } }) +useDeleteAgentThreadMutation({}) +``` + +## Examples + +### List all agentThreads + +```typescript +const { data, isLoading } = useAgentThreadsQuery({ + selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, +}); +``` + +### Create a agentThread + +```typescript +const { mutate } = useCreateAgentThreadMutation({ + selection: { fields: { id: true } }, +}); +mutate({ title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }); +``` diff --git a/.agents/skills/hooks-public/references/app-invite.md b/.agents/skills/hooks-public/references/app-invite.md index 11c57a151..8697f64c5 100644 --- a/.agents/skills/hooks-public/references/app-invite.md +++ b/.agents/skills/hooks-public/references/app-invite.md @@ -7,8 +7,8 @@ Invitation records sent to prospective members via email, with token-based redem ## Usage ```typescript -useAppInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) -useAppInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useAppInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) +useAppInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } } }) useCreateAppInviteMutation({ selection: { fields: { id: true } } }) useUpdateAppInviteMutation({ selection: { fields: { id: true } } }) useDeleteAppInviteMutation({}) @@ -20,7 +20,7 @@ useDeleteAppInviteMutation({}) ```typescript const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppInvitesQuery({ const { mutate } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +mutate({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` diff --git a/.agents/skills/hooks-public/references/app-limit-default.md b/.agents/skills/hooks-public/references/app-limit-default.md index 584707ba6..da6f1b58c 100644 --- a/.agents/skills/hooks-public/references/app-limit-default.md +++ b/.agents/skills/hooks-public/references/app-limit-default.md @@ -7,8 +7,8 @@ Default maximum values for each named limit, applied when no per-actor override ## Usage ```typescript -useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useAppLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useAppLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) useUpdateAppLimitDefaultMutation({ selection: { fields: { id: true } } }) useDeleteAppLimitDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteAppLimitDefaultMutation({}) ```typescript const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppLimitDefaultsQuery({ const { mutate } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', max: '' }); +mutate({ name: '', max: '', softMax: '' }); ``` diff --git a/.agents/skills/hooks-public/references/app-limit-event.md b/.agents/skills/hooks-public/references/app-limit-event.md new file mode 100644 index 000000000..d67a98c76 --- /dev/null +++ b/.agents/skills/hooks-public/references/app-limit-event.md @@ -0,0 +1,31 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useAppLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateAppLimitEventMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all appLimitEvents + +```typescript +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a appLimitEvent + +```typescript +const { mutate } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-public/references/app-limit.md b/.agents/skills/hooks-public/references/app-limit.md index dc492f90a..b3daa144e 100644 --- a/.agents/skills/hooks-public/references/app-limit.md +++ b/.agents/skills/hooks-public/references/app-limit.md @@ -7,8 +7,8 @@ Tracks per-actor usage counts against configurable maximum limits ## Usage ```typescript -useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) -useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } } }) +useAppLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useAppLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) useCreateAppLimitMutation({ selection: { fields: { id: true } } }) useUpdateAppLimitMutation({ selection: { fields: { id: true } } }) useDeleteAppLimitMutation({}) @@ -20,7 +20,7 @@ useDeleteAppLimitMutation({}) ```typescript const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppLimitsQuery({ const { mutate } = useCreateAppLimitMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', actorId: '', num: '', max: '' }); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); ``` diff --git a/.agents/skills/hooks-public/references/app-membership.md b/.agents/skills/hooks-public/references/app-membership.md index 75b48ac9c..b8d352ef8 100644 --- a/.agents/skills/hooks-public/references/app-membership.md +++ b/.agents/skills/hooks-public/references/app-membership.md @@ -7,8 +7,8 @@ Tracks membership records linking actors to entities with permission bitmasks, o ## Usage ```typescript -useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) -useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) +useAppMembershipQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } } }) useCreateAppMembershipMutation({ selection: { fields: { id: true } } }) useUpdateAppMembershipMutation({ selection: { fields: { id: true } } }) useDeleteAppMembershipMutation({}) @@ -20,7 +20,7 @@ useDeleteAppMembershipMutation({}) ```typescript const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useAppMembershipsQuery({ const { mutate } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +mutate({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/billing-module.md b/.agents/skills/hooks-public/references/billing-module.md new file mode 100644 index 000000000..8501e0aa3 --- /dev/null +++ b/.agents/skills/hooks-public/references/billing-module.md @@ -0,0 +1,34 @@ +# billingModule + + + +React Query hooks for BillingModule data operations + +## Usage + +```typescript +useBillingModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) +useBillingModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } } }) +useCreateBillingModuleMutation({ selection: { fields: { id: true } } }) +useUpdateBillingModuleMutation({ selection: { fields: { id: true } } }) +useDeleteBillingModuleMutation({}) +``` + +## Examples + +### List all billingModules + +```typescript +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, +}); +``` + +### Create a billingModule + +```typescript +const { mutate } = useCreateBillingModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/limits-module.md b/.agents/skills/hooks-public/references/limits-module.md index 4c9cd0aee..fb2be2b67 100644 --- a/.agents/skills/hooks-public/references/limits-module.md +++ b/.agents/skills/hooks-public/references/limits-module.md @@ -7,8 +7,8 @@ React Query hooks for LimitsModule data operations ## Usage ```typescript -useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) -useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useLimitsModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) +useLimitsModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } } }) useCreateLimitsModuleMutation({ selection: { fields: { id: true } } }) useUpdateLimitsModuleMutation({ selection: { fields: { id: true } } }) useDeleteLimitsModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteLimitsModuleMutation({}) ```typescript const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useLimitsModulesQuery({ const { mutate } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/node-type-registry.md b/.agents/skills/hooks-public/references/node-type-registry.md index 1ba771d83..cd5642e1e 100644 --- a/.agents/skills/hooks-public/references/node-type-registry.md +++ b/.agents/skills/hooks-public/references/node-type-registry.md @@ -2,13 +2,13 @@ -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). +React Query hooks for NodeTypeRegistry data operations ## Usage ```typescript -useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, summary: true, parameterSchema: true, guidance: true, tags: true, createdAt: true, updatedAt: true } } }) -useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, summary: true, parameterSchema: true, guidance: true, tags: true, createdAt: true, updatedAt: true } } }) +useNodeTypeRegistriesQuery({ selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) +useNodeTypeRegistryQuery({ name: '', selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } } }) useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) useUpdateNodeTypeRegistryMutation({ selection: { fields: { name: true } } }) useDeleteNodeTypeRegistryMutation({}) @@ -20,7 +20,7 @@ useDeleteNodeTypeRegistryMutation({}) ```typescript const { data, isLoading } = useNodeTypeRegistriesQuery({ - selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, summary: true, parameterSchema: true, guidance: true, tags: true, createdAt: true, updatedAt: true } }, + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useNodeTypeRegistriesQuery({ const { mutate } = useCreateNodeTypeRegistryMutation({ selection: { fields: { name: true } }, }); -mutate({ slug: '', category: '', displayName: '', description: '', summary: '', parameterSchema: '', guidance: '', tags: '' }); +mutate({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-invite.md b/.agents/skills/hooks-public/references/org-invite.md index a6fd4d4c9..6c3cec647 100644 --- a/.agents/skills/hooks-public/references/org-invite.md +++ b/.agents/skills/hooks-public/references/org-invite.md @@ -7,8 +7,8 @@ Invitation records sent to prospective members via email, with token-based redem ## Usage ```typescript -useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) -useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInvitesQuery({ selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) +useOrgInviteQuery({ id: '', selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } } }) useCreateOrgInviteMutation({ selection: { fields: { id: true } } }) useUpdateOrgInviteMutation({ selection: { fields: { id: true } } }) useDeleteOrgInviteMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgInviteMutation({}) ```typescript const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgInvitesQuery({ const { mutate } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +mutate({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-limit-aggregate.md b/.agents/skills/hooks-public/references/org-limit-aggregate.md new file mode 100644 index 000000000..af128ef10 --- /dev/null +++ b/.agents/skills/hooks-public/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +useOrgLimitAggregatesQuery({ selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useOrgLimitAggregateQuery({ id: '', selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } } }) +useCreateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useUpdateOrgLimitAggregateMutation({ selection: { fields: { id: true } } }) +useDeleteOrgLimitAggregateMutation({}) +``` + +## Examples + +### List all orgLimitAggregates + +```typescript +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); +``` + +### Create a orgLimitAggregate + +```typescript +const { mutate } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); +``` diff --git a/.agents/skills/hooks-public/references/org-limit-default.md b/.agents/skills/hooks-public/references/org-limit-default.md index e8ed74592..343480af8 100644 --- a/.agents/skills/hooks-public/references/org-limit-default.md +++ b/.agents/skills/hooks-public/references/org-limit-default.md @@ -7,8 +7,8 @@ Default maximum values for each named limit, applied when no per-actor override ## Usage ```typescript -useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true } } }) -useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true } } }) +useOrgLimitDefaultsQuery({ selection: { fields: { id: true, name: true, max: true, softMax: true } } }) +useOrgLimitDefaultQuery({ id: '', selection: { fields: { id: true, name: true, max: true, softMax: true } } }) useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) useUpdateOrgLimitDefaultMutation({ selection: { fields: { id: true } } }) useDeleteOrgLimitDefaultMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgLimitDefaultMutation({}) ```typescript const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgLimitDefaultsQuery({ const { mutate } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', max: '' }); +mutate({ name: '', max: '', softMax: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-limit-event.md b/.agents/skills/hooks-public/references/org-limit-event.md new file mode 100644 index 000000000..4055f0c39 --- /dev/null +++ b/.agents/skills/hooks-public/references/org-limit-event.md @@ -0,0 +1,31 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +useOrgLimitEventsQuery({ selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } } }) +useCreateOrgLimitEventMutation({ selection: { fields: { id: true } } }) +``` + +## Examples + +### List all orgLimitEvents + +```typescript +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); +``` + +### Create a orgLimitEvent + +```typescript +const { mutate } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +mutate({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` diff --git a/.agents/skills/hooks-public/references/org-limit.md b/.agents/skills/hooks-public/references/org-limit.md index 3cd38365d..14120bec0 100644 --- a/.agents/skills/hooks-public/references/org-limit.md +++ b/.agents/skills/hooks-public/references/org-limit.md @@ -7,8 +7,8 @@ Tracks per-actor usage counts against configurable maximum limits ## Usage ```typescript -useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) -useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } } }) +useOrgLimitsQuery({ selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } } }) +useOrgLimitQuery({ id: '', selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } } }) useCreateOrgLimitMutation({ selection: { fields: { id: true } } }) useUpdateOrgLimitMutation({ selection: { fields: { id: true } } }) useDeleteOrgLimitMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgLimitMutation({}) ```typescript const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgLimitsQuery({ const { mutate } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -mutate({ name: '', actorId: '', num: '', max: '', entityId: '' }); +mutate({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }); ``` diff --git a/.agents/skills/hooks-public/references/org-membership-setting.md b/.agents/skills/hooks-public/references/org-membership-setting.md index 0001b8e5b..e3bc7d179 100644 --- a/.agents/skills/hooks-public/references/org-membership-setting.md +++ b/.agents/skills/hooks-public/references/org-membership-setting.md @@ -7,8 +7,8 @@ Per-entity settings for the memberships module ## Usage ```typescript -useOrgMembershipSettingsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } } }) -useOrgMembershipSettingQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } } }) +useOrgMembershipSettingsQuery({ selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) +useOrgMembershipSettingQuery({ id: '', selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } } }) useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useUpdateOrgMembershipSettingMutation({ selection: { fields: { id: true } } }) useDeleteOrgMembershipSettingMutation({}) @@ -20,7 +20,7 @@ useDeleteOrgMembershipSettingMutation({}) ```typescript const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useOrgMembershipSettingsQuery({ const { mutate } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -mutate({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }); +mutate({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` diff --git a/.agents/skills/hooks-public/references/plans-module.md b/.agents/skills/hooks-public/references/plans-module.md new file mode 100644 index 000000000..b274c27df --- /dev/null +++ b/.agents/skills/hooks-public/references/plans-module.md @@ -0,0 +1,34 @@ +# plansModule + + + +React Query hooks for PlansModule data operations + +## Usage + +```typescript +usePlansModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } } }) +usePlansModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } } }) +useCreatePlansModuleMutation({ selection: { fields: { id: true } } }) +useUpdatePlansModuleMutation({ selection: { fields: { id: true } } }) +useDeletePlansModuleMutation({}) +``` + +## Examples + +### List all plansModules + +```typescript +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, +}); +``` + +### Create a plansModule + +```typescript +const { mutate } = useCreatePlansModuleMutation({ + selection: { fields: { id: true } }, +}); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }); +``` diff --git a/.agents/skills/hooks-public/references/profiles-module.md b/.agents/skills/hooks-public/references/profiles-module.md index d78be4df3..35df45579 100644 --- a/.agents/skills/hooks-public/references/profiles-module.md +++ b/.agents/skills/hooks-public/references/profiles-module.md @@ -7,8 +7,8 @@ React Query hooks for ProfilesModule data operations ## Usage ```typescript -useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) -useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useProfilesModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) +useProfilesModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } } }) useCreateProfilesModuleMutation({ selection: { fields: { id: true } } }) useUpdateProfilesModuleMutation({ selection: { fields: { id: true } } }) useDeleteProfilesModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteProfilesModuleMutation({}) ```typescript const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useProfilesModulesQuery({ const { mutate } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` diff --git a/.agents/skills/hooks-public/references/storage-module.md b/.agents/skills/hooks-public/references/storage-module.md index 5b64297bc..31f502a69 100644 --- a/.agents/skills/hooks-public/references/storage-module.md +++ b/.agents/skills/hooks-public/references/storage-module.md @@ -7,8 +7,8 @@ React Query hooks for StorageModule data operations ## Usage ```typescript -useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } } }) -useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } } }) +useStorageModulesQuery({ selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } } }) +useStorageModuleQuery({ id: '', selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } } }) useCreateStorageModuleMutation({ selection: { fields: { id: true } } }) useUpdateStorageModuleMutation({ selection: { fields: { id: true } } }) useDeleteStorageModuleMutation({}) @@ -20,7 +20,7 @@ useDeleteStorageModuleMutation({}) ```typescript const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, }); ``` @@ -30,5 +30,5 @@ const { data, isLoading } = useStorageModulesQuery({ const { mutate } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }); +mutate({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }); ``` diff --git a/.agents/skills/orm-admin/SKILL.md b/.agents/skills/orm-admin/SKILL.md index d3f0f175c..e49605352 100644 --- a/.agents/skills/orm-admin/SKILL.md +++ b/.agents/skills/orm-admin/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-admin -description: ORM client for the admin API — provides typed CRUD operations for 34 tables and 16 custom operations +description: ORM client for the admin API — provides typed CRUD operations for 37 tables and 15 custom operations --- # orm-admin -ORM client for the admin API — provides typed CRUD operations for 34 tables and 16 custom operations +ORM client for the admin API — provides typed CRUD operations for 37 tables and 15 custom operations ## Usage @@ -47,27 +47,30 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-admin-grant](references/app-admin-grant.md) - [app-owner-grant](references/app-owner-grant.md) -- [app-limit-default](references/app-limit-default.md) -- [org-limit-default](references/org-limit-default.md) -- [org-admin-grant](references/org-admin-grant.md) -- [org-owner-grant](references/org-owner-grant.md) -- [app-limit](references/app-limit.md) - [app-achievement](references/app-achievement.md) - [app-step](references/app-step.md) -- [app-claimed-invite](references/app-claimed-invite.md) -- [org-chart-edge-grant](references/org-chart-edge-grant.md) -- [org-limit](references/org-limit.md) +- [org-admin-grant](references/org-admin-grant.md) +- [org-owner-grant](references/org-owner-grant.md) - [membership-type](references/membership-type.md) +- [app-limit-default](references/app-limit-default.md) +- [org-limit-default](references/org-limit-default.md) +- [org-chart-edge-grant](references/org-chart-edge-grant.md) +- [app-claimed-invite](references/app-claimed-invite.md) - [app-grant](references/app-grant.md) - [app-membership-default](references/app-membership-default.md) - [org-membership-default](references/org-membership-default.md) - [org-claimed-invite](references/org-claimed-invite.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) - [org-grant](references/org-grant.md) - [org-chart-edge](references/org-chart-edge.md) +- [app-limit](references/app-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [org-member-profile](references/org-member-profile.md) -- [org-membership-setting](references/org-membership-setting.md) +- [org-limit](references/org-limit.md) - [app-level](references/app-level.md) - [app-invite](references/app-invite.md) +- [org-membership-setting](references/org-membership-setting.md) - [org-invite](references/org-invite.md) - [app-membership](references/app-membership.md) - [org-membership](references/org-membership.md) @@ -85,5 +88,4 @@ See the `references/` directory for detailed per-entity API documentation: - [submit-app-invite-code](references/submit-app-invite-code.md) - [submit-org-invite-code](references/submit-org-invite-code.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-admin/references/app-invite.md b/.agents/skills/orm-admin/references/app-invite.md index 0ef776d7f..6e9410ddd 100644 --- a/.agents/skills/orm-admin/references/app-invite.md +++ b/.agents/skills/orm-admin/references/app-invite.md @@ -9,7 +9,7 @@ Invitation records sent to prospective members via email, with token-based redem ```typescript db.appInvite.findMany({ select: { id: true } }).execute() db.appInvite.findOne({ id: '', select: { id: true } }).execute() -db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute() db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() db.appInvite.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appInvite.findMany({ ```typescript const item = await db.appInvite.create({ - data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, + data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/app-limit-default.md b/.agents/skills/orm-admin/references/app-limit-default.md index 190a99345..e4fc4452e 100644 --- a/.agents/skills/orm-admin/references/app-limit-default.md +++ b/.agents/skills/orm-admin/references/app-limit-default.md @@ -9,7 +9,7 @@ Default maximum values for each named limit, applied when no per-actor override ```typescript db.appLimitDefault.findMany({ select: { id: true } }).execute() db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.appLimitDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appLimitDefault.findMany({ ```typescript const item = await db.appLimitDefault.create({ - data: { name: '', max: '' }, + data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/app-limit-event.md b/.agents/skills/orm-admin/references/app-limit-event.md new file mode 100644 index 000000000..48e885a57 --- /dev/null +++ b/.agents/skills/orm-admin/references/app-limit-event.md @@ -0,0 +1,34 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.appLimitEvent.findMany({ select: { id: true } }).execute() +db.appLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitEvent records + +```typescript +const items = await db.appLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitEvent + +```typescript +const item = await db.appLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/app-limit.md b/.agents/skills/orm-admin/references/app-limit.md index 64479eef7..0e5cb9fbe 100644 --- a/.agents/skills/orm-admin/references/app-limit.md +++ b/.agents/skills/orm-admin/references/app-limit.md @@ -9,7 +9,7 @@ Tracks per-actor usage counts against configurable maximum limits ```typescript db.appLimit.findMany({ select: { id: true } }).execute() db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute() db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.appLimit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appLimit.findMany({ ```typescript const item = await db.appLimit.create({ - data: { name: '', actorId: '', num: '', max: '' }, + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/app-membership.md b/.agents/skills/orm-admin/references/app-membership.md index 85ab2af03..b71afa545 100644 --- a/.agents/skills/orm-admin/references/app-membership.md +++ b/.agents/skills/orm-admin/references/app-membership.md @@ -9,7 +9,7 @@ Tracks membership records linking actors to entities with permission bitmasks, o ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.appMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appMembership.findMany({ ```typescript const item = await db.appMembership.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, + data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-invite.md b/.agents/skills/orm-admin/references/org-invite.md index a157ec76d..427b03025 100644 --- a/.agents/skills/orm-admin/references/org-invite.md +++ b/.agents/skills/orm-admin/references/org-invite.md @@ -9,7 +9,7 @@ Invitation records sent to prospective members via email, with token-based redem ```typescript db.orgInvite.findMany({ select: { id: true } }).execute() db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() db.orgInvite.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgInvite.findMany({ ```typescript const item = await db.orgInvite.create({ - data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, + data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-limit-aggregate.md b/.agents/skills/orm-admin/references/org-limit-aggregate.md new file mode 100644 index 000000000..b96e1215b --- /dev/null +++ b/.agents/skills/orm-admin/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +db.orgLimitAggregate.findMany({ select: { id: true } }).execute() +db.orgLimitAggregate.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitAggregate records + +```typescript +const items = await db.orgLimitAggregate.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitAggregate + +```typescript +const item = await db.orgLimitAggregate.create({ + data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-limit-default.md b/.agents/skills/orm-admin/references/org-limit-default.md index c0f2d4008..70eb9ec16 100644 --- a/.agents/skills/orm-admin/references/org-limit-default.md +++ b/.agents/skills/orm-admin/references/org-limit-default.md @@ -9,7 +9,7 @@ Default maximum values for each named limit, applied when no per-actor override ```typescript db.orgLimitDefault.findMany({ select: { id: true } }).execute() db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.orgLimitDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgLimitDefault.findMany({ ```typescript const item = await db.orgLimitDefault.create({ - data: { name: '', max: '' }, + data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-limit-event.md b/.agents/skills/orm-admin/references/org-limit-event.md new file mode 100644 index 000000000..010df78d3 --- /dev/null +++ b/.agents/skills/orm-admin/references/org-limit-event.md @@ -0,0 +1,34 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.orgLimitEvent.findMany({ select: { id: true } }).execute() +db.orgLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitEvent records + +```typescript +const items = await db.orgLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitEvent + +```typescript +const item = await db.orgLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-admin/references/org-limit.md b/.agents/skills/orm-admin/references/org-limit.md index 36c8afdd1..91c82cccd 100644 --- a/.agents/skills/orm-admin/references/org-limit.md +++ b/.agents/skills/orm-admin/references/org-limit.md @@ -9,7 +9,7 @@ Tracks per-actor usage counts against configurable maximum limits ```typescript db.orgLimit.findMany({ select: { id: true } }).execute() db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute() db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.orgLimit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgLimit.findMany({ ```typescript const item = await db.orgLimit.create({ - data: { name: '', actorId: '', num: '', max: '', entityId: '' }, + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-admin/references/org-membership-setting.md b/.agents/skills/orm-admin/references/org-membership-setting.md index af8b579d0..687837b00 100644 --- a/.agents/skills/orm-admin/references/org-membership-setting.md +++ b/.agents/skills/orm-admin/references/org-membership-setting.md @@ -9,7 +9,7 @@ Per-entity settings for the memberships module ```typescript db.orgMembershipSetting.findMany({ select: { id: true } }).execute() db.orgMembershipSetting.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute() +db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute() db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.orgMembershipSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMembershipSetting.findMany({ ```typescript const item = await db.orgMembershipSetting.create({ - data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, + data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-auth/SKILL.md b/.agents/skills/orm-auth/SKILL.md index bd5028707..9b5810cdb 100644 --- a/.agents/skills/orm-auth/SKILL.md +++ b/.agents/skills/orm-auth/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-auth -description: ORM client for the auth API — provides typed CRUD operations for 9 tables and 29 custom operations +description: ORM client for the auth API — provides typed CRUD operations for 9 tables and 28 custom operations --- # orm-auth -ORM client for the auth API — provides typed CRUD operations for 9 tables and 29 custom operations +ORM client for the auth API — provides typed CRUD operations for 9 tables and 28 custom operations ## Usage @@ -73,5 +73,4 @@ See the `references/` directory for detailed per-entity API documentation: - [forgot-password](references/forgot-password.md) - [send-verification-email](references/send-verification-email.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-objects/SKILL.md b/.agents/skills/orm-objects/SKILL.md index 3c1a4c6de..529758daa 100644 --- a/.agents/skills/orm-objects/SKILL.md +++ b/.agents/skills/orm-objects/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-objects -description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 15 custom operations +description: ORM client for the objects API — provides typed CRUD operations for 5 tables and 14 custom operations --- # orm-objects -ORM client for the objects API — provides typed CRUD operations for 5 tables and 15 custom operations +ORM client for the objects API — provides typed CRUD operations for 5 tables and 14 custom operations ## Usage @@ -55,5 +55,4 @@ See the `references/` directory for detailed per-entity API documentation: - [update-node-at-path](references/update-node-at-path.md) - [set-and-commit](references/set-and-commit.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-public/SKILL.md b/.agents/skills/orm-public/SKILL.md index 3003c1f74..15c69f460 100644 --- a/.agents/skills/orm-public/SKILL.md +++ b/.agents/skills/orm-public/SKILL.md @@ -1,13 +1,13 @@ --- name: orm-public -description: ORM client for the public API — provides typed CRUD operations for 120 tables and 72 custom operations +description: ORM client for the public API — provides typed CRUD operations for 129 tables and 71 custom operations --- # orm-public -ORM client for the public API — provides typed CRUD operations for 120 tables and 72 custom operations +ORM client for the public API — provides typed CRUD operations for 129 tables and 71 custom operations ## Usage @@ -15,7 +15,7 @@ ORM client for the public API — provides typed CRUD operations for 120 tables // Import the ORM client import { db } from './orm'; -// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, object, appPermission, orgPermission, appLevelRequirement, database, ... +// Available models: orgGetManagersRecord, orgGetSubordinatesRecord, getAllRecord, appPermission, orgPermission, object, appLevelRequirement, database, ... db..findMany({ select: { id: true } }).execute() db..findOne({ id: '', select: { id: true } }).execute() db..create({ data: { ... }, select: { id: true } }).execute() @@ -40,9 +40,9 @@ See the `references/` directory for detailed per-entity API documentation: - [org-get-managers-record](references/org-get-managers-record.md) - [org-get-subordinates-record](references/org-get-subordinates-record.md) - [get-all-record](references/get-all-record.md) -- [object](references/object.md) - [app-permission](references/app-permission.md) - [org-permission](references/org-permission.md) +- [object](references/object.md) - [app-level-requirement](references/app-level-requirement.md) - [database](references/database.md) - [schema](references/schema.md) @@ -123,6 +123,7 @@ See the `references/` directory for detailed per-entity API documentation: - [org-permission-default](references/org-permission-default.md) - [app-limit](references/app-limit.md) - [org-limit](references/org-limit.md) +- [org-limit-aggregate](references/org-limit-aggregate.md) - [app-step](references/app-step.md) - [app-achievement](references/app-achievement.md) - [app-level](references/app-level.md) @@ -135,26 +136,34 @@ See the `references/` directory for detailed per-entity API documentation: - [org-invite](references/org-invite.md) - [org-claimed-invite](references/org-claimed-invite.md) - [audit-log](references/audit-log.md) -- [app-permission-default](references/app-permission-default.md) +- [agent-thread](references/agent-thread.md) +- [agent-message](references/agent-message.md) +- [agent-task](references/agent-task.md) +- [role-type](references/role-type.md) - [identity-provider](references/identity-provider.md) - [ref](references/ref.md) - [store](references/store.md) -- [role-type](references/role-type.md) +- [app-permission-default](references/app-permission-default.md) +- [membership-type](references/membership-type.md) - [migrate-file](references/migrate-file.md) +- [devices-module](references/devices-module.md) +- [node-type-registry](references/node-type-registry.md) - [app-limit-default](references/app-limit-default.md) - [org-limit-default](references/org-limit-default.md) -- [devices-module](references/devices-module.md) - [user-connected-account](references/user-connected-account.md) -- [app-membership-default](references/app-membership-default.md) -- [org-membership-default](references/org-membership-default.md) - [commit](references/commit.md) - [rate-limits-module](references/rate-limits-module.md) -- [membership-type](references/membership-type.md) +- [app-membership-default](references/app-membership-default.md) +- [org-membership-default](references/org-membership-default.md) +- [app-limit-event](references/app-limit-event.md) +- [org-limit-event](references/org-limit-event.md) +- [plans-module](references/plans-module.md) - [rls-module](references/rls-module.md) - [sql-action](references/sql-action.md) -- [org-membership-setting](references/org-membership-setting.md) -- [user](references/user.md) +- [billing-module](references/billing-module.md) - [ast-migration](references/ast-migration.md) +- [user](references/user.md) +- [org-membership-setting](references/org-membership-setting.md) - [app-membership](references/app-membership.md) - [hierarchy-module](references/hierarchy-module.md) - [current-user-id](references/current-user-id.md) @@ -172,11 +181,11 @@ See the `references/` directory for detailed per-entity API documentation: - [resolve-blueprint-table](references/resolve-blueprint-table.md) - [app-permissions-get-mask-by-names](references/app-permissions-get-mask-by-names.md) - [org-permissions-get-mask-by-names](references/org-permissions-get-mask-by-names.md) +- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) +- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [get-all-objects-from-root](references/get-all-objects-from-root.md) - [get-path-objects-from-root](references/get-path-objects-from-root.md) - [get-object-at-path](references/get-object-at-path.md) -- [app-permissions-get-by-mask](references/app-permissions-get-by-mask.md) -- [org-permissions-get-by-mask](references/org-permissions-get-by-mask.md) - [steps-required](references/steps-required.md) - [current-user](references/current-user.md) - [send-account-deletion-email](references/send-account-deletion-email.md) @@ -220,12 +229,11 @@ See the `references/` directory for detailed per-entity API documentation: - [create-user-database](references/create-user-database.md) - [extend-token-expires](references/extend-token-expires.md) - [create-api-key](references/create-api-key.md) +- [send-verification-email](references/send-verification-email.md) +- [forgot-password](references/forgot-password.md) - [sign-up](references/sign-up.md) - [request-cross-origin-token](references/request-cross-origin-token.md) - [sign-in](references/sign-in.md) - [provision-table](references/provision-table.md) -- [send-verification-email](references/send-verification-email.md) -- [forgot-password](references/forgot-password.md) - [request-upload-url](references/request-upload-url.md) -- [confirm-upload](references/confirm-upload.md) - [provision-bucket](references/provision-bucket.md) diff --git a/.agents/skills/orm-public/references/agent-message.md b/.agents/skills/orm-public/references/agent-message.md new file mode 100644 index 000000000..bb9b75364 --- /dev/null +++ b/.agents/skills/orm-public/references/agent-message.md @@ -0,0 +1,34 @@ +# agentMessage + + + +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. + +## Usage + +```typescript +db.agentMessage.findMany({ select: { id: true } }).execute() +db.agentMessage.findOne({ id: '', select: { id: true } }).execute() +db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute() +db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute() +db.agentMessage.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentMessage records + +```typescript +const items = await db.agentMessage.findMany({ + select: { id: true, threadId: true } +}).execute(); +``` + +### Create a agentMessage + +```typescript +const item = await db.agentMessage.create({ + data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/agent-task.md b/.agents/skills/orm-public/references/agent-task.md new file mode 100644 index 000000000..0193b5e0f --- /dev/null +++ b/.agents/skills/orm-public/references/agent-task.md @@ -0,0 +1,34 @@ +# agentTask + + + +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. + +## Usage + +```typescript +db.agentTask.findMany({ select: { id: true } }).execute() +db.agentTask.findOne({ id: '', select: { id: true } }).execute() +db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute() +db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute() +db.agentTask.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentTask records + +```typescript +const items = await db.agentTask.findMany({ + select: { id: true, threadId: true } +}).execute(); +``` + +### Create a agentTask + +```typescript +const item = await db.agentTask.create({ + data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/agent-thread.md b/.agents/skills/orm-public/references/agent-thread.md new file mode 100644 index 000000000..c05029b5c --- /dev/null +++ b/.agents/skills/orm-public/references/agent-thread.md @@ -0,0 +1,34 @@ +# agentThread + + + +Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + +## Usage + +```typescript +db.agentThread.findMany({ select: { id: true } }).execute() +db.agentThread.findOne({ id: '', select: { id: true } }).execute() +db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute() +db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute() +db.agentThread.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all agentThread records + +```typescript +const items = await db.agentThread.findMany({ + select: { id: true, title: true } +}).execute(); +``` + +### Create a agentThread + +```typescript +const item = await db.agentThread.create({ + data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/app-invite.md b/.agents/skills/orm-public/references/app-invite.md index 0ef776d7f..6e9410ddd 100644 --- a/.agents/skills/orm-public/references/app-invite.md +++ b/.agents/skills/orm-public/references/app-invite.md @@ -9,7 +9,7 @@ Invitation records sent to prospective members via email, with token-based redem ```typescript db.appInvite.findMany({ select: { id: true } }).execute() db.appInvite.findOne({ id: '', select: { id: true } }).execute() -db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute() +db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute() db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() db.appInvite.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appInvite.findMany({ ```typescript const item = await db.appInvite.create({ - data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, + data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/app-limit-default.md b/.agents/skills/orm-public/references/app-limit-default.md index 190a99345..e4fc4452e 100644 --- a/.agents/skills/orm-public/references/app-limit-default.md +++ b/.agents/skills/orm-public/references/app-limit-default.md @@ -9,7 +9,7 @@ Default maximum values for each named limit, applied when no per-actor override ```typescript db.appLimitDefault.findMany({ select: { id: true } }).execute() db.appLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.appLimitDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appLimitDefault.findMany({ ```typescript const item = await db.appLimitDefault.create({ - data: { name: '', max: '' }, + data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/app-limit-event.md b/.agents/skills/orm-public/references/app-limit-event.md new file mode 100644 index 000000000..48e885a57 --- /dev/null +++ b/.agents/skills/orm-public/references/app-limit-event.md @@ -0,0 +1,34 @@ +# appLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.appLimitEvent.findMany({ select: { id: true } }).execute() +db.appLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.appLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all appLimitEvent records + +```typescript +const items = await db.appLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a appLimitEvent + +```typescript +const item = await db.appLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/app-limit.md b/.agents/skills/orm-public/references/app-limit.md index 64479eef7..0e5cb9fbe 100644 --- a/.agents/skills/orm-public/references/app-limit.md +++ b/.agents/skills/orm-public/references/app-limit.md @@ -9,7 +9,7 @@ Tracks per-actor usage counts against configurable maximum limits ```typescript db.appLimit.findMany({ select: { id: true } }).execute() db.appLimit.findOne({ id: '', select: { id: true } }).execute() -db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute() +db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute() db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.appLimit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appLimit.findMany({ ```typescript const item = await db.appLimit.create({ - data: { name: '', actorId: '', num: '', max: '' }, + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/app-membership.md b/.agents/skills/orm-public/references/app-membership.md index 85ab2af03..b71afa545 100644 --- a/.agents/skills/orm-public/references/app-membership.md +++ b/.agents/skills/orm-public/references/app-membership.md @@ -9,7 +9,7 @@ Tracks membership records linking actors to entities with permission bitmasks, o ```typescript db.appMembership.findMany({ select: { id: true } }).execute() db.appMembership.findOne({ id: '', select: { id: true } }).execute() -db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() +db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute() db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.appMembership.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.appMembership.findMany({ ```typescript const item = await db.appMembership.create({ - data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, + data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/billing-module.md b/.agents/skills/orm-public/references/billing-module.md new file mode 100644 index 000000000..564f7dcb1 --- /dev/null +++ b/.agents/skills/orm-public/references/billing-module.md @@ -0,0 +1,34 @@ +# billingModule + + + +ORM operations for BillingModule records + +## Usage + +```typescript +db.billingModule.findMany({ select: { id: true } }).execute() +db.billingModule.findOne({ id: '', select: { id: true } }).execute() +db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute() +db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.billingModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all billingModule records + +```typescript +const items = await db.billingModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a billingModule + +```typescript +const item = await db.billingModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/limits-module.md b/.agents/skills/orm-public/references/limits-module.md index 9e70495fa..9fd95b918 100644 --- a/.agents/skills/orm-public/references/limits-module.md +++ b/.agents/skills/orm-public/references/limits-module.md @@ -9,7 +9,7 @@ ORM operations for LimitsModule records ```typescript db.limitsModule.findMany({ select: { id: true } }).execute() db.limitsModule.findOne({ id: '', select: { id: true } }).execute() -db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() +db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute() db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.limitsModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.limitsModule.findMany({ ```typescript const item = await db.limitsModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/node-type-registry.md b/.agents/skills/orm-public/references/node-type-registry.md index 686e24a85..2c5dff04d 100644 --- a/.agents/skills/orm-public/references/node-type-registry.md +++ b/.agents/skills/orm-public/references/node-type-registry.md @@ -2,14 +2,14 @@ -Registry of high-level semantic AST node types using domain-prefixed naming. These IR nodes compile to multiple targets (Postgres RLS, egress, ingress, etc.). +ORM operations for NodeTypeRegistry records ## Usage ```typescript db.nodeTypeRegistry.findMany({ select: { id: true } }).execute() db.nodeTypeRegistry.findOne({ name: '', select: { id: true } }).execute() -db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', summary: '', parameterSchema: '', guidance: '', tags: '' }, select: { id: true } }).execute() +db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { id: true } }).execute() db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { id: true } }).execute() db.nodeTypeRegistry.delete({ where: { name: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.nodeTypeRegistry.findMany({ ```typescript const item = await db.nodeTypeRegistry.create({ - data: { slug: '', category: '', displayName: '', description: '', summary: '', parameterSchema: '', guidance: '', tags: '' }, + data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/org-invite.md b/.agents/skills/orm-public/references/org-invite.md index a157ec76d..427b03025 100644 --- a/.agents/skills/orm-public/references/org-invite.md +++ b/.agents/skills/orm-public/references/org-invite.md @@ -9,7 +9,7 @@ Invitation records sent to prospective members via email, with token-based redem ```typescript db.orgInvite.findMany({ select: { id: true } }).execute() db.orgInvite.findOne({ id: '', select: { id: true } }).execute() -db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() +db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute() db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute() db.orgInvite.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgInvite.findMany({ ```typescript const item = await db.orgInvite.create({ - data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, + data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/org-limit-aggregate.md b/.agents/skills/orm-public/references/org-limit-aggregate.md new file mode 100644 index 000000000..b96e1215b --- /dev/null +++ b/.agents/skills/orm-public/references/org-limit-aggregate.md @@ -0,0 +1,34 @@ +# orgLimitAggregate + + + +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + +## Usage + +```typescript +db.orgLimitAggregate.findMany({ select: { id: true } }).execute() +db.orgLimitAggregate.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitAggregate.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitAggregate records + +```typescript +const items = await db.orgLimitAggregate.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitAggregate + +```typescript +const item = await db.orgLimitAggregate.create({ + data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/org-limit-default.md b/.agents/skills/orm-public/references/org-limit-default.md index c0f2d4008..70eb9ec16 100644 --- a/.agents/skills/orm-public/references/org-limit-default.md +++ b/.agents/skills/orm-public/references/org-limit-default.md @@ -9,7 +9,7 @@ Default maximum values for each named limit, applied when no per-actor override ```typescript db.orgLimitDefault.findMany({ select: { id: true } }).execute() db.orgLimitDefault.findOne({ id: '', select: { id: true } }).execute() -db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute() +db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute() db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.orgLimitDefault.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgLimitDefault.findMany({ ```typescript const item = await db.orgLimitDefault.create({ - data: { name: '', max: '' }, + data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/org-limit-event.md b/.agents/skills/orm-public/references/org-limit-event.md new file mode 100644 index 000000000..010df78d3 --- /dev/null +++ b/.agents/skills/orm-public/references/org-limit-event.md @@ -0,0 +1,34 @@ +# orgLimitEvent + + + +Append-only log of limit events for historical reporting and audit + +## Usage + +```typescript +db.orgLimitEvent.findMany({ select: { id: true } }).execute() +db.orgLimitEvent.findOne({ id: '', select: { id: true } }).execute() +db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute() +db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() +db.orgLimitEvent.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all orgLimitEvent records + +```typescript +const items = await db.orgLimitEvent.findMany({ + select: { id: true, name: true } +}).execute(); +``` + +### Create a orgLimitEvent + +```typescript +const item = await db.orgLimitEvent.create({ + data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/org-limit.md b/.agents/skills/orm-public/references/org-limit.md index 36c8afdd1..91c82cccd 100644 --- a/.agents/skills/orm-public/references/org-limit.md +++ b/.agents/skills/orm-public/references/org-limit.md @@ -9,7 +9,7 @@ Tracks per-actor usage counts against configurable maximum limits ```typescript db.orgLimit.findMany({ select: { id: true } }).execute() db.orgLimit.findOne({ id: '', select: { id: true } }).execute() -db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute() +db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute() db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute() db.orgLimit.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgLimit.findMany({ ```typescript const item = await db.orgLimit.create({ - data: { name: '', actorId: '', num: '', max: '', entityId: '' }, + data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/org-membership-setting.md b/.agents/skills/orm-public/references/org-membership-setting.md index af8b579d0..687837b00 100644 --- a/.agents/skills/orm-public/references/org-membership-setting.md +++ b/.agents/skills/orm-public/references/org-membership-setting.md @@ -9,7 +9,7 @@ Per-entity settings for the memberships module ```typescript db.orgMembershipSetting.findMany({ select: { id: true } }).execute() db.orgMembershipSetting.findOne({ id: '', select: { id: true } }).execute() -db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute() +db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute() db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute() db.orgMembershipSetting.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.orgMembershipSetting.findMany({ ```typescript const item = await db.orgMembershipSetting.create({ - data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, + data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/plans-module.md b/.agents/skills/orm-public/references/plans-module.md new file mode 100644 index 000000000..2344a2d45 --- /dev/null +++ b/.agents/skills/orm-public/references/plans-module.md @@ -0,0 +1,34 @@ +# plansModule + + + +ORM operations for PlansModule records + +## Usage + +```typescript +db.plansModule.findMany({ select: { id: true } }).execute() +db.plansModule.findOne({ id: '', select: { id: true } }).execute() +db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute() +db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() +db.plansModule.delete({ where: { id: '' } }).execute() +``` + +## Examples + +### List all plansModule records + +```typescript +const items = await db.plansModule.findMany({ + select: { id: true, databaseId: true } +}).execute(); +``` + +### Create a plansModule + +```typescript +const item = await db.plansModule.create({ + data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, + select: { id: true } +}).execute(); +``` diff --git a/.agents/skills/orm-public/references/profiles-module.md b/.agents/skills/orm-public/references/profiles-module.md index 9bffd2dcd..54564ac1f 100644 --- a/.agents/skills/orm-public/references/profiles-module.md +++ b/.agents/skills/orm-public/references/profiles-module.md @@ -9,7 +9,7 @@ ORM operations for ProfilesModule records ```typescript db.profilesModule.findMany({ select: { id: true } }).execute() db.profilesModule.findOne({ id: '', select: { id: true } }).execute() -db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() +db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute() db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.profilesModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.profilesModule.findMany({ ```typescript const item = await db.profilesModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); ``` diff --git a/.agents/skills/orm-public/references/storage-module.md b/.agents/skills/orm-public/references/storage-module.md index f2e6ea92e..8dba9a661 100644 --- a/.agents/skills/orm-public/references/storage-module.md +++ b/.agents/skills/orm-public/references/storage-module.md @@ -9,7 +9,7 @@ ORM operations for StorageModule records ```typescript db.storageModule.findMany({ select: { id: true } }).execute() db.storageModule.findOne({ id: '', select: { id: true } }).execute() -db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute() +db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute() db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute() db.storageModule.delete({ where: { id: '' } }).execute() ``` @@ -28,7 +28,7 @@ const items = await db.storageModule.findMany({ ```typescript const item = await db.storageModule.create({ - data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, + data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); ``` diff --git a/sdk/constructive-cli/src/admin/README.md b/sdk/constructive-cli/src/admin/README.md index a90b811db..6c3a23271 100644 --- a/sdk/constructive-cli/src/admin/README.md +++ b/sdk/constructive-cli/src/admin/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 34 +- **Tables:** 37 - **Custom queries:** 11 -- **Custom mutations:** 5 +- **Custom mutations:** 4 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/admin/cli/README.md b/sdk/constructive-cli/src/admin/cli/README.md index 26be7c2b6..6fe32be79 100644 --- a/sdk/constructive-cli/src/admin/cli/README.md +++ b/sdk/constructive-cli/src/admin/cli/README.md @@ -36,27 +36,30 @@ csdk auth set-token | `org-permission-default` | orgPermissionDefault CRUD operations | | `app-admin-grant` | appAdminGrant CRUD operations | | `app-owner-grant` | appOwnerGrant CRUD operations | -| `app-limit-default` | appLimitDefault CRUD operations | -| `org-limit-default` | orgLimitDefault CRUD operations | -| `org-admin-grant` | orgAdminGrant CRUD operations | -| `org-owner-grant` | orgOwnerGrant CRUD operations | -| `app-limit` | appLimit CRUD operations | | `app-achievement` | appAchievement CRUD operations | | `app-step` | appStep CRUD operations | -| `app-claimed-invite` | appClaimedInvite CRUD operations | -| `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | -| `org-limit` | orgLimit CRUD operations | +| `org-admin-grant` | orgAdminGrant CRUD operations | +| `org-owner-grant` | orgOwnerGrant CRUD operations | | `membership-type` | membershipType CRUD operations | +| `app-limit-default` | appLimitDefault CRUD operations | +| `org-limit-default` | orgLimitDefault CRUD operations | +| `org-chart-edge-grant` | orgChartEdgeGrant CRUD operations | +| `app-claimed-invite` | appClaimedInvite CRUD operations | | `app-grant` | appGrant CRUD operations | | `app-membership-default` | appMembershipDefault CRUD operations | | `org-membership-default` | orgMembershipDefault CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | | `org-grant` | orgGrant CRUD operations | | `org-chart-edge` | orgChartEdge CRUD operations | +| `app-limit` | appLimit CRUD operations | +| `org-limit-aggregate` | orgLimitAggregate CRUD operations | | `org-member-profile` | orgMemberProfile CRUD operations | -| `org-membership-setting` | orgMembershipSetting CRUD operations | +| `org-limit` | orgLimit CRUD operations | | `app-level` | appLevel CRUD operations | | `app-invite` | appInvite CRUD operations | +| `org-membership-setting` | orgMembershipSetting CRUD operations | | `org-invite` | orgInvite CRUD operations | | `app-membership` | appMembership CRUD operations | | `org-membership` | orgMembership CRUD operations | @@ -77,9 +80,6 @@ csdk auth set-token Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `confirm-upload` | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -374,53 +374,59 @@ CRUD operations for AppOwnerGrant records. **Required create fields:** `actorId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `app-limit-default` +### `app-achievement` -CRUD operations for AppLimitDefault records. +CRUD operations for AppAchievement records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | +| `list` | List all appAchievement records | +| `find-first` | Find first matching appAchievement record | +| `get` | Get a appAchievement by id | +| `create` | Create a new appAchievement | +| `update` | Update an existing appAchievement | +| `delete` | Delete a appAchievement | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `actorId` | UUID | | `name` | String | -| `max` | Int | +| `count` | Int | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | **Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Optional create fields (backend defaults):** `actorId`, `count` -### `org-limit-default` +### `app-step` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppStep records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | +| `list` | List all appStep records | +| `find-first` | Find first matching appStep record | +| `get` | Get a appStep by id | +| `create` | Create a new appStep | +| `update` | Update an existing appStep | +| `delete` | Delete a appStep | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `actorId` | UUID | | `name` | String | -| `max` | Int | +| `count` | Int | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | **Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Optional create fields (backend defaults):** `actorId`, `count` ### `org-admin-grant` @@ -478,111 +484,82 @@ CRUD operations for OrgOwnerGrant records. **Required create fields:** `actorId`, `entityId` **Optional create fields (backend defaults):** `isGrant`, `grantorId` -### `app-limit` +### `membership-type` -CRUD operations for AppLimit records. +CRUD operations for MembershipType records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimit records | -| `find-first` | Find first matching appLimit record | -| `get` | Get a appLimit by id | -| `create` | Create a new appLimit | -| `update` | Update an existing appLimit | -| `delete` | Delete a appLimit | +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | +| `id` | Int | | `name` | String | -| `actorId` | UUID | -| `num` | Int | -| `max` | Int | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Required create fields:** `actorId` -**Optional create fields (backend defaults):** `name`, `num`, `max` +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` -### `app-achievement` +### `app-limit-default` -CRUD operations for AppAchievement records. +CRUD operations for AppLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appAchievement records | -| `find-first` | Find first matching appAchievement record | -| `get` | Get a appAchievement by id | -| `create` | Create a new appAchievement | -| `update` | Update an existing appAchievement | -| `delete` | Delete a appAchievement | +| `list` | List all appLimitDefault records | +| `find-first` | Find first matching appLimitDefault record | +| `get` | Get a appLimitDefault by id | +| `create` | Create a new appLimitDefault | +| `update` | Update an existing appLimitDefault | +| `delete` | Delete a appLimitDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `actorId` | UUID | | `name` | String | -| `count` | Int | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `max` | BigInt | +| `softMax` | BigInt | **Required create fields:** `name` -**Optional create fields (backend defaults):** `actorId`, `count` +**Optional create fields (backend defaults):** `max`, `softMax` -### `app-step` +### `org-limit-default` -CRUD operations for AppStep records. +CRUD operations for OrgLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all appStep records | -| `find-first` | Find first matching appStep record | -| `get` | Get a appStep by id | -| `create` | Create a new appStep | -| `update` | Update an existing appStep | -| `delete` | Delete a appStep | +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `actorId` | UUID | | `name` | String | -| `count` | Int | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | +| `max` | BigInt | +| `softMax` | BigInt | **Required create fields:** `name` -**Optional create fields (backend defaults):** `actorId`, `count` - -### `app-claimed-invite` - -CRUD operations for AppClaimedInvite records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all appClaimedInvite records | -| `find-first` | Find first matching appClaimedInvite record | -| `get` | Get a appClaimedInvite by id | -| `create` | Create a new appClaimedInvite | -| `update` | Update an existing appClaimedInvite | -| `delete` | Delete a appClaimedInvite | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | UUID | -| `data` | JSON | -| `senderId` | UUID | -| `receiverId` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | - -**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +**Optional create fields (backend defaults):** `max`, `softMax` ### `org-chart-edge-grant` @@ -614,59 +591,31 @@ CRUD operations for OrgChartEdgeGrant records. **Required create fields:** `entityId`, `childId` **Optional create fields (backend defaults):** `parentId`, `grantorId`, `isGrant`, `positionTitle`, `positionLevel` -### `org-limit` +### `app-claimed-invite` -CRUD operations for OrgLimit records. +CRUD operations for AppClaimedInvite records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimit records | -| `find-first` | Find first matching orgLimit record | -| `get` | Get a orgLimit by id | -| `create` | Create a new orgLimit | -| `update` | Update an existing orgLimit | -| `delete` | Delete a orgLimit | +| `list` | List all appClaimedInvite records | +| `find-first` | Find first matching appClaimedInvite record | +| `get` | Get a appClaimedInvite by id | +| `create` | Create a new appClaimedInvite | +| `update` | Update an existing appClaimedInvite | +| `delete` | Delete a appClaimedInvite | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `actorId` | UUID | -| `num` | Int | -| `max` | Int | -| `entityId` | UUID | - -**Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max` - -### `membership-type` - -CRUD operations for MembershipType records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | - -**Fields:** - -| Field | Type | -|-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | -| `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | +| `data` | JSON | +| `senderId` | UUID | +| `receiverId` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` +**Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` ### `app-grant` @@ -779,6 +728,64 @@ CRUD operations for OrgClaimedInvite records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `data`, `senderId`, `receiverId` +### `app-limit-event` + +CRUD operations for AppLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitEvent records | +| `find-first` | Find first matching appLimitEvent record | +| `get` | Get a appLimitEvent by id | +| `create` | Create a new appLimitEvent | +| `update` | Update an existing appLimitEvent | +| `delete` | Delete a appLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + +### `org-limit-event` + +CRUD operations for OrgLimitEvent records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitEvent records | +| `find-first` | Find first matching orgLimitEvent record | +| `get` | Get a orgLimitEvent by id | +| `create` | Create a new orgLimitEvent | +| `update` | Update an existing orgLimitEvent | +| `delete` | Delete a orgLimitEvent | + +**Fields:** + +| Field | Type | +|-------|------| +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | + +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` + ### `org-grant` CRUD operations for OrgGrant records. @@ -837,6 +844,64 @@ CRUD operations for OrgChartEdge records. **Required create fields:** `entityId`, `childId` **Optional create fields (backend defaults):** `parentId`, `positionTitle`, `positionLevel` +### `app-limit` + +CRUD operations for AppLimit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimit records | +| `find-first` | Find first matching appLimit record | +| `get` | Get a appLimit by id | +| `create` | Create a new appLimit | +| `update` | Update an existing appLimit | +| `delete` | Delete a appLimit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `actorId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | + +**Required create fields:** `actorId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` + +### `org-limit-aggregate` + +CRUD operations for OrgLimitAggregate records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitAggregate records | +| `find-first` | Find first matching orgLimitAggregate record | +| `get` | Get a orgLimitAggregate by id | +| `create` | Create a new orgLimitAggregate | +| `update` | Update an existing orgLimitAggregate | +| `delete` | Delete a orgLimitAggregate | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` + ### `org-member-profile` CRUD operations for OrgMemberProfile records. @@ -869,38 +934,35 @@ CRUD operations for OrgMemberProfile records. **Required create fields:** `membershipId`, `entityId`, `actorId` **Optional create fields (backend defaults):** `displayName`, `email`, `title`, `bio`, `profilePicture` -### `org-membership-setting` +### `org-limit` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgLimit records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all orgLimit records | +| `find-first` | Find first matching orgLimit record | +| `get` | Get a orgLimit by id | +| `create` | Create a new orgLimit | +| `update` | Update an existing orgLimit | +| `delete` | Delete a orgLimit | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | +| `name` | String | +| `actorId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | | `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `populateMemberEmail` | Boolean | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `populateMemberEmail` +**Required create fields:** `actorId`, `entityId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` ### `app-level` @@ -956,11 +1018,47 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | | `multiple` | Boolean | | `data` | JSON | +| `profileId` | UUID | | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` +**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` + +### `org-membership-setting` + +CRUD operations for OrgMembershipSetting records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` ### `org-invite` @@ -989,13 +1087,14 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | | `multiple` | Boolean | | `data` | JSON | +| `profileId` | UUID | | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | | `entityId` | UUID | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` +**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` ### `app-membership` @@ -1024,7 +1123,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | | `isVerified` | Boolean | | `isActive` | Boolean | -| `isExternal` | Boolean | | `isOwner` | Boolean | | `isAdmin` | Boolean | | `permissions` | BitString | @@ -1033,7 +1131,7 @@ CRUD operations for AppMembership records. | `profileId` | UUID | **Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `org-membership` @@ -1254,19 +1352,6 @@ existing file ID and deduplicated=true with no uploadUrl. | `--input.size` | Int (required) | | `--input.filename` | String | -### `confirm-upload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.fileId` | UUID (required) | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/cli/commands.ts b/sdk/constructive-cli/src/admin/cli/commands.ts index ce3ef1092..237a75884 100644 --- a/sdk/constructive-cli/src/admin/cli/commands.ts +++ b/sdk/constructive-cli/src/admin/cli/commands.ts @@ -16,27 +16,30 @@ import appPermissionDefaultCmd from './commands/app-permission-default'; import orgPermissionDefaultCmd from './commands/org-permission-default'; import appAdminGrantCmd from './commands/app-admin-grant'; import appOwnerGrantCmd from './commands/app-owner-grant'; -import appLimitDefaultCmd from './commands/app-limit-default'; -import orgLimitDefaultCmd from './commands/org-limit-default'; -import orgAdminGrantCmd from './commands/org-admin-grant'; -import orgOwnerGrantCmd from './commands/org-owner-grant'; -import appLimitCmd from './commands/app-limit'; import appAchievementCmd from './commands/app-achievement'; import appStepCmd from './commands/app-step'; -import appClaimedInviteCmd from './commands/app-claimed-invite'; -import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; -import orgLimitCmd from './commands/org-limit'; +import orgAdminGrantCmd from './commands/org-admin-grant'; +import orgOwnerGrantCmd from './commands/org-owner-grant'; import membershipTypeCmd from './commands/membership-type'; +import appLimitDefaultCmd from './commands/app-limit-default'; +import orgLimitDefaultCmd from './commands/org-limit-default'; +import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; +import appClaimedInviteCmd from './commands/app-claimed-invite'; import appGrantCmd from './commands/app-grant'; import appMembershipDefaultCmd from './commands/app-membership-default'; import orgMembershipDefaultCmd from './commands/org-membership-default'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; import orgGrantCmd from './commands/org-grant'; import orgChartEdgeCmd from './commands/org-chart-edge'; +import appLimitCmd from './commands/app-limit'; +import orgLimitAggregateCmd from './commands/org-limit-aggregate'; import orgMemberProfileCmd from './commands/org-member-profile'; -import orgMembershipSettingCmd from './commands/org-membership-setting'; +import orgLimitCmd from './commands/org-limit'; import appLevelCmd from './commands/app-level'; import appInviteCmd from './commands/app-invite'; +import orgMembershipSettingCmd from './commands/org-membership-setting'; import orgInviteCmd from './commands/org-invite'; import appMembershipCmd from './commands/app-membership'; import orgMembershipCmd from './commands/org-membership'; @@ -54,7 +57,6 @@ import stepsRequiredCmd from './commands/steps-required'; import submitAppInviteCodeCmd from './commands/submit-app-invite-code'; import submitOrgInviteCodeCmd from './commands/submit-org-invite-code'; import requestUploadUrlCmd from './commands/request-upload-url'; -import confirmUploadCmd from './commands/confirm-upload'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -76,27 +78,30 @@ const createCommandMap: () => Record< 'org-permission-default': orgPermissionDefaultCmd, 'app-admin-grant': appAdminGrantCmd, 'app-owner-grant': appOwnerGrantCmd, - 'app-limit-default': appLimitDefaultCmd, - 'org-limit-default': orgLimitDefaultCmd, - 'org-admin-grant': orgAdminGrantCmd, - 'org-owner-grant': orgOwnerGrantCmd, - 'app-limit': appLimitCmd, 'app-achievement': appAchievementCmd, 'app-step': appStepCmd, - 'app-claimed-invite': appClaimedInviteCmd, - 'org-chart-edge-grant': orgChartEdgeGrantCmd, - 'org-limit': orgLimitCmd, + 'org-admin-grant': orgAdminGrantCmd, + 'org-owner-grant': orgOwnerGrantCmd, 'membership-type': membershipTypeCmd, + 'app-limit-default': appLimitDefaultCmd, + 'org-limit-default': orgLimitDefaultCmd, + 'org-chart-edge-grant': orgChartEdgeGrantCmd, + 'app-claimed-invite': appClaimedInviteCmd, 'app-grant': appGrantCmd, 'app-membership-default': appMembershipDefaultCmd, 'org-membership-default': orgMembershipDefaultCmd, 'org-claimed-invite': orgClaimedInviteCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, 'org-grant': orgGrantCmd, 'org-chart-edge': orgChartEdgeCmd, + 'app-limit': appLimitCmd, + 'org-limit-aggregate': orgLimitAggregateCmd, 'org-member-profile': orgMemberProfileCmd, - 'org-membership-setting': orgMembershipSettingCmd, + 'org-limit': orgLimitCmd, 'app-level': appLevelCmd, 'app-invite': appInviteCmd, + 'org-membership-setting': orgMembershipSettingCmd, 'org-invite': orgInviteCmd, 'app-membership': appMembershipCmd, 'org-membership': orgMembershipCmd, @@ -114,11 +119,10 @@ const createCommandMap: () => Record< 'submit-app-invite-code': submitAppInviteCodeCmd, 'submit-org-invite-code': submitOrgInviteCodeCmd, 'request-upload-url': requestUploadUrlCmd, - 'confirm-upload': confirmUploadCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n app-limit appLimit CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-limit orgLimit CRUD operations\n membership-type membershipType CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-level appLevel CRUD operations\n app-invite appInvite CRUD operations\n org-invite orgInvite CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n org-member orgMember CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-achievement appAchievement CRUD operations\n app-step appStep CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n membership-type membershipType CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n app-grant appGrant CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n app-limit appLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-limit orgLimit CRUD operations\n app-level appLevel CRUD operations\n app-invite appInvite CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n org-invite orgInvite CRUD operations\n app-membership appMembership CRUD operations\n org-membership orgMembership CRUD operations\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n steps-achieved stepsAchieved\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts b/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts index 5b59a083a..79bf0a111 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-invite.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { inviteCount: 'int', multiple: 'boolean', data: 'json', + profileId: 'uuid', expiresAt: 'string', createdAt: 'string', updatedAt: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -121,6 +123,7 @@ async function handleFindFirst(argv: Partial>, _prompter inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -165,6 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -239,6 +243,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -261,6 +272,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, }, select: { @@ -273,6 +285,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -353,6 +366,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -378,6 +398,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, }, select: { @@ -390,6 +411,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts index 0cf146154..315bb1e77 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-limit-default.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', max: 'int', + softMax: 'int', }; const usage = '\napp-limit-default \n\nCommands:\n list List appLimitDefault records\n find-first Find first matching appLimitDefault record\n get Get a appLimitDefault by ID\n create Create a new appLimitDefault\n update Update an existing appLimitDefault\n delete Delete a appLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -74,6 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, name: true, max: true, + softMax: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -97,6 +99,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, name: true, max: true, + softMax: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -132,6 +135,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -160,6 +164,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -172,11 +183,13 @@ async function handleCreate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -211,6 +224,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitDefaultPatch; @@ -223,11 +243,13 @@ async function handleUpdate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts new file mode 100644 index 000000000..c66482251 --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/app-limit-event.ts @@ -0,0 +1,236 @@ +/** + * CLI commands for AppLimitEvent + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAppLimitEventInput, + AppLimitEventPatch, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + name: 'string', + actorId: 'uuid', + entityId: 'uuid', + eventType: 'string', + delta: 'int', + numBefore: 'int', + numAfter: 'int', + maxAtEvent: 'int', + reason: 'string', +}; +const usage = + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'create'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AppLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitEvent.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AppLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitEvent.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppLimitEventInput['appLimitEvent']; + const client = getClient(); + const result = await client.appLimitEvent + .create({ + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-limit.ts b/sdk/constructive-cli/src/admin/cli/commands/app-limit.ts index ef31b6337..66293d320 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-limit.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-limit.ts @@ -21,6 +21,9 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', num: 'int', max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', }; const usage = '\napp-limit \n\nCommands:\n list List appLimit records\n find-first Find first matching appLimit record\n get Get a appLimit by ID\n create Create a new appLimit\n update Update an existing appLimit\n delete Delete a appLimit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -78,6 +81,9 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -103,6 +109,9 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -140,6 +149,9 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); @@ -182,6 +194,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateAppLimitInput['appLimit']; @@ -193,6 +226,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, }, select: { id: true, @@ -200,6 +236,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); @@ -248,6 +287,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitPatch; @@ -262,6 +322,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, }, select: { id: true, @@ -269,6 +332,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts b/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts index ae7106f87..d463fd934 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/app-membership.ts @@ -26,7 +26,6 @@ const fieldSchema: FieldSchema = { isDisabled: 'boolean', isVerified: 'boolean', isActive: 'boolean', - isExternal: 'boolean', isOwner: 'boolean', isAdmin: 'boolean', permissions: 'string', @@ -95,7 +94,6 @@ async function handleList(argv: Partial>, _prompter: Inq isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -132,7 +130,6 @@ async function handleFindFirst(argv: Partial>, _prompter isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -181,7 +178,6 @@ async function handleGet(argv: Partial>, prompter: Inqui isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -252,13 +248,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isOwner', @@ -317,7 +306,6 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isVerified: cleanedData.isVerified, isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isAdmin: cleanedData.isAdmin, permissions: cleanedData.permissions, @@ -336,7 +324,6 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -413,13 +400,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isOwner', @@ -478,7 +458,6 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isVerified: cleanedData.isVerified, isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isAdmin: cleanedData.isAdmin, permissions: cleanedData.permissions, @@ -497,7 +476,6 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/confirm-upload.ts b/sdk/constructive-cli/src/admin/cli/commands/confirm-upload.ts deleted file mode 100644 index 9619e1935..000000000 --- a/sdk/constructive-cli/src/admin/cli/commands/confirm-upload.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - "confirm-upload - Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n\nUsage: confirm-upload [OPTIONS]\n" - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .confirmUpload( - parsedAnswers as unknown as ConfirmUploadVariables, - { - select: selectFields, - } as unknown as { - select: ConfirmUploadPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: confirmUpload'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts b/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts index f25f613ae..50b0411d4 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-invite.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { inviteCount: 'int', multiple: 'boolean', data: 'json', + profileId: 'uuid', expiresAt: 'string', createdAt: 'string', updatedAt: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -126,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -172,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -254,6 +258,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -283,6 +294,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, entityId: cleanedData.entityId, }, @@ -297,6 +309,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -385,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -417,6 +437,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, entityId: cleanedData.entityId, }, @@ -431,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-aggregate.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-aggregate.ts new file mode 100644 index 000000000..8b50e450b --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit-aggregate.ts @@ -0,0 +1,383 @@ +/** + * CLI commands for OrgLimitAggregate + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateOrgLimitAggregateInput, + OrgLimitAggregatePatch, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + entityId: 'uuid', + num: 'int', + max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', +}; +const usage = + '\norg-limit-aggregate \n\nCommands:\n list List orgLimitAggregate records\n find-first Find first matching orgLimitAggregate record\n get Get a orgLimitAggregate by ID\n create Create a new orgLimitAggregate\n update Update an existing orgLimitAggregate\n delete Delete a orgLimitAggregate\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: OrgLimitAggregateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitAggregate.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: OrgLimitAggregateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitAggregate.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.orgLimitAggregate + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'num', + message: 'num', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgLimitAggregateInput['orgLimitAggregate']; + const client = getClient(); + const result = await client.orgLimitAggregate + .create({ + data: { + name: cleanedData.name, + entityId: cleanedData.entityId, + num: cleanedData.num, + max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, + }, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'num', + message: 'num', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitAggregatePatch; + const client = getClient(); + const result = await client.orgLimitAggregate + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + entityId: cleanedData.entityId, + num: cleanedData.num, + max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, + }, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.orgLimitAggregate + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts index ed3396fe3..9a35893f2 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit-default.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', max: 'int', + softMax: 'int', }; const usage = '\norg-limit-default \n\nCommands:\n list List orgLimitDefault records\n find-first Find first matching orgLimitDefault record\n get Get a orgLimitDefault by ID\n create Create a new orgLimitDefault\n update Update an existing orgLimitDefault\n delete Delete a orgLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -74,6 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, name: true, max: true, + softMax: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -97,6 +99,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, name: true, max: true, + softMax: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -132,6 +135,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -160,6 +164,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -172,11 +183,13 @@ async function handleCreate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -211,6 +224,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitDefaultPatch; @@ -223,11 +243,13 @@ async function handleUpdate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts new file mode 100644 index 000000000..9867db17b --- /dev/null +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit-event.ts @@ -0,0 +1,236 @@ +/** + * CLI commands for OrgLimitEvent + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateOrgLimitEventInput, + OrgLimitEventPatch, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + name: 'string', + actorId: 'uuid', + entityId: 'uuid', + eventType: 'string', + delta: 'int', + numBefore: 'int', + numAfter: 'int', + maxAtEvent: 'int', + reason: 'string', +}; +const usage = + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'create'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: OrgLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitEvent.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: OrgLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitEvent.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgLimitEventInput['orgLimitEvent']; + const client = getClient(); + const result = await client.orgLimitEvent + .create({ + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-limit.ts b/sdk/constructive-cli/src/admin/cli/commands/org-limit.ts index 57ad76e26..dda64514d 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-limit.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-limit.ts @@ -21,6 +21,9 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', num: 'int', max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', entityId: 'uuid', }; const usage = @@ -79,6 +82,9 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }; const findManyArgs = parseFindManyArgs< @@ -105,6 +111,9 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }; const findFirstArgs = parseFindFirstArgs< @@ -143,6 +152,9 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) @@ -186,6 +198,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -203,6 +236,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, entityId: cleanedData.entityId, }, select: { @@ -211,6 +247,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) @@ -260,6 +299,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -280,6 +340,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, entityId: cleanedData.entityId, }, select: { @@ -288,6 +351,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) diff --git a/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts b/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts index 435df570c..1ac517828 100644 --- a/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts +++ b/sdk/constructive-cli/src/admin/cli/commands/org-membership-setting.ts @@ -27,7 +27,9 @@ const fieldSchema: FieldSchema = { createChildCascadeAdmins: 'boolean', createChildCascadeMembers: 'boolean', allowExternalMembers: 'boolean', + inviteProfileAssignmentMode: 'string', populateMemberEmail: 'boolean', + limitAllocationMode: 'string', }; const usage = '\norg-membership-setting \n\nCommands:\n list List orgMembershipSetting records\n find-first Find first matching orgMembershipSetting record\n get Get a orgMembershipSetting by ID\n create Create a new orgMembershipSetting\n update Update an existing orgMembershipSetting\n delete Delete a orgMembershipSetting\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -91,7 +93,9 @@ async function handleList(argv: Partial>, _prompter: Inq createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -127,7 +131,9 @@ async function handleFindFirst(argv: Partial>, _prompter createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -171,7 +177,9 @@ async function handleGet(argv: Partial>, prompter: Inqui createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); @@ -242,6 +250,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'inviteProfileAssignmentMode', + message: 'inviteProfileAssignmentMode', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'populateMemberEmail', @@ -249,6 +264,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'limitAllocationMode', + message: 'limitAllocationMode', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -267,7 +289,9 @@ async function handleCreate(argv: Partial>, prompter: In createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, allowExternalMembers: cleanedData.allowExternalMembers, + inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, populateMemberEmail: cleanedData.populateMemberEmail, + limitAllocationMode: cleanedData.limitAllocationMode, }, select: { id: true, @@ -281,7 +305,9 @@ async function handleCreate(argv: Partial>, prompter: In createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); @@ -358,6 +384,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'inviteProfileAssignmentMode', + message: 'inviteProfileAssignmentMode', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'populateMemberEmail', @@ -365,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'limitAllocationMode', + message: 'limitAllocationMode', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipSettingPatch; @@ -383,7 +423,9 @@ async function handleUpdate(argv: Partial>, prompter: In createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, allowExternalMembers: cleanedData.allowExternalMembers, + inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, populateMemberEmail: cleanedData.populateMemberEmail, + limitAllocationMode: cleanedData.limitAllocationMode, }, select: { id: true, @@ -397,7 +439,9 @@ async function handleUpdate(argv: Partial>, prompter: In createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/admin/orm/README.md b/sdk/constructive-cli/src/admin/orm/README.md index bcc713ea6..99ee4b492 100644 --- a/sdk/constructive-cli/src/admin/orm/README.md +++ b/sdk/constructive-cli/src/admin/orm/README.md @@ -31,27 +31,30 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | @@ -381,66 +384,72 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appAchievement` -CRUD operations for AppLimitDefault records. +CRUD operations for AppAchievement records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appAchievement records +const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appStep` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appStep records +const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -513,139 +522,102 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.membershipType` -CRUD operations for AppLimit records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | | `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appAchievement` +### `db.appLimitDefault` -CRUD operations for AppAchievement records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appAchievement records -const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appStep` +### `db.orgLimitDefault` -CRUD operations for AppStep records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appStep records -const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -685,72 +657,38 @@ const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, dat const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.appClaimedInvite` -CRUD operations for OrgLimit records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -893,6 +831,80 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgGrant` CRUD operations for OrgGrant records. @@ -965,6 +977,78 @@ const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMemberProfile` CRUD operations for OrgMemberProfile records. @@ -1004,44 +1088,41 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgLimit` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgLimit records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1096,6 +1177,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1104,13 +1186,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1119,6 +1201,48 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -1137,6 +1261,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1146,13 +1271,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1179,7 +1304,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -1191,13 +1315,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1481,23 +1605,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/admin/orm/index.ts b/sdk/constructive-cli/src/admin/orm/index.ts index a999be5d2..142d00e0c 100644 --- a/sdk/constructive-cli/src/admin/orm/index.ts +++ b/sdk/constructive-cli/src/admin/orm/index.ts @@ -15,27 +15,30 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgLimitModel } from './models/orgLimit'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { MembershipTypeModel } from './models/membershipType'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { OrgLimitModel } from './models/orgLimit'; import { AppLevelModel } from './models/appLevel'; import { AppInviteModel } from './models/appInvite'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgInviteModel } from './models/orgInvite'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; @@ -85,27 +88,30 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgLimit: new OrgLimitModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), membershipType: new MembershipTypeModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + orgLimit: new OrgLimitModel(client), appLevel: new AppLevelModel(client), appInvite: new AppInviteModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), orgInvite: new OrgInviteModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), diff --git a/sdk/constructive-cli/src/admin/orm/input-types.ts b/sdk/constructive-cli/src/admin/orm/input-types.ts index 3f1ab47a3..a0e988480 100644 --- a/sdk/constructive-cli/src/admin/orm/input-types.ts +++ b/sdk/constructive-cli/src/admin/orm/input-types.ts @@ -328,21 +328,27 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ +export interface AppAchievement { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Cumulative count of completed steps toward this requirement */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ +export interface AppStep { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Number of units completed in this step action */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { @@ -370,51 +376,40 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } -/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ -export interface AppAchievement { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement being tracked */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Cumulative count of completed steps toward this requirement */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } -/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ -export interface AppStep { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement this step fulfills */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Number of units completed in this step action */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -436,33 +431,17 @@ export interface OrgChartEdgeGrant { /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { +/** Records of successfully claimed invitations, linking senders to receivers */ +export interface AppClaimedInvite { id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; - entityId?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record | null; + /** User ID of the original invitation sender */ + senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { @@ -514,6 +493,48 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; @@ -545,6 +566,42 @@ export interface OrgChartEdge { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} /** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ export interface OrgMemberProfile { id: string; @@ -567,27 +624,24 @@ export interface OrgMemberProfile { /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -622,11 +676,39 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; @@ -648,6 +730,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -671,8 +755,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -741,29 +823,32 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} -export interface AppClaimedInviteRelations {} -export interface OrgChartEdgeGrantRelations {} -export interface OrgLimitRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgOwnerGrantRelations {} export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} +export interface OrgChartEdgeGrantRelations {} +export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppMembershipDefaultRelations {} export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface OrgMembershipSettingRelations {} +export interface OrgLimitRelations {} export interface AppLevelRelations {} export interface AppInviteRelations {} +export interface OrgMembershipSettingRelations {} export interface OrgInviteRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations { @@ -784,30 +869,33 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgMembershipSettingWithRelations = OrgMembershipSetting & + OrgMembershipSettingRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; @@ -875,15 +963,21 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { +export type AppAchievementSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; -export type OrgLimitDefaultSelect = { +export type AppStepSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgAdminGrantSelect = { id?: boolean; @@ -903,36 +997,25 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitSelect = { +export type MembershipTypeSelect = { id?: boolean; name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; -export type AppAchievementSelect = { +export type AppLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; -export type AppStepSelect = { +export type OrgLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -945,21 +1028,13 @@ export type OrgChartEdgeGrantSelect = { positionLevel?: boolean; createdAt?: boolean; }; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - entityId?: boolean; -}; -export type MembershipTypeSelect = { +export type AppClaimedInviteSelect = { id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type AppGrantSelect = { id?: boolean; @@ -997,6 +1072,28 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type AppLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type OrgGrantSelect = { id?: boolean; permissions?: boolean; @@ -1017,6 +1114,26 @@ export type OrgChartEdgeSelect = { positionTitle?: boolean; positionLevel?: boolean; }; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; @@ -1033,19 +1150,16 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type OrgMembershipSettingSelect = { +export type OrgLimitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1066,10 +1180,27 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; +}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1081,6 +1212,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1097,7 +1229,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -1285,33 +1416,45 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { +export interface AppAchievementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; + and?: AppAchievementFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; + or?: AppAchievementFilter[]; /** Negates the expression. */ - not?: AppLimitDefaultFilter; + not?: AppAchievementFilter; } -export interface OrgLimitDefaultFilter { +export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; + and?: AppStepFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; + or?: AppStepFilter[]; /** Negates the expression. */ - not?: OrgLimitDefaultFilter; + not?: AppStepFilter; } export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1357,81 +1500,57 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: MembershipTypeFilter; } -export interface AppAchievementFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppAchievementFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppAchievementFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppAchievementFilter; + not?: AppLimitDefaultFilter; } -export interface AppStepFilter { +export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppStepFilter[]; - /** Checks for any expressions in this list. */ - or?: AppStepFilter[]; - /** Negates the expression. */ - not?: AppStepFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; + and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; + or?: OrgLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppClaimedInviteFilter; + not?: OrgLimitDefaultFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1459,45 +1578,23 @@ export interface OrgChartEdgeGrantFilter { /** Negates the expression. */ not?: OrgChartEdgeGrantFilter; } -export interface OrgLimitFilter { +export interface AppClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppClaimedInviteFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppClaimedInviteFilter; } export interface AppGrantFilter { /** Filter by the object’s `id` field. */ @@ -1585,6 +1682,58 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1633,6 +1782,54 @@ export interface OrgChartEdgeFilter { /** Negates the expression. */ not?: OrgChartEdgeFilter; } +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1665,37 +1862,31 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgMembershipSettingFilter { +export interface OrgLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgLimitFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgLimitFilter; } export interface AppLevelFilter { /** Filter by the object’s `id` field. */ @@ -1736,6 +1927,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1749,6 +1942,42 @@ export interface AppInviteFilter { /** Negates the expression. */ not?: AppInviteFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; +} export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1768,6 +1997,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1804,8 +2035,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -2000,26 +2229,38 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = +export type AppAchievementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2056,7 +2297,7 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2064,60 +2305,38 @@ export type AppLimitOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppAchievementOrderBy = + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppStepOrderBy = + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2140,38 +2359,22 @@ export type OrgChartEdgeGrantOrderBy = | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type MembershipTypeOrderBy = +export type AppClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2244,6 +2447,46 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2284,6 +2527,46 @@ export type OrgChartEdgeOrderBy = | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2310,34 +2593,28 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ENTITY_ID_DESC'; export type AppLevelOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2378,12 +2655,46 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2408,6 +2719,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2440,8 +2753,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -2713,43 +3024,47 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppAchievementInput { clientMutationId?: string; - appLimitDefault: { + appAchievement: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface AppLimitDefaultPatch { +export interface AppAchievementPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppAchievementInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + appAchievementPatch: AppAchievementPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppStepInput { clientMutationId?: string; - orgLimitDefault: { + appStep: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface OrgLimitDefaultPatch { +export interface AppStepPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppStepInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appStepPatch: AppStepPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } @@ -2801,93 +3116,73 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppLimitPatch { +export interface MembershipTypePatch { name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppLimitInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppLimitInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateAppAchievementInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - appAchievement: { - actorId?: string; + appLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppAchievementPatch { - actorId?: string | null; +export interface AppLimitDefaultPatch { name?: string | null; - count?: number | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppAchievementInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - appAchievementPatch: AppAchievementPatch; + appLimitDefaultPatch: AppLimitDefaultPatch; } -export interface DeleteAppAchievementInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppStepInput { +export interface CreateOrgLimitDefaultInput { clientMutationId?: string; - appStep: { - actorId?: string; + orgLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppStepPatch { - actorId?: string | null; +export interface OrgLimitDefaultPatch { name?: string | null; - count?: number | null; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - appStepPatch: AppStepPatch; -} -export interface DeleteAppStepInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppClaimedInviteInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } @@ -2921,58 +3216,28 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgLimitInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgLimitPatch: OrgLimitPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgLimitInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { @@ -3069,6 +3334,74 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { @@ -3121,7 +3454,67 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMemberProfileInput { clientMutationId?: string; orgMemberProfile: { membershipId: string; @@ -3154,37 +3547,35 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgLimitInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgLimitPatch: OrgLimitPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -3224,6 +3615,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -3236,6 +3628,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -3247,6 +3640,44 @@ export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { @@ -3259,6 +3690,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -3273,6 +3705,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -3295,7 +3728,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -3312,7 +3744,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -3405,10 +3836,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3418,6 +3845,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -3530,6 +3982,25 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { @@ -3615,8 +4086,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -3624,20 +4093,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -4021,94 +4476,94 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; export interface CreateOrgAdminGrantPayload { @@ -4201,184 +4656,139 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppAchievementPayload { - clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export type CreateAppAchievementPayloadSelect = { - clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; - }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; - }; -}; -export interface UpdateAppAchievementPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppStepPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was created by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateAppStepPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateAppStepPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was updated by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateAppStepPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateAppClaimedInvitePayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateAppClaimedInvitePayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateAppClaimedInvitePayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateAppClaimedInvitePayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteAppClaimedInvitePayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteAppClaimedInvitePayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -4426,94 +4836,49 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { +export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was created by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was updated by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was deleted by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; export interface CreateAppGrantPayload { @@ -4696,6 +5061,28 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; +}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -4756,34 +5143,124 @@ export type CreateOrgChartEdgePayloadSelect = { select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; export interface CreateOrgMemberProfilePayload { @@ -4831,49 +5308,49 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; export interface CreateAppLevelPayload { @@ -4966,6 +5443,51 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -5214,28 +5736,28 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; } -export type AppLimitDefaultEdgeSelect = { +export type AppAchievementEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: AppAchievementSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; } -export type OrgLimitDefaultEdgeSelect = { +export type AppStepEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: AppStepSelect; }; }; /** A `OrgAdminGrant` edge in the connection. */ @@ -5262,52 +5784,40 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppAchievement` edge in the connection. */ -export interface AppAchievementEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppAchievement` at the end of the edge. */ - node?: AppAchievement | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppAchievementEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppAchievementSelect; + select: MembershipTypeSelect; }; }; -/** A `AppStep` edge in the connection. */ -export interface AppStepEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `AppStep` at the end of the edge. */ - node?: AppStep | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type AppStepEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppStepSelect; + select: AppLimitDefaultSelect; }; }; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } -export type AppClaimedInviteEdgeSelect = { +export type OrgLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppClaimedInviteSelect; + select: OrgLimitDefaultSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -5322,28 +5832,16 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppClaimedInvite` edge in the connection. */ +export interface AppClaimedInviteEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppClaimedInvite` at the end of the edge. */ + node?: AppClaimedInvite | null; } -export type MembershipTypeEdgeSelect = { +export type AppClaimedInviteEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppClaimedInviteSelect; }; }; /** A `AppGrant` edge in the connection. */ @@ -5418,6 +5916,30 @@ export type OrgChartEdgeEdgeSelect = { select: OrgChartEdgeSelect; }; }; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -5430,16 +5952,16 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgLimitSelect; }; }; /** A `AppLevel` edge in the connection. */ @@ -5466,6 +5988,18 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/index.ts b/sdk/constructive-cli/src/admin/orm/models/index.ts index 061bbd234..1b903645a 100644 --- a/sdk/constructive-cli/src/admin/orm/models/index.ts +++ b/sdk/constructive-cli/src/admin/orm/models/index.ts @@ -13,27 +13,30 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgLimitModel } from './orgLimit'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { MembershipTypeModel } from './membershipType'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { OrgLimitModel } from './orgLimit'; export { AppLevelModel } from './appLevel'; export { AppInviteModel } from './appInvite'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgInviteModel } from './orgInvite'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-cli/src/admin/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/admin/orm/mutation/index.ts b/sdk/constructive-cli/src/admin/orm/mutation/index.ts index e26ce5c85..cbc1459ea 100644 --- a/sdk/constructive-cli/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/admin/orm/mutation/index.ts @@ -10,17 +10,14 @@ import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -40,15 +37,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -148,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/auth/README.md b/sdk/constructive-cli/src/auth/README.md index d9bdc1d17..25de72482 100644 --- a/sdk/constructive-cli/src/auth/README.md +++ b/sdk/constructive-cli/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 9 - **Custom queries:** 5 -- **Custom mutations:** 24 +- **Custom mutations:** 23 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/auth/cli/README.md b/sdk/constructive-cli/src/auth/cli/README.md index 8c4b9408b..0f674907c 100644 --- a/sdk/constructive-cli/src/auth/cli/README.md +++ b/sdk/constructive-cli/src/auth/cli/README.md @@ -65,9 +65,6 @@ csdk auth set-token Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `confirm-upload` | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -731,19 +728,6 @@ existing file ID and deduplicated=true with no uploadUrl. | `--input.size` | Int (required) | | `--input.filename` | String | -### `confirm-upload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.fileId` | UUID (required) | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/auth/cli/commands.ts b/sdk/constructive-cli/src/auth/cli/commands.ts index adccb9d44..c24ae6562 100644 --- a/sdk/constructive-cli/src/auth/cli/commands.ts +++ b/sdk/constructive-cli/src/auth/cli/commands.ts @@ -42,7 +42,6 @@ import createApiKeyCmd from './commands/create-api-key'; import forgotPasswordCmd from './commands/forgot-password'; import sendVerificationEmailCmd from './commands/send-verification-email'; import requestUploadUrlCmd from './commands/request-upload-url'; -import confirmUploadCmd from './commands/confirm-upload'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -90,11 +89,10 @@ const createCommandMap: () => Record< 'forgot-password': forgotPasswordCmd, 'send-verification-email': sendVerificationEmailCmd, 'request-upload-url': requestUploadUrlCmd, - 'confirm-upload': confirmUploadCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log auditLog CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n audit-log auditLog CRUD operations\n identity-provider identityProvider CRUD operations\n role-type roleType CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n user user CRUD operations\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n current-user-id currentUserId\n require-step-up requireStepUp\n current-user currentUser\n sign-out signOut\n send-account-deletion-email sendAccountDeletionEmail\n check-password checkPassword\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n provision-new-user provisionNewUser\n reset-password resetPassword\n sign-in-cross-origin signInCrossOrigin\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n forgot-password forgotPassword\n send-verification-email sendVerificationEmail\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/auth/cli/commands/confirm-upload.ts b/sdk/constructive-cli/src/auth/cli/commands/confirm-upload.ts deleted file mode 100644 index 9619e1935..000000000 --- a/sdk/constructive-cli/src/auth/cli/commands/confirm-upload.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - "confirm-upload - Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n\nUsage: confirm-upload [OPTIONS]\n" - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .confirmUpload( - parsedAnswers as unknown as ConfirmUploadVariables, - { - select: selectFields, - } as unknown as { - select: ConfirmUploadPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: confirmUpload'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/auth/orm/README.md b/sdk/constructive-cli/src/auth/orm/README.md index 6b10736b2..9188f84b8 100644 --- a/sdk/constructive-cli/src/auth/orm/README.md +++ b/sdk/constructive-cli/src/auth/orm/README.md @@ -755,23 +755,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/auth/orm/input-types.ts b/sdk/constructive-cli/src/auth/orm/input-types.ts index eb5c48d84..a091f00d3 100644 --- a/sdk/constructive-cli/src/auth/orm/input-types.ts +++ b/sdk/constructive-cli/src/auth/orm/input-types.ts @@ -1368,10 +1368,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -2440,8 +2436,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -2449,20 +2443,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-cli/src/auth/orm/mutation/index.ts b/sdk/constructive-cli/src/auth/orm/mutation/index.ts index 1779b93ba..fa49f8830 100644 --- a/sdk/constructive-cli/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/auth/orm/mutation/index.ts @@ -29,7 +29,6 @@ import type { ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, @@ -53,7 +52,6 @@ import type { ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, @@ -77,7 +75,6 @@ import type { ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -154,15 +151,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -813,35 +801,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/objects/README.md b/sdk/constructive-cli/src/objects/README.md index eac043e45..c4e633cc2 100644 --- a/sdk/constructive-cli/src/objects/README.md +++ b/sdk/constructive-cli/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 4 -- **Custom mutations:** 11 +- **Custom mutations:** 10 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/objects/cli/README.md b/sdk/constructive-cli/src/objects/cli/README.md index 76b6b4464..d9d73f586 100644 --- a/sdk/constructive-cli/src/objects/cli/README.md +++ b/sdk/constructive-cli/src/objects/cli/README.md @@ -47,9 +47,6 @@ csdk auth set-token Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `confirm-upload` | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -431,19 +428,6 @@ existing file ID and deduplicated=true with no uploadUrl. | `--input.size` | Int (required) | | `--input.filename` | String | -### `confirm-upload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.fileId` | UUID (required) | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/objects/cli/commands.ts b/sdk/constructive-cli/src/objects/cli/commands.ts index 72a880300..c4f80d9e0 100644 --- a/sdk/constructive-cli/src/objects/cli/commands.ts +++ b/sdk/constructive-cli/src/objects/cli/commands.ts @@ -24,7 +24,6 @@ import insertNodeAtPathCmd from './commands/insert-node-at-path'; import updateNodeAtPathCmd from './commands/update-node-at-path'; import setAndCommitCmd from './commands/set-and-commit'; import requestUploadUrlCmd from './commands/request-upload-url'; -import confirmUploadCmd from './commands/confirm-upload'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -54,11 +53,10 @@ const createCommandMap: () => Record< 'update-node-at-path': updateNodeAtPathCmd, 'set-and-commit': setAndCommitCmd, 'request-upload-url': requestUploadUrlCmd, - 'confirm-upload': confirmUploadCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + '\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n commit commit CRUD operations\n rev-parse revParse\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n remove-node-at-path removeNodeAtPath\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n'; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/objects/cli/commands/confirm-upload.ts b/sdk/constructive-cli/src/objects/cli/commands/confirm-upload.ts deleted file mode 100644 index 9619e1935..000000000 --- a/sdk/constructive-cli/src/objects/cli/commands/confirm-upload.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - "confirm-upload - Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n\nUsage: confirm-upload [OPTIONS]\n" - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .confirmUpload( - parsedAnswers as unknown as ConfirmUploadVariables, - { - select: selectFields, - } as unknown as { - select: ConfirmUploadPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: confirmUpload'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/objects/orm/README.md b/sdk/constructive-cli/src/objects/orm/README.md index cb4e1b29d..e86aa309c 100644 --- a/sdk/constructive-cli/src/objects/orm/README.md +++ b/sdk/constructive-cli/src/objects/orm/README.md @@ -412,23 +412,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/objects/orm/input-types.ts b/sdk/constructive-cli/src/objects/orm/input-types.ts index 5a7d7952c..67a2de15b 100644 --- a/sdk/constructive-cli/src/objects/orm/input-types.ts +++ b/sdk/constructive-cli/src/objects/orm/input-types.ts @@ -725,10 +725,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -829,8 +825,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -838,20 +832,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-cli/src/objects/orm/mutation/index.ts b/sdk/constructive-cli/src/objects/orm/mutation/index.ts index 49a83c80c..04890fb67 100644 --- a/sdk/constructive-cli/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/objects/orm/mutation/index.ts @@ -16,7 +16,6 @@ import type { UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, @@ -27,7 +26,6 @@ import type { UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, @@ -38,7 +36,6 @@ import type { UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -76,15 +73,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -358,35 +346,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/public/README.md b/sdk/constructive-cli/src/public/README.md index 144a89a6f..e6383c2ae 100644 --- a/sdk/constructive-cli/src/public/README.md +++ b/sdk/constructive-cli/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 120 +- **Tables:** 129 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 49 **Generators:** ORM, CLI diff --git a/sdk/constructive-cli/src/public/cli/README.md b/sdk/constructive-cli/src/public/cli/README.md index d09274ad8..b1f5dd12c 100644 --- a/sdk/constructive-cli/src/public/cli/README.md +++ b/sdk/constructive-cli/src/public/cli/README.md @@ -29,9 +29,9 @@ csdk auth set-token | `org-get-managers-record` | orgGetManagersRecord CRUD operations | | `org-get-subordinates-record` | orgGetSubordinatesRecord CRUD operations | | `get-all-record` | getAllRecord CRUD operations | -| `object` | object CRUD operations | | `app-permission` | appPermission CRUD operations | | `org-permission` | orgPermission CRUD operations | +| `object` | object CRUD operations | | `app-level-requirement` | appLevelRequirement CRUD operations | | `database` | database CRUD operations | | `schema` | schema CRUD operations | @@ -112,6 +112,7 @@ csdk auth set-token | `org-permission-default` | orgPermissionDefault CRUD operations | | `app-limit` | appLimit CRUD operations | | `org-limit` | orgLimit CRUD operations | +| `org-limit-aggregate` | orgLimitAggregate CRUD operations | | `app-step` | appStep CRUD operations | | `app-achievement` | appAchievement CRUD operations | | `app-level` | appLevel CRUD operations | @@ -124,26 +125,34 @@ csdk auth set-token | `org-invite` | orgInvite CRUD operations | | `org-claimed-invite` | orgClaimedInvite CRUD operations | | `audit-log` | auditLog CRUD operations | -| `app-permission-default` | appPermissionDefault CRUD operations | +| `agent-thread` | agentThread CRUD operations | +| `agent-message` | agentMessage CRUD operations | +| `agent-task` | agentTask CRUD operations | +| `role-type` | roleType CRUD operations | | `identity-provider` | identityProvider CRUD operations | | `ref` | ref CRUD operations | | `store` | store CRUD operations | -| `role-type` | roleType CRUD operations | +| `app-permission-default` | appPermissionDefault CRUD operations | +| `membership-type` | membershipType CRUD operations | | `migrate-file` | migrateFile CRUD operations | +| `devices-module` | devicesModule CRUD operations | +| `node-type-registry` | nodeTypeRegistry CRUD operations | | `app-limit-default` | appLimitDefault CRUD operations | | `org-limit-default` | orgLimitDefault CRUD operations | -| `devices-module` | devicesModule CRUD operations | | `user-connected-account` | userConnectedAccount CRUD operations | -| `app-membership-default` | appMembershipDefault CRUD operations | -| `org-membership-default` | orgMembershipDefault CRUD operations | | `commit` | commit CRUD operations | | `rate-limits-module` | rateLimitsModule CRUD operations | -| `membership-type` | membershipType CRUD operations | +| `app-membership-default` | appMembershipDefault CRUD operations | +| `org-membership-default` | orgMembershipDefault CRUD operations | +| `app-limit-event` | appLimitEvent CRUD operations | +| `org-limit-event` | orgLimitEvent CRUD operations | +| `plans-module` | plansModule CRUD operations | | `rls-module` | rlsModule CRUD operations | | `sql-action` | sqlAction CRUD operations | -| `org-membership-setting` | orgMembershipSetting CRUD operations | -| `user` | user CRUD operations | +| `billing-module` | billingModule CRUD operations | | `ast-migration` | astMigration CRUD operations | +| `user` | user CRUD operations | +| `org-membership-setting` | orgMembershipSetting CRUD operations | | `app-membership` | appMembership CRUD operations | | `hierarchy-module` | hierarchyModule CRUD operations | | `current-user-id` | currentUserId | @@ -161,11 +170,11 @@ csdk auth set-token | `resolve-blueprint-table` | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `app-permissions-get-mask-by-names` | appPermissionsGetMaskByNames | | `org-permissions-get-mask-by-names` | orgPermissionsGetMaskByNames | +| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | +| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `get-all-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-path-objects-from-root` | Reads and enables pagination through a set of `Object`. | | `get-object-at-path` | getObjectAtPath | -| `app-permissions-get-by-mask` | Reads and enables pagination through a set of `AppPermission`. | -| `org-permissions-get-by-mask` | Reads and enables pagination through a set of `OrgPermission`. | | `steps-required` | Reads and enables pagination through a set of `AppLevelRequirement`. | | `current-user` | currentUser | | `send-account-deletion-email` | sendAccountDeletionEmail | @@ -225,19 +234,16 @@ Example usage: | | `extend-token-expires` | extendTokenExpires | | `create-api-key` | createApiKey | +| `send-verification-email` | sendVerificationEmail | +| `forgot-password` | forgotPassword | | `sign-up` | signUp | | `request-cross-origin-token` | requestCrossOriginToken | | `sign-in` | signIn | | `provision-table` | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | -| `send-verification-email` | sendVerificationEmail | -| `forgot-password` | forgotPassword | | `request-upload-url` | Request a presigned URL for uploading a file directly to S3. Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `confirm-upload` | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `provision-bucket` | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -350,35 +356,6 @@ CRUD operations for GetAllRecord records. **Required create fields:** `path`, `data` -### `object` - -CRUD operations for Object records. - -| Subcommand | Description | -|------------|-------------| -| `list` | List all object records | -| `find-first` | Find first matching object record | -| `get` | Get a object by id | -| `create` | Create a new object | -| `update` | Update an existing object | -| `delete` | Delete a object | - -**Fields:** - -| Field | Type | -|-------|------| -| `hashUuid` | UUID | -| `id` | UUID | -| `databaseId` | UUID | -| `kids` | UUID | -| `ktree` | String | -| `data` | JSON | -| `frzn` | Boolean | -| `createdAt` | Datetime | - -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` - ### `app-permission` CRUD operations for AppPermission records. @@ -429,6 +406,35 @@ CRUD operations for OrgPermission records. **Optional create fields (backend defaults):** `name`, `bitnum`, `bitstr`, `description` +### `object` + +CRUD operations for Object records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all object records | +| `find-first` | Find first matching object record | +| `get` | Get a object by id | +| `create` | Create a new object | +| `update` | Update an existing object | +| `delete` | Delete a object | + +**Fields:** + +| Field | Type | +|-------|------| +| `hashUuid` | UUID | +| `id` | UUID | +| `databaseId` | UUID | +| `kids` | UUID | +| `ktree` | String | +| `data` | JSON | +| `frzn` | Boolean | +| `createdAt` | Datetime | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `kids`, `ktree`, `data`, `frzn` + ### `app-level-requirement` CRUD operations for AppLevelRequirement records. @@ -1948,13 +1954,14 @@ CRUD operations for LimitsModule records. | `limitDecrementTrigger` | String | | `limitUpdateTrigger` | String | | `limitCheckFunction` | String | +| `aggregateTableId` | UUID | | `prefix` | String | | `membershipType` | Int | | `entityTableId` | UUID | | `actorTableId` | UUID | **Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `prefix`, `entityTableId`, `actorTableId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `defaultTableId`, `defaultTableName`, `limitIncrementFunction`, `limitDecrementFunction`, `limitIncrementTrigger`, `limitDecrementTrigger`, `limitUpdateTrigger`, `limitCheckFunction`, `aggregateTableId`, `prefix`, `entityTableId`, `actorTableId` ### `membership-types-module` @@ -2132,6 +2139,8 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | | `profileDefinitionGrantsTableId` | UUID | | `profileDefinitionGrantsTableName` | String | +| `profileTemplatesTableId` | UUID | +| `profileTemplatesTableName` | String | | `membershipType` | Int | | `entityTableId` | UUID | | `actorTableId` | UUID | @@ -2140,7 +2149,7 @@ CRUD operations for ProfilesModule records. | `prefix` | String | **Required create fields:** `databaseId`, `membershipType` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `prefix` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `tableId`, `tableName`, `profilePermissionsTableId`, `profilePermissionsTableName`, `profileGrantsTableId`, `profileGrantsTableName`, `profileDefinitionGrantsTableId`, `profileDefinitionGrantsTableName`, `profileTemplatesTableId`, `profileTemplatesTableName`, `entityTableId`, `actorTableId`, `permissionsTableId`, `membershipsTableId`, `prefix` ### `secrets-module` @@ -2404,10 +2413,8 @@ CRUD operations for StorageModule records. | `privateSchemaId` | UUID | | `bucketsTableId` | UUID | | `filesTableId` | UUID | -| `uploadRequestsTableId` | UUID | | `bucketsTableName` | String | | `filesTableName` | String | -| `uploadRequestsTableName` | String | | `membershipType` | Int | | `policies` | JSON | | `skipDefaultPolicyTables` | String | @@ -2416,6 +2423,7 @@ CRUD operations for StorageModule records. | `publicUrlPrefix` | String | | `provider` | String | | `allowedOrigins` | String | +| `restrictReads` | Boolean | | `uploadUrlExpirySeconds` | Int | | `downloadUrlExpirySeconds` | Int | | `defaultMaxFileSize` | BigInt | @@ -2423,7 +2431,7 @@ CRUD operations for StorageModule records. | `cacheTtlSeconds` | Int | **Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `uploadRequestsTableId`, `bucketsTableName`, `filesTableName`, `uploadRequestsTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `bucketsTableId`, `filesTableId`, `bucketsTableName`, `filesTableName`, `membershipType`, `policies`, `skipDefaultPolicyTables`, `entityTableId`, `endpoint`, `publicUrlPrefix`, `provider`, `allowedOrigins`, `restrictReads`, `uploadUrlExpirySeconds`, `downloadUrlExpirySeconds`, `defaultMaxFileSize`, `maxFilenameLength`, `cacheTtlSeconds` ### `entity-type-provision` @@ -2974,11 +2982,14 @@ CRUD operations for AppLimit records. | `id` | UUID | | `name` | String | | `actorId` | UUID | -| `num` | Int | -| `max` | Int | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | **Required create fields:** `actorId` -**Optional create fields (backend defaults):** `name`, `num`, `max` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` ### `org-limit` @@ -3000,12 +3011,44 @@ CRUD operations for OrgLimit records. | `id` | UUID | | `name` | String | | `actorId` | UUID | -| `num` | Int | -| `max` | Int | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | | `entityId` | UUID | **Required create fields:** `actorId`, `entityId` -**Optional create fields (backend defaults):** `name`, `num`, `max` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` + +### `org-limit-aggregate` + +CRUD operations for OrgLimitAggregate records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all orgLimitAggregate records | +| `find-first` | Find first matching orgLimitAggregate record | +| `get` | Get a orgLimitAggregate by id | +| `create` | Create a new orgLimitAggregate | +| `update` | Update an existing orgLimitAggregate | +| `delete` | Delete a orgLimitAggregate | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `entityId` | UUID | +| `num` | BigInt | +| `max` | BigInt | +| `softMax` | BigInt | +| `windowStart` | Datetime | +| `windowDuration` | Interval | + +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `name`, `num`, `max`, `softMax`, `windowStart`, `windowDuration` ### `app-step` @@ -3238,11 +3281,12 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | | `multiple` | Boolean | | `data` | JSON | +| `profileId` | UUID | | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | -**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` +**Optional create fields (backend defaults):** `email`, `senderId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` ### `app-claimed-invite` @@ -3297,13 +3341,14 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | | `multiple` | Boolean | | `data` | JSON | +| `profileId` | UUID | | `expiresAt` | Datetime | | `createdAt` | Datetime | | `updatedAt` | Datetime | | `entityId` | UUID | **Required create fields:** `entityId` -**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `expiresAt` +**Optional create fields (backend defaults):** `email`, `senderId`, `receiverId`, `inviteToken`, `inviteValid`, `inviteLimit`, `inviteCount`, `multiple`, `data`, `profileId`, `expiresAt` ### `org-claimed-invite` @@ -3362,27 +3407,118 @@ CRUD operations for AuditLog records. **Required create fields:** `event`, `success` **Optional create fields (backend defaults):** `actorId`, `origin`, `userAgent`, `ipAddress` -### `app-permission-default` +### `agent-thread` -CRUD operations for AppPermissionDefault records. +CRUD operations for AgentThread records. | Subcommand | Description | |------------|-------------| -| `list` | List all appPermissionDefault records | -| `find-first` | Find first matching appPermissionDefault record | -| `get` | Get a appPermissionDefault by id | -| `create` | Create a new appPermissionDefault | -| `update` | Update an existing appPermissionDefault | -| `delete` | Delete a appPermissionDefault | +| `list` | List all agentThread records | +| `find-first` | Find first matching agentThread record | +| `get` | Get a agentThread by id | +| `create` | Create a new agentThread | +| `update` | Update an existing agentThread | +| `delete` | Delete a agentThread | **Fields:** | Field | Type | |-------|------| +| `title` | String | +| `mode` | String | +| `model` | String | +| `systemPrompt` | String | | `id` | UUID | -| `permissions` | BitString | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `entityId` | UUID | +| `status` | String | -**Optional create fields (backend defaults):** `permissions` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `title`, `mode`, `model`, `systemPrompt`, `ownerId`, `status` + +### `agent-message` + +CRUD operations for AgentMessage records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentMessage records | +| `find-first` | Find first matching agentMessage record | +| `get` | Get a agentMessage by id | +| `create` | Create a new agentMessage | +| `update` | Update an existing agentMessage | +| `delete` | Delete a agentMessage | + +**Fields:** + +| Field | Type | +|-------|------| +| `threadId` | UUID | +| `entityId` | UUID | +| `authorRole` | String | +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `parts` | JSON | + +**Required create fields:** `threadId`, `entityId`, `authorRole` +**Optional create fields (backend defaults):** `ownerId`, `parts` + +### `agent-task` + +CRUD operations for AgentTask records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all agentTask records | +| `find-first` | Find first matching agentTask record | +| `get` | Get a agentTask by id | +| `create` | Create a new agentTask | +| `update` | Update an existing agentTask | +| `delete` | Delete a agentTask | + +**Fields:** + +| Field | Type | +|-------|------| +| `threadId` | UUID | +| `entityId` | UUID | +| `description` | String | +| `source` | String | +| `error` | String | +| `id` | UUID | +| `createdAt` | Datetime | +| `updatedAt` | Datetime | +| `ownerId` | UUID | +| `status` | String | + +**Required create fields:** `threadId`, `entityId`, `description` +**Optional create fields (backend defaults):** `source`, `error`, `ownerId`, `status` + +### `role-type` + +CRUD operations for RoleType records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all roleType records | +| `find-first` | Find first matching roleType record | +| `get` | Get a roleType by id | +| `create` | Create a new roleType | +| `update` | Update an existing roleType | +| `delete` | Delete a roleType | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `name` | String | + +**Required create fields:** `name` ### `identity-provider` @@ -3461,18 +3597,40 @@ CRUD operations for Store records. **Required create fields:** `name`, `databaseId` **Optional create fields (backend defaults):** `hash` -### `role-type` +### `app-permission-default` -CRUD operations for RoleType records. +CRUD operations for AppPermissionDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all roleType records | -| `find-first` | Find first matching roleType record | -| `get` | Get a roleType by id | -| `create` | Create a new roleType | -| `update` | Update an existing roleType | -| `delete` | Delete a roleType | +| `list` | List all appPermissionDefault records | +| `find-first` | Find first matching appPermissionDefault record | +| `get` | Get a appPermissionDefault by id | +| `create` | Create a new appPermissionDefault | +| `update` | Update an existing appPermissionDefault | +| `delete` | Delete a appPermissionDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `permissions` | BitString | + +**Optional create fields (backend defaults):** `permissions` + +### `membership-type` + +CRUD operations for MembershipType records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all membershipType records | +| `find-first` | Find first matching membershipType record | +| `get` | Get a membershipType by id | +| `create` | Create a new membershipType | +| `update` | Update an existing membershipType | +| `delete` | Delete a membershipType | **Fields:** @@ -3480,8 +3638,13 @@ CRUD operations for RoleType records. |-------|------| | `id` | Int | | `name` | String | +| `description` | String | +| `prefix` | String | +| `parentMembershipType` | Int | +| `hasUsersTableEntry` | Boolean | -**Required create fields:** `name` +**Required create fields:** `name`, `description`, `prefix` +**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` ### `migrate-file` @@ -3506,81 +3669,111 @@ CRUD operations for MigrateFile records. **Optional create fields (backend defaults):** `databaseId`, `upload` -### `app-limit-default` +### `devices-module` -CRUD operations for AppLimitDefault records. +CRUD operations for DevicesModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all appLimitDefault records | -| `find-first` | Find first matching appLimitDefault record | -| `get` | Get a appLimitDefault by id | -| `create` | Create a new appLimitDefault | -| `update` | Update an existing appLimitDefault | -| `delete` | Delete a appLimitDefault | +| `list` | List all devicesModule records | +| `find-first` | Find first matching devicesModule record | +| `get` | Get a devicesModule by id | +| `create` | Create a new devicesModule | +| `update` | Update an existing devicesModule | +| `delete` | Delete a devicesModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `name` | String | -| `max` | Int | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `userDevicesTableId` | UUID | +| `deviceSettingsTableId` | UUID | +| `userDevicesTable` | String | +| `deviceSettingsTable` | String | -**Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` -### `org-limit-default` +### `node-type-registry` -CRUD operations for OrgLimitDefault records. +CRUD operations for NodeTypeRegistry records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgLimitDefault records | -| `find-first` | Find first matching orgLimitDefault record | -| `get` | Get a orgLimitDefault by id | -| `create` | Create a new orgLimitDefault | -| `update` | Update an existing orgLimitDefault | -| `delete` | Delete a orgLimitDefault | +| `list` | List all nodeTypeRegistry records | +| `find-first` | Find first matching nodeTypeRegistry record | +| `get` | Get a nodeTypeRegistry by name | +| `create` | Create a new nodeTypeRegistry | +| `update` | Update an existing nodeTypeRegistry | +| `delete` | Delete a nodeTypeRegistry | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | | `name` | String | -| `max` | Int | - +| `slug` | String | +| `category` | String | +| `displayName` | String | +| `description` | String | +| `parameterSchema` | JSON | +| `tags` | String | + +**Required create fields:** `slug`, `category` +**Optional create fields (backend defaults):** `displayName`, `description`, `parameterSchema`, `tags` + +### `app-limit-default` + +CRUD operations for AppLimitDefault records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all appLimitDefault records | +| `find-first` | Find first matching appLimitDefault record | +| `get` | Get a appLimitDefault by id | +| `create` | Create a new appLimitDefault | +| `update` | Update an existing appLimitDefault | +| `delete` | Delete a appLimitDefault | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | + **Required create fields:** `name` -**Optional create fields (backend defaults):** `max` +**Optional create fields (backend defaults):** `max`, `softMax` -### `devices-module` +### `org-limit-default` -CRUD operations for DevicesModule records. +CRUD operations for OrgLimitDefault records. | Subcommand | Description | |------------|-------------| -| `list` | List all devicesModule records | -| `find-first` | Find first matching devicesModule record | -| `get` | Get a devicesModule by id | -| `create` | Create a new devicesModule | -| `update` | Update an existing devicesModule | -| `delete` | Delete a devicesModule | +| `list` | List all orgLimitDefault records | +| `find-first` | Find first matching orgLimitDefault record | +| `get` | Get a orgLimitDefault by id | +| `create` | Create a new orgLimitDefault | +| `update` | Update an existing orgLimitDefault | +| `delete` | Delete a orgLimitDefault | **Fields:** | Field | Type | |-------|------| | `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `userDevicesTableId` | UUID | -| `deviceSettingsTableId` | UUID | -| `userDevicesTable` | String | -| `deviceSettingsTable` | String | +| `name` | String | +| `max` | BigInt | +| `softMax` | BigInt | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `userDevicesTableId`, `deviceSettingsTableId`, `userDevicesTable`, `deviceSettingsTable` +**Required create fields:** `name` +**Optional create fields (backend defaults):** `max`, `softMax` ### `user-connected-account` @@ -3610,6 +3803,66 @@ CRUD operations for UserConnectedAccount records. **Optional create fields (backend defaults):** `ownerId`, `service`, `identifier`, `details`, `isVerified` +### `commit` + +CRUD operations for Commit records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all commit records | +| `find-first` | Find first matching commit record | +| `get` | Get a commit by id | +| `create` | Create a new commit | +| `update` | Update an existing commit | +| `delete` | Delete a commit | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `message` | String | +| `databaseId` | UUID | +| `storeId` | UUID | +| `parentIds` | UUID | +| `authorId` | UUID | +| `committerId` | UUID | +| `treeId` | UUID | +| `date` | Datetime | + +**Required create fields:** `databaseId`, `storeId` +**Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` + +### `rate-limits-module` + +CRUD operations for RateLimitsModule records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all rateLimitsModule records | +| `find-first` | Find first matching rateLimitsModule record | +| `get` | Get a rateLimitsModule by id | +| `create` | Create a new rateLimitsModule | +| `update` | Update an existing rateLimitsModule | +| `delete` | Delete a rateLimitsModule | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `rateLimitSettingsTableId` | UUID | +| `ipRateLimitsTableId` | UUID | +| `rateLimitsTableId` | UUID | +| `rateLimitSettingsTable` | String | +| `ipRateLimitsTable` | String | +| `rateLimitsTable` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `rateLimitSettingsTableId`, `ipRateLimitsTableId`, `rateLimitsTableId`, `rateLimitSettingsTable`, `ipRateLimitsTable`, `rateLimitsTable` + ### `app-membership-default` CRUD operations for AppMembershipDefault records. @@ -3665,92 +3918,95 @@ CRUD operations for OrgMembershipDefault records. **Required create fields:** `entityId` **Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved` -### `commit` +### `app-limit-event` -CRUD operations for Commit records. +CRUD operations for AppLimitEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all commit records | -| `find-first` | Find first matching commit record | -| `get` | Get a commit by id | -| `create` | Create a new commit | -| `update` | Update an existing commit | -| `delete` | Delete a commit | +| `list` | List all appLimitEvent records | +| `find-first` | Find first matching appLimitEvent record | +| `get` | Get a appLimitEvent by id | +| `create` | Create a new appLimitEvent | +| `update` | Update an existing appLimitEvent | +| `delete` | Delete a appLimitEvent | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `message` | String | -| `databaseId` | UUID | -| `storeId` | UUID | -| `parentIds` | UUID | -| `authorId` | UUID | -| `committerId` | UUID | -| `treeId` | UUID | -| `date` | Datetime | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | -**Required create fields:** `databaseId`, `storeId` -**Optional create fields (backend defaults):** `message`, `parentIds`, `authorId`, `committerId`, `treeId`, `date` +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` -### `rate-limits-module` +### `org-limit-event` -CRUD operations for RateLimitsModule records. +CRUD operations for OrgLimitEvent records. | Subcommand | Description | |------------|-------------| -| `list` | List all rateLimitsModule records | -| `find-first` | Find first matching rateLimitsModule record | -| `get` | Get a rateLimitsModule by id | -| `create` | Create a new rateLimitsModule | -| `update` | Update an existing rateLimitsModule | -| `delete` | Delete a rateLimitsModule | +| `list` | List all orgLimitEvent records | +| `find-first` | Find first matching orgLimitEvent record | +| `get` | Get a orgLimitEvent by id | +| `create` | Create a new orgLimitEvent | +| `update` | Update an existing orgLimitEvent | +| `delete` | Delete a orgLimitEvent | **Fields:** | Field | Type | |-------|------| -| `id` | UUID | -| `databaseId` | UUID | -| `schemaId` | UUID | -| `rateLimitSettingsTableId` | UUID | -| `ipRateLimitsTableId` | UUID | -| `rateLimitsTableId` | UUID | -| `rateLimitSettingsTable` | String | -| `ipRateLimitsTable` | String | -| `rateLimitsTable` | String | +| `name` | String | +| `actorId` | UUID | +| `entityId` | UUID | +| `eventType` | String | +| `delta` | BigInt | +| `numBefore` | BigInt | +| `numAfter` | BigInt | +| `maxAtEvent` | BigInt | +| `reason` | String | -**Required create fields:** `databaseId` -**Optional create fields (backend defaults):** `schemaId`, `rateLimitSettingsTableId`, `ipRateLimitsTableId`, `rateLimitsTableId`, `rateLimitSettingsTable`, `ipRateLimitsTable`, `rateLimitsTable` +**Optional create fields (backend defaults):** `name`, `actorId`, `entityId`, `eventType`, `delta`, `numBefore`, `numAfter`, `maxAtEvent`, `reason` -### `membership-type` +### `plans-module` -CRUD operations for MembershipType records. +CRUD operations for PlansModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all membershipType records | -| `find-first` | Find first matching membershipType record | -| `get` | Get a membershipType by id | -| `create` | Create a new membershipType | -| `update` | Update an existing membershipType | -| `delete` | Delete a membershipType | +| `list` | List all plansModule records | +| `find-first` | Find first matching plansModule record | +| `get` | Get a plansModule by id | +| `create` | Create a new plansModule | +| `update` | Update an existing plansModule | +| `delete` | Delete a plansModule | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `name` | String | -| `description` | String | +| `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `plansTableId` | UUID | +| `plansTableName` | String | +| `planLimitsTableId` | UUID | +| `planLimitsTableName` | String | +| `applyPlanFunction` | String | +| `applyPlanAggregateFunction` | String | | `prefix` | String | -| `parentMembershipType` | Int | -| `hasUsersTableEntry` | Boolean | -**Required create fields:** `name`, `description`, `prefix` -**Optional create fields (backend defaults):** `parentMembershipType`, `hasUsersTableEntry` +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `plansTableId`, `plansTableName`, `planLimitsTableId`, `planLimitsTableName`, `applyPlanFunction`, `applyPlanAggregateFunction`, `prefix` ### `rls-module` @@ -3817,38 +4073,73 @@ CRUD operations for SqlAction records. **Optional create fields (backend defaults):** `name`, `databaseId`, `deploy`, `deps`, `payload`, `content`, `revert`, `verify`, `action`, `actionId`, `actorId` -### `org-membership-setting` +### `billing-module` -CRUD operations for OrgMembershipSetting records. +CRUD operations for BillingModule records. | Subcommand | Description | |------------|-------------| -| `list` | List all orgMembershipSetting records | -| `find-first` | Find first matching orgMembershipSetting record | -| `get` | Get a orgMembershipSetting by id | -| `create` | Create a new orgMembershipSetting | -| `update` | Update an existing orgMembershipSetting | -| `delete` | Delete a orgMembershipSetting | +| `list` | List all billingModule records | +| `find-first` | Find first matching billingModule record | +| `get` | Get a billingModule by id | +| `create` | Create a new billingModule | +| `update` | Update an existing billingModule | +| `delete` | Delete a billingModule | **Fields:** | Field | Type | |-------|------| | `id` | UUID | +| `databaseId` | UUID | +| `schemaId` | UUID | +| `privateSchemaId` | UUID | +| `metersTableId` | UUID | +| `metersTableName` | String | +| `planSubscriptionsTableId` | UUID | +| `planSubscriptionsTableName` | String | +| `ledgerTableId` | UUID | +| `ledgerTableName` | String | +| `balancesTableId` | UUID | +| `balancesTableName` | String | +| `recordUsageFunction` | String | +| `prefix` | String | + +**Required create fields:** `databaseId` +**Optional create fields (backend defaults):** `schemaId`, `privateSchemaId`, `metersTableId`, `metersTableName`, `planSubscriptionsTableId`, `planSubscriptionsTableName`, `ledgerTableId`, `ledgerTableName`, `balancesTableId`, `balancesTableName`, `recordUsageFunction`, `prefix` + +### `ast-migration` + +CRUD operations for AstMigration records. + +| Subcommand | Description | +|------------|-------------| +| `list` | List all astMigration records | +| `find-first` | Find first matching astMigration record | +| `get` | Get a astMigration by id | +| `create` | Create a new astMigration | +| `update` | Update an existing astMigration | +| `delete` | Delete a astMigration | + +**Fields:** + +| Field | Type | +|-------|------| +| `id` | Int | +| `databaseId` | UUID | +| `name` | String | +| `requires` | String | +| `payload` | JSON | +| `deploys` | String | +| `deploy` | JSON | +| `revert` | JSON | +| `verify` | JSON | | `createdAt` | Datetime | -| `updatedAt` | Datetime | -| `createdBy` | UUID | -| `updatedBy` | UUID | -| `entityId` | UUID | -| `deleteMemberCascadeChildren` | Boolean | -| `createChildCascadeOwners` | Boolean | -| `createChildCascadeAdmins` | Boolean | -| `createChildCascadeMembers` | Boolean | -| `allowExternalMembers` | Boolean | -| `populateMemberEmail` | Boolean | +| `action` | String | +| `actionId` | UUID | +| `actorId` | UUID | -**Required create fields:** `entityId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `populateMemberEmail` +**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` ### `user` @@ -3908,38 +4199,40 @@ csdk user search "query" --limit 10 --select id,title,searchScore ``` -### `ast-migration` +### `org-membership-setting` -CRUD operations for AstMigration records. +CRUD operations for OrgMembershipSetting records. | Subcommand | Description | |------------|-------------| -| `list` | List all astMigration records | -| `find-first` | Find first matching astMigration record | -| `get` | Get a astMigration by id | -| `create` | Create a new astMigration | -| `update` | Update an existing astMigration | -| `delete` | Delete a astMigration | +| `list` | List all orgMembershipSetting records | +| `find-first` | Find first matching orgMembershipSetting record | +| `get` | Get a orgMembershipSetting by id | +| `create` | Create a new orgMembershipSetting | +| `update` | Update an existing orgMembershipSetting | +| `delete` | Delete a orgMembershipSetting | **Fields:** | Field | Type | |-------|------| -| `id` | Int | -| `databaseId` | UUID | -| `name` | String | -| `requires` | String | -| `payload` | JSON | -| `deploys` | String | -| `deploy` | JSON | -| `revert` | JSON | -| `verify` | JSON | +| `id` | UUID | | `createdAt` | Datetime | -| `action` | String | -| `actionId` | UUID | -| `actorId` | UUID | +| `updatedAt` | Datetime | +| `createdBy` | UUID | +| `updatedBy` | UUID | +| `entityId` | UUID | +| `deleteMemberCascadeChildren` | Boolean | +| `createChildCascadeOwners` | Boolean | +| `createChildCascadeAdmins` | Boolean | +| `createChildCascadeMembers` | Boolean | +| `allowExternalMembers` | Boolean | +| `inviteProfileAssignmentMode` | String | +| `populateMemberEmail` | Boolean | +| `limitAllocationMode` | String | -**Optional create fields (backend defaults):** `databaseId`, `name`, `requires`, `payload`, `deploys`, `deploy`, `revert`, `verify`, `action`, `actionId`, `actorId` +**Required create fields:** `entityId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `deleteMemberCascadeChildren`, `createChildCascadeOwners`, `createChildCascadeAdmins`, `createChildCascadeMembers`, `allowExternalMembers`, `inviteProfileAssignmentMode`, `populateMemberEmail`, `limitAllocationMode` ### `app-membership` @@ -3968,7 +4261,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | | `isVerified` | Boolean | | `isActive` | Boolean | -| `isExternal` | Boolean | | `isOwner` | Boolean | | `isAdmin` | Boolean | | `permissions` | BitString | @@ -3977,7 +4269,7 @@ CRUD operations for AppMembership records. | `profileId` | UUID | **Required create fields:** `actorId` -**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isExternal`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` +**Optional create fields (backend defaults):** `createdBy`, `updatedBy`, `isApproved`, `isBanned`, `isDisabled`, `isVerified`, `isActive`, `isOwner`, `isAdmin`, `permissions`, `granted`, `profileId` ### `hierarchy-module` @@ -4187,78 +4479,78 @@ orgPermissionsGetMaskByNames |----------|------| | `--names` | String | -### `get-all-objects-from-root` +### `app-permissions-get-by-mask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | + | `--mask` | BitString | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-path-objects-from-root` +### `org-permissions-get-by-mask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--databaseId` | UUID | - | `--id` | UUID | - | `--path` | String | + | `--mask` | BitString | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `get-object-at-path` +### `get-all-objects-from-root` -getObjectAtPath +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--dbId` | UUID | - | `--storeId` | UUID | - | `--path` | String | - | `--refname` | String | + | `--databaseId` | UUID | + | `--id` | UUID | + | `--first` | Int | + | `--offset` | Int | + | `--after` | Cursor | -### `app-permissions-get-by-mask` +### `get-path-objects-from-root` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | + | `--databaseId` | UUID | + | `--id` | UUID | + | `--path` | String | | `--first` | Int | | `--offset` | Int | | `--after` | Cursor | -### `org-permissions-get-by-mask` +### `get-object-at-path` -Reads and enables pagination through a set of `OrgPermission`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `--mask` | BitString | - | `--first` | Int | - | `--offset` | Int | - | `--after` | Cursor | + | `--dbId` | UUID | + | `--storeId` | UUID | + | `--path` | String | + | `--refname` | String | ### `steps-required` @@ -4883,6 +5175,30 @@ createApiKey | `--input.mfaLevel` | String | | `--input.expiresIn` | IntervalInput | +### `send-verification-email` + +sendVerificationEmail + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + +### `forgot-password` + +forgotPassword + +- **Type:** mutation +- **Arguments:** + + | Argument | Type | + |----------|------| + | `--input.clientMutationId` | String | + | `--input.email` | Email | + ### `sign-up` signUp @@ -4955,30 +5271,6 @@ Composable table provisioning: creates or finds a table, then creates fields (so | `--input.uniqueConstraints` | JSON | | `--input.description` | String | -### `send-verification-email` - -sendVerificationEmail - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - -### `forgot-password` - -forgotPassword - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.clientMutationId` | String | - | `--input.email` | Email | - ### `request-upload-url` Request a presigned URL for uploading a file directly to S3. @@ -4998,19 +5290,6 @@ existing file ID and deduplicated=true with no uploadUrl. | `--input.size` | Int (required) | | `--input.filename` | String | -### `confirm-upload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `--input.fileId` | UUID (required) | - ### `provision-bucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/public/cli/commands.ts b/sdk/constructive-cli/src/public/cli/commands.ts index bfe62adc4..97ee24d80 100644 --- a/sdk/constructive-cli/src/public/cli/commands.ts +++ b/sdk/constructive-cli/src/public/cli/commands.ts @@ -9,9 +9,9 @@ import authCmd from './commands/auth'; import orgGetManagersRecordCmd from './commands/org-get-managers-record'; import orgGetSubordinatesRecordCmd from './commands/org-get-subordinates-record'; import getAllRecordCmd from './commands/get-all-record'; -import objectCmd from './commands/object'; import appPermissionCmd from './commands/app-permission'; import orgPermissionCmd from './commands/org-permission'; +import objectCmd from './commands/object'; import appLevelRequirementCmd from './commands/app-level-requirement'; import databaseCmd from './commands/database'; import schemaCmd from './commands/schema'; @@ -92,6 +92,7 @@ import orgChartEdgeGrantCmd from './commands/org-chart-edge-grant'; import orgPermissionDefaultCmd from './commands/org-permission-default'; import appLimitCmd from './commands/app-limit'; import orgLimitCmd from './commands/org-limit'; +import orgLimitAggregateCmd from './commands/org-limit-aggregate'; import appStepCmd from './commands/app-step'; import appAchievementCmd from './commands/app-achievement'; import appLevelCmd from './commands/app-level'; @@ -104,26 +105,34 @@ import appClaimedInviteCmd from './commands/app-claimed-invite'; import orgInviteCmd from './commands/org-invite'; import orgClaimedInviteCmd from './commands/org-claimed-invite'; import auditLogCmd from './commands/audit-log'; -import appPermissionDefaultCmd from './commands/app-permission-default'; +import agentThreadCmd from './commands/agent-thread'; +import agentMessageCmd from './commands/agent-message'; +import agentTaskCmd from './commands/agent-task'; +import roleTypeCmd from './commands/role-type'; import identityProviderCmd from './commands/identity-provider'; import refCmd from './commands/ref'; import storeCmd from './commands/store'; -import roleTypeCmd from './commands/role-type'; +import appPermissionDefaultCmd from './commands/app-permission-default'; +import membershipTypeCmd from './commands/membership-type'; import migrateFileCmd from './commands/migrate-file'; +import devicesModuleCmd from './commands/devices-module'; +import nodeTypeRegistryCmd from './commands/node-type-registry'; import appLimitDefaultCmd from './commands/app-limit-default'; import orgLimitDefaultCmd from './commands/org-limit-default'; -import devicesModuleCmd from './commands/devices-module'; import userConnectedAccountCmd from './commands/user-connected-account'; -import appMembershipDefaultCmd from './commands/app-membership-default'; -import orgMembershipDefaultCmd from './commands/org-membership-default'; import commitCmd from './commands/commit'; import rateLimitsModuleCmd from './commands/rate-limits-module'; -import membershipTypeCmd from './commands/membership-type'; +import appMembershipDefaultCmd from './commands/app-membership-default'; +import orgMembershipDefaultCmd from './commands/org-membership-default'; +import appLimitEventCmd from './commands/app-limit-event'; +import orgLimitEventCmd from './commands/org-limit-event'; +import plansModuleCmd from './commands/plans-module'; import rlsModuleCmd from './commands/rls-module'; import sqlActionCmd from './commands/sql-action'; -import orgMembershipSettingCmd from './commands/org-membership-setting'; -import userCmd from './commands/user'; +import billingModuleCmd from './commands/billing-module'; import astMigrationCmd from './commands/ast-migration'; +import userCmd from './commands/user'; +import orgMembershipSettingCmd from './commands/org-membership-setting'; import appMembershipCmd from './commands/app-membership'; import hierarchyModuleCmd from './commands/hierarchy-module'; import currentUserIdCmd from './commands/current-user-id'; @@ -141,11 +150,11 @@ import orgPermissionsGetMaskCmd from './commands/org-permissions-get-mask'; import resolveBlueprintTableCmd from './commands/resolve-blueprint-table'; import appPermissionsGetMaskByNamesCmd from './commands/app-permissions-get-mask-by-names'; import orgPermissionsGetMaskByNamesCmd from './commands/org-permissions-get-mask-by-names'; +import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; +import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import getAllObjectsFromRootCmd from './commands/get-all-objects-from-root'; import getPathObjectsFromRootCmd from './commands/get-path-objects-from-root'; import getObjectAtPathCmd from './commands/get-object-at-path'; -import appPermissionsGetByMaskCmd from './commands/app-permissions-get-by-mask'; -import orgPermissionsGetByMaskCmd from './commands/org-permissions-get-by-mask'; import stepsRequiredCmd from './commands/steps-required'; import currentUserCmd from './commands/current-user'; import sendAccountDeletionEmailCmd from './commands/send-account-deletion-email'; @@ -189,14 +198,13 @@ import signInCrossOriginCmd from './commands/sign-in-cross-origin'; import createUserDatabaseCmd from './commands/create-user-database'; import extendTokenExpiresCmd from './commands/extend-token-expires'; import createApiKeyCmd from './commands/create-api-key'; +import sendVerificationEmailCmd from './commands/send-verification-email'; +import forgotPasswordCmd from './commands/forgot-password'; import signUpCmd from './commands/sign-up'; import requestCrossOriginTokenCmd from './commands/request-cross-origin-token'; import signInCmd from './commands/sign-in'; import provisionTableCmd from './commands/provision-table'; -import sendVerificationEmailCmd from './commands/send-verification-email'; -import forgotPasswordCmd from './commands/forgot-password'; import requestUploadUrlCmd from './commands/request-upload-url'; -import confirmUploadCmd from './commands/confirm-upload'; import provisionBucketCmd from './commands/provision-bucket'; const createCommandMap: () => Record< string, @@ -211,9 +219,9 @@ const createCommandMap: () => Record< 'org-get-managers-record': orgGetManagersRecordCmd, 'org-get-subordinates-record': orgGetSubordinatesRecordCmd, 'get-all-record': getAllRecordCmd, - object: objectCmd, 'app-permission': appPermissionCmd, 'org-permission': orgPermissionCmd, + object: objectCmd, 'app-level-requirement': appLevelRequirementCmd, database: databaseCmd, schema: schemaCmd, @@ -294,6 +302,7 @@ const createCommandMap: () => Record< 'org-permission-default': orgPermissionDefaultCmd, 'app-limit': appLimitCmd, 'org-limit': orgLimitCmd, + 'org-limit-aggregate': orgLimitAggregateCmd, 'app-step': appStepCmd, 'app-achievement': appAchievementCmd, 'app-level': appLevelCmd, @@ -306,26 +315,34 @@ const createCommandMap: () => Record< 'org-invite': orgInviteCmd, 'org-claimed-invite': orgClaimedInviteCmd, 'audit-log': auditLogCmd, - 'app-permission-default': appPermissionDefaultCmd, + 'agent-thread': agentThreadCmd, + 'agent-message': agentMessageCmd, + 'agent-task': agentTaskCmd, + 'role-type': roleTypeCmd, 'identity-provider': identityProviderCmd, ref: refCmd, store: storeCmd, - 'role-type': roleTypeCmd, + 'app-permission-default': appPermissionDefaultCmd, + 'membership-type': membershipTypeCmd, 'migrate-file': migrateFileCmd, + 'devices-module': devicesModuleCmd, + 'node-type-registry': nodeTypeRegistryCmd, 'app-limit-default': appLimitDefaultCmd, 'org-limit-default': orgLimitDefaultCmd, - 'devices-module': devicesModuleCmd, 'user-connected-account': userConnectedAccountCmd, - 'app-membership-default': appMembershipDefaultCmd, - 'org-membership-default': orgMembershipDefaultCmd, commit: commitCmd, 'rate-limits-module': rateLimitsModuleCmd, - 'membership-type': membershipTypeCmd, + 'app-membership-default': appMembershipDefaultCmd, + 'org-membership-default': orgMembershipDefaultCmd, + 'app-limit-event': appLimitEventCmd, + 'org-limit-event': orgLimitEventCmd, + 'plans-module': plansModuleCmd, 'rls-module': rlsModuleCmd, 'sql-action': sqlActionCmd, - 'org-membership-setting': orgMembershipSettingCmd, - user: userCmd, + 'billing-module': billingModuleCmd, 'ast-migration': astMigrationCmd, + user: userCmd, + 'org-membership-setting': orgMembershipSettingCmd, 'app-membership': appMembershipCmd, 'hierarchy-module': hierarchyModuleCmd, 'current-user-id': currentUserIdCmd, @@ -343,11 +360,11 @@ const createCommandMap: () => Record< 'resolve-blueprint-table': resolveBlueprintTableCmd, 'app-permissions-get-mask-by-names': appPermissionsGetMaskByNamesCmd, 'org-permissions-get-mask-by-names': orgPermissionsGetMaskByNamesCmd, + 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, + 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'get-all-objects-from-root': getAllObjectsFromRootCmd, 'get-path-objects-from-root': getPathObjectsFromRootCmd, 'get-object-at-path': getObjectAtPathCmd, - 'app-permissions-get-by-mask': appPermissionsGetByMaskCmd, - 'org-permissions-get-by-mask': orgPermissionsGetByMaskCmd, 'steps-required': stepsRequiredCmd, 'current-user': currentUserCmd, 'send-account-deletion-email': sendAccountDeletionEmailCmd, @@ -391,18 +408,17 @@ const createCommandMap: () => Record< 'create-user-database': createUserDatabaseCmd, 'extend-token-expires': extendTokenExpiresCmd, 'create-api-key': createApiKeyCmd, + 'send-verification-email': sendVerificationEmailCmd, + 'forgot-password': forgotPasswordCmd, 'sign-up': signUpCmd, 'request-cross-origin-token': requestCrossOriginTokenCmd, 'sign-in': signInCmd, 'provision-table': provisionTableCmd, - 'send-verification-email': sendVerificationEmailCmd, - 'forgot-password': forgotPasswordCmd, 'request-upload-url': requestUploadUrlCmd, - 'confirm-upload': confirmUploadCmd, 'provision-bucket': provisionBucketCmd, }); const usage = - "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n object object CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n org-limit orgLimit CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n role-type roleType CRUD operations\n migrate-file migrateFile CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n devices-module devicesModule CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n commit commit CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n membership-type membershipType CRUD operations\n rls-module rlsModule CRUD operations\n sql-action sqlAction CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n user user CRUD operations\n ast-migration astMigration CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n confirm-upload Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; + "\ncsdk \n\nCommands:\n context Manage API contexts\n auth Manage authentication\n org-get-managers-record orgGetManagersRecord CRUD operations\n org-get-subordinates-record orgGetSubordinatesRecord CRUD operations\n get-all-record getAllRecord CRUD operations\n app-permission appPermission CRUD operations\n org-permission orgPermission CRUD operations\n object object CRUD operations\n app-level-requirement appLevelRequirement CRUD operations\n database database CRUD operations\n schema schema CRUD operations\n table table CRUD operations\n check-constraint checkConstraint CRUD operations\n field field CRUD operations\n spatial-relation spatialRelation CRUD operations\n foreign-key-constraint foreignKeyConstraint CRUD operations\n full-text-search fullTextSearch CRUD operations\n index index CRUD operations\n policy policy CRUD operations\n primary-key-constraint primaryKeyConstraint CRUD operations\n table-grant tableGrant CRUD operations\n trigger trigger CRUD operations\n unique-constraint uniqueConstraint CRUD operations\n view view CRUD operations\n view-table viewTable CRUD operations\n view-grant viewGrant CRUD operations\n view-rule viewRule CRUD operations\n embedding-chunk embeddingChunk CRUD operations\n secure-table-provision secureTableProvision CRUD operations\n relation-provision relationProvision CRUD operations\n session-secrets-module sessionSecretsModule CRUD operations\n identity-providers-module identityProvidersModule CRUD operations\n schema-grant schemaGrant CRUD operations\n default-privilege defaultPrivilege CRUD operations\n enum enum CRUD operations\n api-schema apiSchema CRUD operations\n api-module apiModule CRUD operations\n domain domain CRUD operations\n site-metadatum siteMetadatum CRUD operations\n site-module siteModule CRUD operations\n site-theme siteTheme CRUD operations\n trigger-function triggerFunction CRUD operations\n database-transfer databaseTransfer CRUD operations\n api api CRUD operations\n site site CRUD operations\n app app CRUD operations\n connected-accounts-module connectedAccountsModule CRUD operations\n crypto-addresses-module cryptoAddressesModule CRUD operations\n crypto-auth-module cryptoAuthModule CRUD operations\n default-ids-module defaultIdsModule CRUD operations\n denormalized-table-field denormalizedTableField CRUD operations\n emails-module emailsModule CRUD operations\n encrypted-secrets-module encryptedSecretsModule CRUD operations\n invites-module invitesModule CRUD operations\n levels-module levelsModule CRUD operations\n limits-module limitsModule CRUD operations\n membership-types-module membershipTypesModule CRUD operations\n memberships-module membershipsModule CRUD operations\n permissions-module permissionsModule CRUD operations\n phone-numbers-module phoneNumbersModule CRUD operations\n profiles-module profilesModule CRUD operations\n secrets-module secretsModule CRUD operations\n sessions-module sessionsModule CRUD operations\n user-auth-module userAuthModule CRUD operations\n users-module usersModule CRUD operations\n blueprint blueprint CRUD operations\n blueprint-template blueprintTemplate CRUD operations\n blueprint-construction blueprintConstruction CRUD operations\n storage-module storageModule CRUD operations\n entity-type-provision entityTypeProvision CRUD operations\n webauthn-credentials-module webauthnCredentialsModule CRUD operations\n webauthn-auth-module webauthnAuthModule CRUD operations\n notifications-module notificationsModule CRUD operations\n database-provision-module databaseProvisionModule CRUD operations\n app-admin-grant appAdminGrant CRUD operations\n app-owner-grant appOwnerGrant CRUD operations\n app-grant appGrant CRUD operations\n org-membership orgMembership CRUD operations\n org-member orgMember CRUD operations\n org-admin-grant orgAdminGrant CRUD operations\n org-owner-grant orgOwnerGrant CRUD operations\n org-member-profile orgMemberProfile CRUD operations\n org-grant orgGrant CRUD operations\n org-chart-edge orgChartEdge CRUD operations\n org-chart-edge-grant orgChartEdgeGrant CRUD operations\n org-permission-default orgPermissionDefault CRUD operations\n app-limit appLimit CRUD operations\n org-limit orgLimit CRUD operations\n org-limit-aggregate orgLimitAggregate CRUD operations\n app-step appStep CRUD operations\n app-achievement appAchievement CRUD operations\n app-level appLevel CRUD operations\n email email CRUD operations\n phone-number phoneNumber CRUD operations\n crypto-address cryptoAddress CRUD operations\n webauthn-credential webauthnCredential CRUD operations\n app-invite appInvite CRUD operations\n app-claimed-invite appClaimedInvite CRUD operations\n org-invite orgInvite CRUD operations\n org-claimed-invite orgClaimedInvite CRUD operations\n audit-log auditLog CRUD operations\n agent-thread agentThread CRUD operations\n agent-message agentMessage CRUD operations\n agent-task agentTask CRUD operations\n role-type roleType CRUD operations\n identity-provider identityProvider CRUD operations\n ref ref CRUD operations\n store store CRUD operations\n app-permission-default appPermissionDefault CRUD operations\n membership-type membershipType CRUD operations\n migrate-file migrateFile CRUD operations\n devices-module devicesModule CRUD operations\n node-type-registry nodeTypeRegistry CRUD operations\n app-limit-default appLimitDefault CRUD operations\n org-limit-default orgLimitDefault CRUD operations\n user-connected-account userConnectedAccount CRUD operations\n commit commit CRUD operations\n rate-limits-module rateLimitsModule CRUD operations\n app-membership-default appMembershipDefault CRUD operations\n org-membership-default orgMembershipDefault CRUD operations\n app-limit-event appLimitEvent CRUD operations\n org-limit-event orgLimitEvent CRUD operations\n plans-module plansModule CRUD operations\n rls-module rlsModule CRUD operations\n sql-action sqlAction CRUD operations\n billing-module billingModule CRUD operations\n ast-migration astMigration CRUD operations\n user user CRUD operations\n org-membership-setting orgMembershipSetting CRUD operations\n app-membership appMembership CRUD operations\n hierarchy-module hierarchyModule CRUD operations\n current-user-id currentUserId\n current-user-agent currentUserAgent\n current-ip-address currentIpAddress\n require-step-up requireStepUp\n app-permissions-get-padded-mask appPermissionsGetPaddedMask\n org-permissions-get-padded-mask orgPermissionsGetPaddedMask\n steps-achieved stepsAchieved\n rev-parse revParse\n resolve-blueprint-field Resolves a field_name within a given table_id to a field_id. Throws if no match is found. Used by construct_blueprint to translate user-authored field names (e.g. \"location\") into field UUIDs for downstream provisioning procedures. table_id must already be resolved (via resolve_blueprint_table) before calling this.\n org-is-manager-of orgIsManagerOf\n app-permissions-get-mask appPermissionsGetMask\n org-permissions-get-mask orgPermissionsGetMask\n resolve-blueprint-table Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error.\n app-permissions-get-mask-by-names appPermissionsGetMaskByNames\n org-permissions-get-mask-by-names orgPermissionsGetMaskByNames\n app-permissions-get-by-mask Reads and enables pagination through a set of `AppPermission`.\n org-permissions-get-by-mask Reads and enables pagination through a set of `OrgPermission`.\n get-all-objects-from-root Reads and enables pagination through a set of `Object`.\n get-path-objects-from-root Reads and enables pagination through a set of `Object`.\n get-object-at-path getObjectAtPath\n steps-required Reads and enables pagination through a set of `AppLevelRequirement`.\n current-user currentUser\n send-account-deletion-email sendAccountDeletionEmail\n sign-out signOut\n accept-database-transfer acceptDatabaseTransfer\n cancel-database-transfer cancelDatabaseTransfer\n reject-database-transfer rejectDatabaseTransfer\n disconnect-account disconnectAccount\n revoke-api-key revokeApiKey\n revoke-session revokeSession\n verify-password verifyPassword\n verify-totp verifyTotp\n submit-app-invite-code submitAppInviteCode\n submit-org-invite-code submitOrgInviteCode\n check-password checkPassword\n confirm-delete-account confirmDeleteAccount\n set-password setPassword\n verify-email verifyEmail\n freeze-objects freezeObjects\n init-empty-repo initEmptyRepo\n construct-blueprint Executes a blueprint definition by delegating to provision_* procedures. Creates a blueprint_construction record to track the attempt. Six phases: (0) entity_type_provision for each membership_type entry \u2014 provisions entity tables, membership modules, and security, (1) provision_table() for each table with nodes[], fields[], policies[], and grants (table-level indexes/fts/unique_constraints are deferred), (2) provision_relation() for each relation, (3) provision_index() for top-level + deferred indexes, (4) provision_full_text_search() for top-level + deferred FTS, (5) provision_unique_constraint() for top-level + deferred unique constraints. Phase 0 entity tables are added to the table_map so subsequent phases can reference them by name. Table-level indexes/fts/unique_constraints are deferred to phases 3-5 so they can reference columns created by relations in phase 2. Returns the construction record ID on success, NULL on failure.\n provision-new-user provisionNewUser\n reset-password resetPassword\n remove-node-at-path removeNodeAtPath\n copy-template-to-blueprint Creates a new blueprint by copying a template definition. Checks visibility: owners can always copy their own templates, others require public visibility. Increments the template copy_count. Returns the new blueprint ID.\n provision-spatial-relation Idempotent provisioner for metaschema_public.spatial_relation. Inserts a row declaring a spatial predicate between two geometry/geography columns (owner and target). Called from construct_blueprint when a relation entry has $type=RelationSpatial. Graceful: re-running with the same (source_table_id, name) returns the existing id without modifying the row. Operator whitelist and st_dwithin \u2194 param_name pairing are enforced by the spatial_relation table CHECKs. Both fields must already exist \u2014 this is a metadata-only insert.\n bootstrap-user bootstrapUser\n set-field-order setFieldOrder\n provision-unique-constraint Creates a unique constraint on a table. Accepts a jsonb definition with columns (array of field names). Graceful: skips if the exact same unique constraint already exists.\n provision-full-text-search Creates a full-text search configuration on a table. Accepts a jsonb definition with field (tsvector column name) and sources (array of {field, weight, lang}). Graceful: skips if FTS config already exists for the same (table_id, field_id). Returns the fts_id.\n provision-index Creates an index on a table. Accepts a jsonb definition with columns (array of names or single column string), access_method (default BTREE), is_unique, op_classes, options, and name (auto-generated if omitted). Graceful: skips if an index with the same (table_id, field_ids, access_method) already exists. Returns the index_id.\n set-data-at-path setDataAtPath\n set-props-and-commit setPropsAndCommit\n provision-database-with-user provisionDatabaseWithUser\n insert-node-at-path insertNodeAtPath\n update-node-at-path updateNodeAtPath\n set-and-commit setAndCommit\n provision-relation Composable relation provisioning: creates FK fields, indexes, unique constraints, and junction tables depending on the relation_type. Supports RelationBelongsTo, RelationHasOne, RelationHasMany, and RelationManyToMany. ManyToMany uses provision_table() internally for junction table creation with full node/grant/policy support. All operations are graceful (skip existing). Returns (out_field_id, out_junction_table_id, out_source_field_id, out_target_field_id).\n apply-rls applyRls\n sign-in-cross-origin signInCrossOrigin\n create-user-database Creates a new user database with all required modules, permissions, and RLS policies.\n\nParameters:\n - database_name: Name for the new database (required)\n - owner_id: UUID of the owner user (required)\n - include_invites: Include invite system (default: true)\n - include_groups: Include group-level memberships (default: false)\n - include_levels: Include levels/achievements (default: false)\n - bitlen: Bit length for permission masks (default: 64)\n - tokens_expiration: Token expiration interval (default: 30 days)\n\nReturns the database_id UUID of the newly created database.\n\nExample usage:\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid);\n SELECT metaschema_public.create_user_database('my_app', 'a0eebc99-9c0b-4ef8-bb6d-6bb9bd380a11'::uuid, true, true); -- with invites and groups\n\n extend-token-expires extendTokenExpires\n create-api-key createApiKey\n send-verification-email sendVerificationEmail\n forgot-password forgotPassword\n sign-up signUp\n request-cross-origin-token requestCrossOriginToken\n sign-in signIn\n provision-table Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields).\n request-upload-url Request a presigned URL for uploading a file directly to S3.\nClient computes SHA-256 of the file content and provides it here.\nIf a file with the same hash already exists (dedup), returns the\nexisting file ID and deduplicated=true with no uploadUrl.\n provision-bucket Provision an S3 bucket for a logical bucket in the database.\nReads the bucket config via RLS, then creates and configures\nthe S3 bucket with the appropriate privacy policies, CORS rules,\nand lifecycle settings.\n\n --help, -h Show this help message\n --version, -v Show version\n"; export const commands = async ( argv: Partial>, prompter: Inquirerer, diff --git a/sdk/constructive-cli/src/public/cli/commands/agent-message.ts b/sdk/constructive-cli/src/public/cli/commands/agent-message.ts new file mode 100644 index 000000000..4abb81a2f --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/agent-message.ts @@ -0,0 +1,347 @@ +/** + * CLI commands for AgentMessage + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentMessageInput, + AgentMessagePatch, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + threadId: 'uuid', + entityId: 'uuid', + authorRole: 'string', + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + parts: 'json', +}; +const usage = + '\nagent-message \n\nCommands:\n list List agentMessage records\n find-first Find first matching agentMessage record\n get Get a agentMessage by ID\n create Create a new agentMessage\n update Update an existing agentMessage\n delete Delete a agentMessage\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + threadId: true, + entityId: true, + authorRole: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentMessage.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + threadId: true, + entityId: true, + authorRole: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentMessageSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentMessage.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentMessage + .findOne({ + id: answers.id as string, + select: { + threadId: true, + entityId: true, + authorRole: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentMessageInput['agentMessage']; + const client = getClient(); + const result = await client.agentMessage + .create({ + data: { + threadId: cleanedData.threadId, + entityId: cleanedData.entityId, + authorRole: cleanedData.authorRole, + ownerId: cleanedData.ownerId, + parts: cleanedData.parts, + }, + select: { + threadId: true, + entityId: true, + authorRole: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'authorRole', + message: 'authorRole', + required: false, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parts', + message: 'parts', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentMessagePatch; + const client = getClient(); + const result = await client.agentMessage + .update({ + where: { + id: answers.id as string, + }, + data: { + threadId: cleanedData.threadId, + entityId: cleanedData.entityId, + authorRole: cleanedData.authorRole, + ownerId: cleanedData.ownerId, + parts: cleanedData.parts, + }, + select: { + threadId: true, + entityId: true, + authorRole: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + parts: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentMessage + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/agent-task.ts b/sdk/constructive-cli/src/public/cli/commands/agent-task.ts new file mode 100644 index 000000000..95ba3f583 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/agent-task.ts @@ -0,0 +1,388 @@ +/** + * CLI commands for AgentTask + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentTaskInput, + AgentTaskPatch, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + threadId: 'uuid', + entityId: 'uuid', + description: 'string', + source: 'string', + error: 'string', + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + status: 'string', +}; +const usage = + '\nagent-task \n\nCommands:\n list List agentTask records\n find-first Find first matching agentTask record\n get Get a agentTask by ID\n create Create a new agentTask\n update Update an existing agentTask\n delete Delete a agentTask\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + threadId: true, + entityId: true, + description: true, + source: true, + error: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentTask.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + threadId: true, + entityId: true, + description: true, + source: true, + error: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentTaskSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentTask.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentTask + .findOne({ + id: answers.id as string, + select: { + threadId: true, + entityId: true, + description: true, + source: true, + error: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: true, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as CreateAgentTaskInput['agentTask']; + const client = getClient(); + const result = await client.agentTask + .create({ + data: { + threadId: cleanedData.threadId, + entityId: cleanedData.entityId, + description: cleanedData.description, + source: cleanedData.source, + error: cleanedData.error, + ownerId: cleanedData.ownerId, + status: cleanedData.status, + }, + select: { + threadId: true, + entityId: true, + description: true, + source: true, + error: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'threadId', + message: 'threadId', + required: false, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + }, + { + type: 'text', + name: 'source', + message: 'source', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'error', + message: 'error', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentTaskPatch; + const client = getClient(); + const result = await client.agentTask + .update({ + where: { + id: answers.id as string, + }, + data: { + threadId: cleanedData.threadId, + entityId: cleanedData.entityId, + description: cleanedData.description, + source: cleanedData.source, + error: cleanedData.error, + ownerId: cleanedData.ownerId, + status: cleanedData.status, + }, + select: { + threadId: true, + entityId: true, + description: true, + source: true, + error: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentTask + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/agent-thread.ts b/sdk/constructive-cli/src/public/cli/commands/agent-thread.ts new file mode 100644 index 000000000..0c8712767 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/agent-thread.ts @@ -0,0 +1,395 @@ +/** + * CLI commands for AgentThread + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAgentThreadInput, + AgentThreadPatch, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + title: 'string', + mode: 'string', + model: 'string', + systemPrompt: 'string', + id: 'uuid', + createdAt: 'string', + updatedAt: 'string', + ownerId: 'uuid', + entityId: 'uuid', + status: 'string', +}; +const usage = + '\nagent-thread \n\nCommands:\n list List agentThread records\n find-first Find first matching agentThread record\n get Get a agentThread by ID\n create Create a new agentThread\n update Update an existing agentThread\n delete Delete a agentThread\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + title: true, + mode: true, + model: true, + systemPrompt: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + entityId: true, + status: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentThread.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + title: true, + mode: true, + model: true, + systemPrompt: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + entityId: true, + status: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AgentThreadSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.agentThread.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.agentThread + .findOne({ + id: answers.id as string, + select: { + title: true, + mode: true, + model: true, + systemPrompt: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + entityId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAgentThreadInput['agentThread']; + const client = getClient(); + const result = await client.agentThread + .create({ + data: { + title: cleanedData.title, + mode: cleanedData.mode, + model: cleanedData.model, + systemPrompt: cleanedData.systemPrompt, + ownerId: cleanedData.ownerId, + entityId: cleanedData.entityId, + status: cleanedData.status, + }, + select: { + title: true, + mode: true, + model: true, + systemPrompt: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + entityId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'title', + message: 'title', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'mode', + message: 'mode', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'model', + message: 'model', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'systemPrompt', + message: 'systemPrompt', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ownerId', + message: 'ownerId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'status', + message: 'status', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as AgentThreadPatch; + const client = getClient(); + const result = await client.agentThread + .update({ + where: { + id: answers.id as string, + }, + data: { + title: cleanedData.title, + mode: cleanedData.mode, + model: cleanedData.model, + systemPrompt: cleanedData.systemPrompt, + ownerId: cleanedData.ownerId, + entityId: cleanedData.entityId, + status: cleanedData.status, + }, + select: { + title: true, + mode: true, + model: true, + systemPrompt: true, + id: true, + createdAt: true, + updatedAt: true, + ownerId: true, + entityId: true, + status: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.agentThread + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-invite.ts b/sdk/constructive-cli/src/public/cli/commands/app-invite.ts index 5b59a083a..79bf0a111 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-invite.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-invite.ts @@ -25,6 +25,7 @@ const fieldSchema: FieldSchema = { inviteCount: 'int', multiple: 'boolean', data: 'json', + profileId: 'uuid', expiresAt: 'string', createdAt: 'string', updatedAt: 'string', @@ -89,6 +90,7 @@ async function handleList(argv: Partial>, _prompter: Inq inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -121,6 +123,7 @@ async function handleFindFirst(argv: Partial>, _prompter inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -165,6 +168,7 @@ async function handleGet(argv: Partial>, prompter: Inqui inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -239,6 +243,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -261,6 +272,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, }, select: { @@ -273,6 +285,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -353,6 +366,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -378,6 +398,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, }, select: { @@ -390,6 +411,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts index 0cf146154..315bb1e77 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-limit-default.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', max: 'int', + softMax: 'int', }; const usage = '\napp-limit-default \n\nCommands:\n list List appLimitDefault records\n find-first Find first matching appLimitDefault record\n get Get a appLimitDefault by ID\n create Create a new appLimitDefault\n update Update an existing appLimitDefault\n delete Delete a appLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -74,6 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, name: true, max: true, + softMax: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -97,6 +99,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, name: true, max: true, + softMax: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -132,6 +135,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -160,6 +164,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -172,11 +183,13 @@ async function handleCreate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -211,6 +224,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitDefaultPatch; @@ -223,11 +243,13 @@ async function handleUpdate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts new file mode 100644 index 000000000..c66482251 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/app-limit-event.ts @@ -0,0 +1,236 @@ +/** + * CLI commands for AppLimitEvent + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateAppLimitEventInput, + AppLimitEventPatch, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + name: 'string', + actorId: 'uuid', + entityId: 'uuid', + eventType: 'string', + delta: 'int', + numBefore: 'int', + numAfter: 'int', + maxAtEvent: 'int', + reason: 'string', +}; +const usage = + '\napp-limit-event \n\nCommands:\n list List appLimitEvent records\n find-first Find first matching appLimitEvent record\n create Create a new appLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'create'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: AppLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitEvent.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: AppLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.appLimitEvent.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateAppLimitEventInput['appLimitEvent']; + const client = getClient(); + const result = await client.appLimitEvent + .create({ + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/app-limit.ts b/sdk/constructive-cli/src/public/cli/commands/app-limit.ts index ef31b6337..66293d320 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-limit.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-limit.ts @@ -21,6 +21,9 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', num: 'int', max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', }; const usage = '\napp-limit \n\nCommands:\n list List appLimit records\n find-first Find first matching appLimit record\n get Get a appLimit by ID\n create Create a new appLimit\n update Update an existing appLimit\n delete Delete a appLimit\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -78,6 +81,9 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -103,6 +109,9 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -140,6 +149,9 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); @@ -182,6 +194,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as CreateAppLimitInput['appLimit']; @@ -193,6 +226,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, }, select: { id: true, @@ -200,6 +236,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); @@ -248,6 +287,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as AppLimitPatch; @@ -262,6 +322,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, }, select: { id: true, @@ -269,6 +332,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/app-membership.ts b/sdk/constructive-cli/src/public/cli/commands/app-membership.ts index ae7106f87..d463fd934 100644 --- a/sdk/constructive-cli/src/public/cli/commands/app-membership.ts +++ b/sdk/constructive-cli/src/public/cli/commands/app-membership.ts @@ -26,7 +26,6 @@ const fieldSchema: FieldSchema = { isDisabled: 'boolean', isVerified: 'boolean', isActive: 'boolean', - isExternal: 'boolean', isOwner: 'boolean', isAdmin: 'boolean', permissions: 'string', @@ -95,7 +94,6 @@ async function handleList(argv: Partial>, _prompter: Inq isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -132,7 +130,6 @@ async function handleFindFirst(argv: Partial>, _prompter isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -181,7 +178,6 @@ async function handleGet(argv: Partial>, prompter: Inqui isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -252,13 +248,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isOwner', @@ -317,7 +306,6 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isVerified: cleanedData.isVerified, isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isAdmin: cleanedData.isAdmin, permissions: cleanedData.permissions, @@ -336,7 +324,6 @@ async function handleCreate(argv: Partial>, prompter: In isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, @@ -413,13 +400,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'boolean', - name: 'isExternal', - message: 'isExternal', - required: false, - skipPrompt: true, - }, { type: 'boolean', name: 'isOwner', @@ -478,7 +458,6 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: cleanedData.isDisabled, isVerified: cleanedData.isVerified, isActive: cleanedData.isActive, - isExternal: cleanedData.isExternal, isOwner: cleanedData.isOwner, isAdmin: cleanedData.isAdmin, permissions: cleanedData.permissions, @@ -497,7 +476,6 @@ async function handleUpdate(argv: Partial>, prompter: In isDisabled: true, isVerified: true, isActive: true, - isExternal: true, isOwner: true, isAdmin: true, permissions: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/billing-module.ts b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts new file mode 100644 index 000000000..f3de76a19 --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/billing-module.ts @@ -0,0 +1,515 @@ +/** + * CLI commands for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateBillingModuleInput, + BillingModulePatch, + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + metersTableId: 'uuid', + metersTableName: 'string', + planSubscriptionsTableId: 'uuid', + planSubscriptionsTableName: 'string', + ledgerTableId: 'uuid', + ledgerTableName: 'string', + balancesTableId: 'uuid', + balancesTableName: 'string', + recordUsageFunction: 'string', + prefix: 'string', +}; +const usage = + '\nbilling-module \n\nCommands:\n list List billingModule records\n find-first Find first matching billingModule record\n get Get a billingModule by ID\n create Create a new billingModule\n update Update an existing billingModule\n delete Delete a billingModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + metersTableId: true, + metersTableName: true, + planSubscriptionsTableId: true, + planSubscriptionsTableName: true, + ledgerTableId: true, + ledgerTableName: true, + balancesTableId: true, + balancesTableName: true, + recordUsageFunction: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: BillingModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.billingModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + metersTableId: true, + metersTableName: true, + planSubscriptionsTableId: true, + planSubscriptionsTableName: true, + ledgerTableId: true, + ledgerTableName: true, + balancesTableId: true, + balancesTableName: true, + recordUsageFunction: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: BillingModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.billingModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.billingModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + metersTableId: true, + metersTableName: true, + planSubscriptionsTableId: true, + planSubscriptionsTableName: true, + ledgerTableId: true, + ledgerTableName: true, + balancesTableId: true, + balancesTableName: true, + recordUsageFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metersTableId', + message: 'metersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metersTableName', + message: 'metersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planSubscriptionsTableId', + message: 'planSubscriptionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planSubscriptionsTableName', + message: 'planSubscriptionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ledgerTableId', + message: 'ledgerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ledgerTableName', + message: 'ledgerTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'balancesTableId', + message: 'balancesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'balancesTableName', + message: 'balancesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordUsageFunction', + message: 'recordUsageFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateBillingModuleInput['billingModule']; + const client = getClient(); + const result = await client.billingModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + metersTableId: cleanedData.metersTableId, + metersTableName: cleanedData.metersTableName, + planSubscriptionsTableId: cleanedData.planSubscriptionsTableId, + planSubscriptionsTableName: cleanedData.planSubscriptionsTableName, + ledgerTableId: cleanedData.ledgerTableId, + ledgerTableName: cleanedData.ledgerTableName, + balancesTableId: cleanedData.balancesTableId, + balancesTableName: cleanedData.balancesTableName, + recordUsageFunction: cleanedData.recordUsageFunction, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + metersTableId: true, + metersTableName: true, + planSubscriptionsTableId: true, + planSubscriptionsTableName: true, + ledgerTableId: true, + ledgerTableName: true, + balancesTableId: true, + balancesTableName: true, + recordUsageFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metersTableId', + message: 'metersTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'metersTableName', + message: 'metersTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planSubscriptionsTableId', + message: 'planSubscriptionsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planSubscriptionsTableName', + message: 'planSubscriptionsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ledgerTableId', + message: 'ledgerTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'ledgerTableName', + message: 'ledgerTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'balancesTableId', + message: 'balancesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'balancesTableName', + message: 'balancesTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'recordUsageFunction', + message: 'recordUsageFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as BillingModulePatch; + const client = getClient(); + const result = await client.billingModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + metersTableId: cleanedData.metersTableId, + metersTableName: cleanedData.metersTableName, + planSubscriptionsTableId: cleanedData.planSubscriptionsTableId, + planSubscriptionsTableName: cleanedData.planSubscriptionsTableName, + ledgerTableId: cleanedData.ledgerTableId, + ledgerTableName: cleanedData.ledgerTableName, + balancesTableId: cleanedData.balancesTableId, + balancesTableName: cleanedData.balancesTableName, + recordUsageFunction: cleanedData.recordUsageFunction, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + metersTableId: true, + metersTableName: true, + planSubscriptionsTableId: true, + planSubscriptionsTableName: true, + ledgerTableId: true, + ledgerTableName: true, + balancesTableId: true, + balancesTableName: true, + recordUsageFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.billingModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/confirm-upload.ts b/sdk/constructive-cli/src/public/cli/commands/confirm-upload.ts deleted file mode 100644 index 9619e1935..000000000 --- a/sdk/constructive-cli/src/public/cli/commands/confirm-upload.ts +++ /dev/null @@ -1,53 +0,0 @@ -/** - * CLI command for mutation confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ -import { CLIOptions, Inquirerer } from 'inquirerer'; -import { getClient } from '../executor'; -import { unflattenDotNotation, buildSelectFromPaths } from '../utils'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export default async ( - argv: Partial>, - prompter: Inquirerer, - _options: CLIOptions -) => { - try { - if (argv.help || argv.h) { - console.log( - "confirm-upload - Confirm that a file has been uploaded to S3.\nVerifies the object exists in S3, checks content-type,\nand transitions the file status from 'pending' to 'ready'.\n\nUsage: confirm-upload [OPTIONS]\n" - ); - process.exit(0); - } - const answers = await prompter.prompt(argv, [ - { - type: 'text', - name: 'input', - message: - 'The exclusive input argument for this mutation. An object type, make sure to see documentation for this object\u2019s fields.', - required: true, - }, - ]); - const client = getClient(); - const parsedAnswers = unflattenDotNotation(answers); - const selectFields = buildSelectFromPaths((argv.select as string) ?? 'clientMutationId'); - const result = await client.mutation - .confirmUpload( - parsedAnswers as unknown as ConfirmUploadVariables, - { - select: selectFields, - } as unknown as { - select: ConfirmUploadPayloadSelect; - } - ) - .execute(); - console.log(JSON.stringify(result, null, 2)); - } catch (error) { - console.error('Failed: confirmUpload'); - if (error instanceof Error) { - console.error(error.message); - } - process.exit(1); - } -}; diff --git a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts b/sdk/constructive-cli/src/public/cli/commands/limits-module.ts index 4736c00a2..90be29afd 100644 --- a/sdk/constructive-cli/src/public/cli/commands/limits-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/limits-module.ts @@ -30,6 +30,7 @@ const fieldSchema: FieldSchema = { limitDecrementTrigger: 'string', limitUpdateTrigger: 'string', limitCheckFunction: 'string', + aggregateTableId: 'uuid', prefix: 'string', membershipType: 'int', entityTableId: 'uuid', @@ -100,6 +101,7 @@ async function handleList(argv: Partial>, _prompter: Inq limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, + aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, @@ -138,6 +140,7 @@ async function handleFindFirst(argv: Partial>, _prompter limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, + aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, @@ -188,6 +191,7 @@ async function handleGet(argv: Partial>, prompter: Inqui limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, + aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, @@ -297,6 +301,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'aggregateTableId', + message: 'aggregateTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -347,6 +358,7 @@ async function handleCreate(argv: Partial>, prompter: In limitDecrementTrigger: cleanedData.limitDecrementTrigger, limitUpdateTrigger: cleanedData.limitUpdateTrigger, limitCheckFunction: cleanedData.limitCheckFunction, + aggregateTableId: cleanedData.aggregateTableId, prefix: cleanedData.prefix, membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, @@ -367,6 +379,7 @@ async function handleCreate(argv: Partial>, prompter: In limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, + aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, @@ -482,6 +495,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'aggregateTableId', + message: 'aggregateTableId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'prefix', @@ -532,6 +552,7 @@ async function handleUpdate(argv: Partial>, prompter: In limitDecrementTrigger: cleanedData.limitDecrementTrigger, limitUpdateTrigger: cleanedData.limitUpdateTrigger, limitCheckFunction: cleanedData.limitCheckFunction, + aggregateTableId: cleanedData.aggregateTableId, prefix: cleanedData.prefix, membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, @@ -552,6 +573,7 @@ async function handleUpdate(argv: Partial>, prompter: In limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, + aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts b/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts new file mode 100644 index 000000000..83d245d1b --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/node-type-registry.ts @@ -0,0 +1,366 @@ +/** + * CLI commands for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateNodeTypeRegistryInput, + NodeTypeRegistryPatch, + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + name: 'string', + slug: 'string', + category: 'string', + displayName: 'string', + description: 'string', + parameterSchema: 'json', + tags: 'string', +}; +const usage = + '\nnode-type-registry \n\nCommands:\n list List nodeTypeRegistry records\n find-first Find first matching nodeTypeRegistry record\n get Get a nodeTypeRegistry by ID\n create Create a new nodeTypeRegistry\n update Update an existing nodeTypeRegistry\n delete Delete a nodeTypeRegistry\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + slug: true, + category: true, + displayName: true, + description: true, + parameterSchema: true, + tags: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: NodeTypeRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.nodeTypeRegistry.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + slug: true, + category: true, + displayName: true, + description: true, + parameterSchema: true, + tags: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: NodeTypeRegistrySelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.nodeTypeRegistry.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + ]); + const client = getClient(); + const result = await client.nodeTypeRegistry + .findOne({ + name: answers.name as string, + select: { + name: true, + slug: true, + category: true, + displayName: true, + description: true, + parameterSchema: true, + tags: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: true, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: true, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parameterSchema', + message: 'parameterSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateNodeTypeRegistryInput['nodeTypeRegistry']; + const client = getClient(); + const result = await client.nodeTypeRegistry + .create({ + data: { + name: cleanedData.name, + slug: cleanedData.slug, + category: cleanedData.category, + displayName: cleanedData.displayName, + description: cleanedData.description, + parameterSchema: cleanedData.parameterSchema, + tags: cleanedData.tags, + }, + select: { + name: true, + slug: true, + category: true, + displayName: true, + description: true, + parameterSchema: true, + tags: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + { + type: 'text', + name: 'slug', + message: 'slug', + required: false, + }, + { + type: 'text', + name: 'category', + message: 'category', + required: false, + }, + { + type: 'text', + name: 'displayName', + message: 'displayName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'description', + message: 'description', + required: false, + skipPrompt: true, + }, + { + type: 'json', + name: 'parameterSchema', + message: 'parameterSchema', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'tags', + message: 'tags', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as NodeTypeRegistryPatch; + const client = getClient(); + const result = await client.nodeTypeRegistry + .update({ + where: { + name: answers.name as string, + }, + data: { + slug: cleanedData.slug, + category: cleanedData.category, + displayName: cleanedData.displayName, + description: cleanedData.description, + parameterSchema: cleanedData.parameterSchema, + tags: cleanedData.tags, + }, + select: { + name: true, + slug: true, + category: true, + displayName: true, + description: true, + parameterSchema: true, + tags: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.nodeTypeRegistry + .delete({ + where: { + name: answers.name as string, + }, + select: { + name: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts b/sdk/constructive-cli/src/public/cli/commands/org-invite.ts index f25f613ae..50b0411d4 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-invite.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-invite.ts @@ -26,6 +26,7 @@ const fieldSchema: FieldSchema = { inviteCount: 'int', multiple: 'boolean', data: 'json', + profileId: 'uuid', expiresAt: 'string', createdAt: 'string', updatedAt: 'string', @@ -92,6 +93,7 @@ async function handleList(argv: Partial>, _prompter: Inq inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -126,6 +128,7 @@ async function handleFindFirst(argv: Partial>, _prompter inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -172,6 +175,7 @@ async function handleGet(argv: Partial>, prompter: Inqui inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -254,6 +258,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -283,6 +294,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, entityId: cleanedData.entityId, }, @@ -297,6 +309,7 @@ async function handleCreate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, @@ -385,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileId', + message: 'profileId', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'expiresAt', @@ -417,6 +437,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: cleanedData.inviteCount, multiple: cleanedData.multiple, data: cleanedData.data, + profileId: cleanedData.profileId, expiresAt: cleanedData.expiresAt, entityId: cleanedData.entityId, }, @@ -431,6 +452,7 @@ async function handleUpdate(argv: Partial>, prompter: In inviteCount: true, multiple: true, data: true, + profileId: true, expiresAt: true, createdAt: true, updatedAt: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts new file mode 100644 index 000000000..8b50e450b --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit-aggregate.ts @@ -0,0 +1,383 @@ +/** + * CLI commands for OrgLimitAggregate + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateOrgLimitAggregateInput, + OrgLimitAggregatePatch, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + name: 'string', + entityId: 'uuid', + num: 'int', + max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', +}; +const usage = + '\norg-limit-aggregate \n\nCommands:\n list List orgLimitAggregate records\n find-first Find first matching orgLimitAggregate record\n get Get a orgLimitAggregate by ID\n create Create a new orgLimitAggregate\n update Update an existing orgLimitAggregate\n delete Delete a orgLimitAggregate\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: OrgLimitAggregateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitAggregate.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: OrgLimitAggregateSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitAggregate.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.orgLimitAggregate + .findOne({ + id: answers.id as string, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: true, + }, + { + type: 'text', + name: 'num', + message: 'num', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgLimitAggregateInput['orgLimitAggregate']; + const client = getClient(); + const result = await client.orgLimitAggregate + .create({ + data: { + name: cleanedData.name, + entityId: cleanedData.entityId, + num: cleanedData.num, + max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, + }, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + }, + { + type: 'text', + name: 'num', + message: 'num', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'max', + message: 'max', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitAggregatePatch; + const client = getClient(); + const result = await client.orgLimitAggregate + .update({ + where: { + id: answers.id as string, + }, + data: { + name: cleanedData.name, + entityId: cleanedData.entityId, + num: cleanedData.num, + max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, + }, + select: { + id: true, + name: true, + entityId: true, + num: true, + max: true, + softMax: true, + windowStart: true, + windowDuration: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.orgLimitAggregate + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts index ed3396fe3..9a35893f2 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit-default.ts @@ -19,6 +19,7 @@ const fieldSchema: FieldSchema = { id: 'uuid', name: 'string', max: 'int', + softMax: 'int', }; const usage = '\norg-limit-default \n\nCommands:\n list List orgLimitDefault records\n find-first Find first matching orgLimitDefault record\n get Get a orgLimitDefault by ID\n create Create a new orgLimitDefault\n update Update an existing orgLimitDefault\n delete Delete a orgLimitDefault\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -74,6 +75,7 @@ async function handleList(argv: Partial>, _prompter: Inq id: true, name: true, max: true, + softMax: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs & { @@ -97,6 +99,7 @@ async function handleFindFirst(argv: Partial>, _prompter id: true, name: true, max: true, + softMax: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -132,6 +135,7 @@ async function handleGet(argv: Partial>, prompter: Inqui id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -160,6 +164,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -172,11 +183,13 @@ async function handleCreate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); @@ -211,6 +224,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgLimitDefaultPatch; @@ -223,11 +243,13 @@ async function handleUpdate(argv: Partial>, prompter: In data: { name: cleanedData.name, max: cleanedData.max, + softMax: cleanedData.softMax, }, select: { id: true, name: true, max: true, + softMax: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts new file mode 100644 index 000000000..9867db17b --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit-event.ts @@ -0,0 +1,236 @@ +/** + * CLI commands for OrgLimitEvent + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreateOrgLimitEventInput, + OrgLimitEventPatch, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + name: 'string', + actorId: 'uuid', + entityId: 'uuid', + eventType: 'string', + delta: 'int', + numBefore: 'int', + numAfter: 'int', + maxAtEvent: 'int', + reason: 'string', +}; +const usage = + '\norg-limit-event \n\nCommands:\n list List orgLimitEvent records\n find-first Find first matching orgLimitEvent record\n create Create a new orgLimitEvent\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'create'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: OrgLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitEvent.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: OrgLimitEventSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.orgLimitEvent.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'name', + message: 'name', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'actorId', + message: 'actorId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'entityId', + message: 'entityId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'eventType', + message: 'eventType', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'delta', + message: 'delta', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numBefore', + message: 'numBefore', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'numAfter', + message: 'numAfter', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'maxAtEvent', + message: 'maxAtEvent', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'reason', + message: 'reason', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreateOrgLimitEventInput['orgLimitEvent']; + const client = getClient(); + const result = await client.orgLimitEvent + .create({ + data: { + name: cleanedData.name, + actorId: cleanedData.actorId, + entityId: cleanedData.entityId, + eventType: cleanedData.eventType, + delta: cleanedData.delta, + numBefore: cleanedData.numBefore, + numAfter: cleanedData.numAfter, + maxAtEvent: cleanedData.maxAtEvent, + reason: cleanedData.reason, + }, + select: { + name: true, + actorId: true, + entityId: true, + eventType: true, + delta: true, + numBefore: true, + numAfter: true, + maxAtEvent: true, + reason: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/org-limit.ts b/sdk/constructive-cli/src/public/cli/commands/org-limit.ts index 57ad76e26..dda64514d 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-limit.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-limit.ts @@ -21,6 +21,9 @@ const fieldSchema: FieldSchema = { actorId: 'uuid', num: 'int', max: 'int', + softMax: 'int', + windowStart: 'string', + windowDuration: 'string', entityId: 'uuid', }; const usage = @@ -79,6 +82,9 @@ async function handleList(argv: Partial>, _prompter: Inq actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }; const findManyArgs = parseFindManyArgs< @@ -105,6 +111,9 @@ async function handleFindFirst(argv: Partial>, _prompter actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }; const findFirstArgs = parseFindFirstArgs< @@ -143,6 +152,9 @@ async function handleGet(argv: Partial>, prompter: Inqui actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) @@ -186,6 +198,27 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -203,6 +236,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, entityId: cleanedData.entityId, }, select: { @@ -211,6 +247,9 @@ async function handleCreate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) @@ -260,6 +299,27 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'softMax', + message: 'softMax', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowStart', + message: 'windowStart', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'windowDuration', + message: 'windowDuration', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'entityId', @@ -280,6 +340,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: cleanedData.actorId, num: cleanedData.num, max: cleanedData.max, + softMax: cleanedData.softMax, + windowStart: cleanedData.windowStart, + windowDuration: cleanedData.windowDuration, entityId: cleanedData.entityId, }, select: { @@ -288,6 +351,9 @@ async function handleUpdate(argv: Partial>, prompter: In actorId: true, num: true, max: true, + softMax: true, + windowStart: true, + windowDuration: true, entityId: true, }, }) diff --git a/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts b/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts index 435df570c..1ac517828 100644 --- a/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts +++ b/sdk/constructive-cli/src/public/cli/commands/org-membership-setting.ts @@ -27,7 +27,9 @@ const fieldSchema: FieldSchema = { createChildCascadeAdmins: 'boolean', createChildCascadeMembers: 'boolean', allowExternalMembers: 'boolean', + inviteProfileAssignmentMode: 'string', populateMemberEmail: 'boolean', + limitAllocationMode: 'string', }; const usage = '\norg-membership-setting \n\nCommands:\n list List orgMembershipSetting records\n find-first Find first matching orgMembershipSetting record\n get Get a orgMembershipSetting by ID\n create Create a new orgMembershipSetting\n update Update an existing orgMembershipSetting\n delete Delete a orgMembershipSetting\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; @@ -91,7 +93,9 @@ async function handleList(argv: Partial>, _prompter: Inq createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }; const findManyArgs = parseFindManyArgs< FindManyArgs< @@ -127,7 +131,9 @@ async function handleFindFirst(argv: Partial>, _prompter createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }; const findFirstArgs = parseFindFirstArgs< FindFirstArgs & { @@ -171,7 +177,9 @@ async function handleGet(argv: Partial>, prompter: Inqui createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); @@ -242,6 +250,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'inviteProfileAssignmentMode', + message: 'inviteProfileAssignmentMode', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'populateMemberEmail', @@ -249,6 +264,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'limitAllocationMode', + message: 'limitAllocationMode', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined( @@ -267,7 +289,9 @@ async function handleCreate(argv: Partial>, prompter: In createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, allowExternalMembers: cleanedData.allowExternalMembers, + inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, populateMemberEmail: cleanedData.populateMemberEmail, + limitAllocationMode: cleanedData.limitAllocationMode, }, select: { id: true, @@ -281,7 +305,9 @@ async function handleCreate(argv: Partial>, prompter: In createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); @@ -358,6 +384,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'inviteProfileAssignmentMode', + message: 'inviteProfileAssignmentMode', + required: false, + skipPrompt: true, + }, { type: 'boolean', name: 'populateMemberEmail', @@ -365,6 +398,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'limitAllocationMode', + message: 'limitAllocationMode', + required: false, + skipPrompt: true, + }, ]); const answers = coerceAnswers(rawAnswers, fieldSchema); const cleanedData = stripUndefined(answers, fieldSchema) as OrgMembershipSettingPatch; @@ -383,7 +423,9 @@ async function handleUpdate(argv: Partial>, prompter: In createChildCascadeAdmins: cleanedData.createChildCascadeAdmins, createChildCascadeMembers: cleanedData.createChildCascadeMembers, allowExternalMembers: cleanedData.allowExternalMembers, + inviteProfileAssignmentMode: cleanedData.inviteProfileAssignmentMode, populateMemberEmail: cleanedData.populateMemberEmail, + limitAllocationMode: cleanedData.limitAllocationMode, }, select: { id: true, @@ -397,7 +439,9 @@ async function handleUpdate(argv: Partial>, prompter: In createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, + inviteProfileAssignmentMode: true, populateMemberEmail: true, + limitAllocationMode: true, }, }) .execute(); diff --git a/sdk/constructive-cli/src/public/cli/commands/plans-module.ts b/sdk/constructive-cli/src/public/cli/commands/plans-module.ts new file mode 100644 index 000000000..d30dec6ce --- /dev/null +++ b/sdk/constructive-cli/src/public/cli/commands/plans-module.ts @@ -0,0 +1,449 @@ +/** + * CLI commands for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { CLIOptions, Inquirerer, extractFirst } from 'inquirerer'; +import { getClient } from '../executor'; +import { coerceAnswers, parseFindFirstArgs, parseFindManyArgs, stripUndefined } from '../utils'; +import type { FieldSchema } from '../utils'; +import type { + CreatePlansModuleInput, + PlansModulePatch, + PlansModuleSelect, + PlansModuleFilter, + PlansModuleOrderBy, +} from '../../orm/input-types'; +import type { FindManyArgs, FindFirstArgs } from '../../orm/select-types'; +const fieldSchema: FieldSchema = { + id: 'uuid', + databaseId: 'uuid', + schemaId: 'uuid', + privateSchemaId: 'uuid', + plansTableId: 'uuid', + plansTableName: 'string', + planLimitsTableId: 'uuid', + planLimitsTableName: 'string', + applyPlanFunction: 'string', + applyPlanAggregateFunction: 'string', + prefix: 'string', +}; +const usage = + '\nplans-module \n\nCommands:\n list List plansModule records\n find-first Find first matching plansModule record\n get Get a plansModule by ID\n create Create a new plansModule\n update Update an existing plansModule\n delete Delete a plansModule\n\nList Options:\n --limit Max number of records to return (forward pagination)\n --last Number of records from the end (backward pagination)\n --after Cursor for forward pagination\n --before Cursor for backward pagination\n --offset Number of records to skip\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.name.equalTo foo)\n --condition.. Condition filter (dot-notation)\n --orderBy Comma-separated ordering values (e.g. NAME_ASC,CREATED_AT_DESC)\n\nFind-First Options:\n --select Comma-separated list of fields to return\n --where.. Filter (dot-notation, e.g. --where.status.equalTo active)\n --condition.. Condition filter (dot-notation)\n\n --help, -h Show this help message\n'; +export default async ( + argv: Partial>, + prompter: Inquirerer, + _options: CLIOptions +) => { + if (argv.help || argv.h) { + console.log(usage); + process.exit(0); + } + const { first: subcommand, newArgv } = extractFirst(argv); + if (!subcommand) { + const answer = await prompter.prompt(argv, [ + { + type: 'autocomplete', + name: 'subcommand', + message: 'What do you want to do?', + options: ['list', 'find-first', 'get', 'create', 'update', 'delete'], + }, + ]); + return handleTableSubcommand(answer.subcommand as string, newArgv, prompter); + } + return handleTableSubcommand(subcommand, newArgv, prompter); +}; +async function handleTableSubcommand( + subcommand: string, + argv: Partial>, + prompter: Inquirerer +) { + switch (subcommand) { + case 'list': + return handleList(argv, prompter); + case 'find-first': + return handleFindFirst(argv, prompter); + case 'get': + return handleGet(argv, prompter); + case 'create': + return handleCreate(argv, prompter); + case 'update': + return handleUpdate(argv, prompter); + case 'delete': + return handleDelete(argv, prompter); + default: + console.log(usage); + process.exit(1); + } +} +async function handleList(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + plansTableId: true, + plansTableName: true, + planLimitsTableId: true, + planLimitsTableName: true, + applyPlanFunction: true, + applyPlanAggregateFunction: true, + prefix: true, + }; + const findManyArgs = parseFindManyArgs< + FindManyArgs & { + select: PlansModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.plansModule.findMany(findManyArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to list records.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleFindFirst(argv: Partial>, _prompter: Inquirerer) { + try { + const defaultSelect = { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + plansTableId: true, + plansTableName: true, + planLimitsTableId: true, + planLimitsTableName: true, + applyPlanFunction: true, + applyPlanAggregateFunction: true, + prefix: true, + }; + const findFirstArgs = parseFindFirstArgs< + FindFirstArgs & { + select: PlansModuleSelect; + } + >(argv, defaultSelect); + const client = getClient(); + const result = await client.plansModule.findFirst(findFirstArgs).execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to find record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleGet(argv: Partial>, prompter: Inquirerer) { + try { + const answers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const client = getClient(); + const result = await client.plansModule + .findOne({ + id: answers.id as string, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + plansTableId: true, + plansTableName: true, + planLimitsTableId: true, + planLimitsTableName: true, + applyPlanFunction: true, + applyPlanAggregateFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Record not found.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleCreate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: true, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'plansTableId', + message: 'plansTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'plansTableName', + message: 'plansTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planLimitsTableId', + message: 'planLimitsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planLimitsTableName', + message: 'planLimitsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanFunction', + message: 'applyPlanFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanAggregateFunction', + message: 'applyPlanAggregateFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined( + answers, + fieldSchema + ) as CreatePlansModuleInput['plansModule']; + const client = getClient(); + const result = await client.plansModule + .create({ + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + plansTableId: cleanedData.plansTableId, + plansTableName: cleanedData.plansTableName, + planLimitsTableId: cleanedData.planLimitsTableId, + planLimitsTableName: cleanedData.planLimitsTableName, + applyPlanFunction: cleanedData.applyPlanFunction, + applyPlanAggregateFunction: cleanedData.applyPlanAggregateFunction, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + plansTableId: true, + plansTableName: true, + planLimitsTableId: true, + planLimitsTableName: true, + applyPlanFunction: true, + applyPlanAggregateFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to create record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleUpdate(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + { + type: 'text', + name: 'databaseId', + message: 'databaseId', + required: false, + }, + { + type: 'text', + name: 'schemaId', + message: 'schemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'privateSchemaId', + message: 'privateSchemaId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'plansTableId', + message: 'plansTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'plansTableName', + message: 'plansTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planLimitsTableId', + message: 'planLimitsTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'planLimitsTableName', + message: 'planLimitsTableName', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanFunction', + message: 'applyPlanFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'applyPlanAggregateFunction', + message: 'applyPlanAggregateFunction', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'prefix', + message: 'prefix', + required: false, + skipPrompt: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const cleanedData = stripUndefined(answers, fieldSchema) as PlansModulePatch; + const client = getClient(); + const result = await client.plansModule + .update({ + where: { + id: answers.id as string, + }, + data: { + databaseId: cleanedData.databaseId, + schemaId: cleanedData.schemaId, + privateSchemaId: cleanedData.privateSchemaId, + plansTableId: cleanedData.plansTableId, + plansTableName: cleanedData.plansTableName, + planLimitsTableId: cleanedData.planLimitsTableId, + planLimitsTableName: cleanedData.planLimitsTableName, + applyPlanFunction: cleanedData.applyPlanFunction, + applyPlanAggregateFunction: cleanedData.applyPlanAggregateFunction, + prefix: cleanedData.prefix, + }, + select: { + id: true, + databaseId: true, + schemaId: true, + privateSchemaId: true, + plansTableId: true, + plansTableName: true, + planLimitsTableId: true, + planLimitsTableName: true, + applyPlanFunction: true, + applyPlanAggregateFunction: true, + prefix: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to update record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} +async function handleDelete(argv: Partial>, prompter: Inquirerer) { + try { + const rawAnswers = await prompter.prompt(argv, [ + { + type: 'text', + name: 'id', + message: 'id', + required: true, + }, + ]); + const answers = coerceAnswers(rawAnswers, fieldSchema); + const client = getClient(); + const result = await client.plansModule + .delete({ + where: { + id: answers.id as string, + }, + select: { + id: true, + }, + }) + .execute(); + console.log(JSON.stringify(result, null, 2)); + } catch (error) { + console.error('Failed to delete record.'); + if (error instanceof Error) { + console.error(error.message); + } + process.exit(1); + } +} diff --git a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts b/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts index 2162f42ce..12a490bcf 100644 --- a/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/profiles-module.ts @@ -28,6 +28,8 @@ const fieldSchema: FieldSchema = { profileGrantsTableName: 'string', profileDefinitionGrantsTableId: 'uuid', profileDefinitionGrantsTableName: 'string', + profileTemplatesTableId: 'uuid', + profileTemplatesTableName: 'string', membershipType: 'int', entityTableId: 'uuid', actorTableId: 'uuid', @@ -98,6 +100,8 @@ async function handleList(argv: Partial>, _prompter: Inq profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, + profileTemplatesTableId: true, + profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, @@ -136,6 +140,8 @@ async function handleFindFirst(argv: Partial>, _prompter profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, + profileTemplatesTableId: true, + profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, @@ -186,6 +192,8 @@ async function handleGet(argv: Partial>, prompter: Inqui profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, + profileTemplatesTableId: true, + profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, @@ -283,6 +291,20 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileTemplatesTableId', + message: 'profileTemplatesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'profileTemplatesTableName', + message: 'profileTemplatesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'membershipType', @@ -345,6 +367,8 @@ async function handleCreate(argv: Partial>, prompter: In profileGrantsTableName: cleanedData.profileGrantsTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, + profileTemplatesTableId: cleanedData.profileTemplatesTableId, + profileTemplatesTableName: cleanedData.profileTemplatesTableName, membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, @@ -365,6 +389,8 @@ async function handleCreate(argv: Partial>, prompter: In profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, + profileTemplatesTableId: true, + profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, @@ -468,6 +494,20 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'text', + name: 'profileTemplatesTableId', + message: 'profileTemplatesTableId', + required: false, + skipPrompt: true, + }, + { + type: 'text', + name: 'profileTemplatesTableName', + message: 'profileTemplatesTableName', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'membershipType', @@ -530,6 +570,8 @@ async function handleUpdate(argv: Partial>, prompter: In profileGrantsTableName: cleanedData.profileGrantsTableName, profileDefinitionGrantsTableId: cleanedData.profileDefinitionGrantsTableId, profileDefinitionGrantsTableName: cleanedData.profileDefinitionGrantsTableName, + profileTemplatesTableId: cleanedData.profileTemplatesTableId, + profileTemplatesTableName: cleanedData.profileTemplatesTableName, membershipType: cleanedData.membershipType, entityTableId: cleanedData.entityTableId, actorTableId: cleanedData.actorTableId, @@ -550,6 +592,8 @@ async function handleUpdate(argv: Partial>, prompter: In profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, + profileTemplatesTableId: true, + profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, diff --git a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts index edf9a0d07..0b97baf06 100644 --- a/sdk/constructive-cli/src/public/cli/commands/storage-module.ts +++ b/sdk/constructive-cli/src/public/cli/commands/storage-module.ts @@ -22,10 +22,8 @@ const fieldSchema: FieldSchema = { privateSchemaId: 'uuid', bucketsTableId: 'uuid', filesTableId: 'uuid', - uploadRequestsTableId: 'uuid', bucketsTableName: 'string', filesTableName: 'string', - uploadRequestsTableName: 'string', membershipType: 'int', policies: 'json', skipDefaultPolicyTables: 'string', @@ -34,6 +32,7 @@ const fieldSchema: FieldSchema = { publicUrlPrefix: 'string', provider: 'string', allowedOrigins: 'string', + restrictReads: 'boolean', uploadUrlExpirySeconds: 'int', downloadUrlExpirySeconds: 'int', defaultMaxFileSize: 'int', @@ -97,10 +96,8 @@ async function handleList(argv: Partial>, _prompter: Inq privateSchemaId: true, bucketsTableId: true, filesTableId: true, - uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, - uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, @@ -109,6 +106,7 @@ async function handleList(argv: Partial>, _prompter: Inq publicUrlPrefix: true, provider: true, allowedOrigins: true, + restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, @@ -140,10 +138,8 @@ async function handleFindFirst(argv: Partial>, _prompter privateSchemaId: true, bucketsTableId: true, filesTableId: true, - uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, - uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, @@ -152,6 +148,7 @@ async function handleFindFirst(argv: Partial>, _prompter publicUrlPrefix: true, provider: true, allowedOrigins: true, + restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, @@ -195,10 +192,8 @@ async function handleGet(argv: Partial>, prompter: Inqui privateSchemaId: true, bucketsTableId: true, filesTableId: true, - uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, - uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, @@ -207,6 +202,7 @@ async function handleGet(argv: Partial>, prompter: Inqui publicUrlPrefix: true, provider: true, allowedOrigins: true, + restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, @@ -261,13 +257,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'uploadRequestsTableId', - message: 'uploadRequestsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'bucketsTableName', @@ -282,13 +271,6 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'uploadRequestsTableName', - message: 'uploadRequestsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'membershipType', @@ -345,6 +327,13 @@ async function handleCreate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'restrictReads', + message: 'restrictReads', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'uploadUrlExpirySeconds', @@ -395,10 +384,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, bucketsTableId: cleanedData.bucketsTableId, filesTableId: cleanedData.filesTableId, - uploadRequestsTableId: cleanedData.uploadRequestsTableId, bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, - uploadRequestsTableName: cleanedData.uploadRequestsTableName, membershipType: cleanedData.membershipType, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, @@ -407,6 +394,7 @@ async function handleCreate(argv: Partial>, prompter: In publicUrlPrefix: cleanedData.publicUrlPrefix, provider: cleanedData.provider, allowedOrigins: cleanedData.allowedOrigins, + restrictReads: cleanedData.restrictReads, uploadUrlExpirySeconds: cleanedData.uploadUrlExpirySeconds, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, defaultMaxFileSize: cleanedData.defaultMaxFileSize, @@ -420,10 +408,8 @@ async function handleCreate(argv: Partial>, prompter: In privateSchemaId: true, bucketsTableId: true, filesTableId: true, - uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, - uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, @@ -432,6 +418,7 @@ async function handleCreate(argv: Partial>, prompter: In publicUrlPrefix: true, provider: true, allowedOrigins: true, + restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, @@ -492,13 +479,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'uploadRequestsTableId', - message: 'uploadRequestsTableId', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'bucketsTableName', @@ -513,13 +493,6 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, - { - type: 'text', - name: 'uploadRequestsTableName', - message: 'uploadRequestsTableName', - required: false, - skipPrompt: true, - }, { type: 'text', name: 'membershipType', @@ -576,6 +549,13 @@ async function handleUpdate(argv: Partial>, prompter: In required: false, skipPrompt: true, }, + { + type: 'boolean', + name: 'restrictReads', + message: 'restrictReads', + required: false, + skipPrompt: true, + }, { type: 'text', name: 'uploadUrlExpirySeconds', @@ -626,10 +606,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: cleanedData.privateSchemaId, bucketsTableId: cleanedData.bucketsTableId, filesTableId: cleanedData.filesTableId, - uploadRequestsTableId: cleanedData.uploadRequestsTableId, bucketsTableName: cleanedData.bucketsTableName, filesTableName: cleanedData.filesTableName, - uploadRequestsTableName: cleanedData.uploadRequestsTableName, membershipType: cleanedData.membershipType, policies: cleanedData.policies, skipDefaultPolicyTables: cleanedData.skipDefaultPolicyTables, @@ -638,6 +616,7 @@ async function handleUpdate(argv: Partial>, prompter: In publicUrlPrefix: cleanedData.publicUrlPrefix, provider: cleanedData.provider, allowedOrigins: cleanedData.allowedOrigins, + restrictReads: cleanedData.restrictReads, uploadUrlExpirySeconds: cleanedData.uploadUrlExpirySeconds, downloadUrlExpirySeconds: cleanedData.downloadUrlExpirySeconds, defaultMaxFileSize: cleanedData.defaultMaxFileSize, @@ -651,10 +630,8 @@ async function handleUpdate(argv: Partial>, prompter: In privateSchemaId: true, bucketsTableId: true, filesTableId: true, - uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, - uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, @@ -663,6 +640,7 @@ async function handleUpdate(argv: Partial>, prompter: In publicUrlPrefix: true, provider: true, allowedOrigins: true, + restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, diff --git a/sdk/constructive-cli/src/public/orm/README.md b/sdk/constructive-cli/src/public/orm/README.md index 9d3f602c4..910f95827 100644 --- a/sdk/constructive-cli/src/public/orm/README.md +++ b/sdk/constructive-cli/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | @@ -107,6 +107,7 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | @@ -119,26 +120,34 @@ const db = createClient({ | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -234,45 +243,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.appPermission` -CRUD operations for Object records. +CRUD operations for AppPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.orgPermission` -CRUD operations for AppPermission records. +CRUD operations for OrgPermission records. **Fields:** @@ -287,53 +293,56 @@ CRUD operations for AppPermission records. **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.object` -CRUD operations for OrgPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `databaseId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -2181,6 +2190,7 @@ CRUD operations for LimitsModule records. | `limitDecrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | | `limitCheckFunction` | String | Yes | +| `aggregateTableId` | UUID | Yes | | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | @@ -2190,13 +2200,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2400,6 +2410,8 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2411,13 +2423,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2728,10 +2740,8 @@ CRUD operations for StorageModule records. | `privateSchemaId` | UUID | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | -| `uploadRequestsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | -| `uploadRequestsTableName` | String | Yes | | `membershipType` | Int | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | @@ -2740,6 +2750,7 @@ CRUD operations for StorageModule records. | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | | `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | | `uploadUrlExpirySeconds` | Int | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `defaultMaxFileSize` | BigInt | Yes | @@ -2750,13 +2761,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3424,20 +3435,23 @@ CRUD operations for AppLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | **Operations:** ```typescript // List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); // Update const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3457,21 +3471,24 @@ CRUD operations for OrgLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | **Operations:** ```typescript // List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3480,6 +3497,42 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.appStep` CRUD operations for AppStep records. @@ -3751,6 +3804,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3759,13 +3813,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3826,6 +3880,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3835,13 +3890,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3921,133 +3976,116 @@ const updated = await db.auditLog.update({ where: { id: '' }, data: { even const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.agentThread` -CRUD operations for AppPermissionDefault records. +CRUD operations for AgentThread records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | | `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all agentThread records +const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.agentMessage` -CRUD operations for Ref records. +CRUD operations for AgentMessage records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `authorRole` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.agentTask` -CRUD operations for Store records. +CRUD operations for AgentTask records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all agentTask records +const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -4080,40 +4118,42 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.identityProvider` -CRUD operations for MigrateFile records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.ref` -CRUD operations for AppLimitDefault records. +CRUD operations for Ref records. **Fields:** @@ -4121,30 +4161,32 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.store` -CRUD operations for OrgLimitDefault records. +CRUD operations for Store records. **Fields:** @@ -4152,38 +4194,135 @@ CRUD operations for OrgLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appPermissionDefault` -CRUD operations for DevicesModule records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.devicesModule` + +CRUD operations for DevicesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `userDevicesTableId` | UUID | Yes | | `deviceSettingsTableId` | UUID | Yes | | `userDevicesTable` | String | Yes | @@ -4208,6 +4347,105 @@ const updated = await db.devicesModule.update({ where: { id: '' }, data: { const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.userConnectedAccount` CRUD operations for UserConnectedAccount records. @@ -4244,6 +4482,80 @@ const updated = await db.userConnectedAccount.update({ where: { id: '' }, const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` +### `db.commit` + +CRUD operations for Commit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all commit records +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembershipDefault` CRUD operations for AppMembershipDefault records. @@ -4314,112 +4626,117 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.commit` +### `db.appLimitEvent` -CRUD operations for Commit records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitsModule` +### `db.orgLimitEvent` -CRUD operations for RateLimitsModule records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.plansModule` -CRUD operations for MembershipType records. +CRUD operations for PlansModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | | `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -4502,44 +4819,87 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.billingModule` -CRUD operations for OrgMembershipSetting records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Get one by id +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4584,45 +4944,46 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.astMigration` +### `db.orgMembershipSetting` -CRUD operations for AstMigration records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4643,7 +5004,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -4655,13 +5015,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -4945,97 +5305,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.orgPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.getAllObjectsFromRoot` -getObjectAtPath +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `OrgPermission`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -5699,94 +6059,94 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.signUp` +### `db.mutation.sendVerificationEmail` -signUp +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.forgotPassword` -requestCrossOriginToken +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.signUp` -signIn +signUp - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.requestCrossOriginToken` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.signIn` -sendVerificationEmail +signIn - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); +const result = await db.mutation.signIn({ input: '' }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.provisionTable` -forgotPassword +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` ### `db.mutation.requestUploadUrl` @@ -5807,23 +6167,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-cli/src/public/orm/index.ts b/sdk/constructive-cli/src/public/orm/index.ts index dd41ec491..7488a4078 100644 --- a/sdk/constructive-cli/src/public/orm/index.ts +++ b/sdk/constructive-cli/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; +import { ObjectModel } from './models/object'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; @@ -91,6 +91,7 @@ import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; import { AppLevelModel } from './models/appLevel'; @@ -103,26 +104,34 @@ import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { AuditLogModel } from './models/auditLog'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; -import { RoleTypeModel } from './models/roleType'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { DevicesModuleModel } from './models/devicesModule'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { CommitModel } from './models/commit'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { PlansModuleModel } from './models/plansModule'; import { RlsModuleModel } from './models/rlsModule'; import { SqlActionModel } from './models/sqlAction'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { UserModel } from './models/user'; +import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; +import { UserModel } from './models/user'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -164,9 +173,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), + object: new ObjectModel(client), appLevelRequirement: new AppLevelRequirementModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), @@ -247,6 +256,7 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), appLevel: new AppLevelModel(client), @@ -259,26 +269,34 @@ export function createClient(config: OrmClientConfig) { orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), auditLog: new AuditLogModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), + agentThread: new AgentThreadModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), - roleType: new RoleTypeModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), + membershipType: new MembershipTypeModel(client), migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - devicesModule: new DevicesModuleModel(client), userConnectedAccount: new UserConnectedAccountModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), commit: new CommitModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + plansModule: new PlansModuleModel(client), rlsModule: new RlsModuleModel(client), sqlAction: new SqlActionModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - user: new UserModel(client), + billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), + user: new UserModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-cli/src/public/orm/input-types.ts b/sdk/constructive-cli/src/public/orm/input-types.ts index 6f3337645..923a0d41d 100644 --- a/sdk/constructive-cli/src/public/orm/input-types.ts +++ b/sdk/constructive-cli/src/public/orm/input-types.ts @@ -254,16 +254,6 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -288,6 +278,16 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +export interface Object { + hashUuid?: string | null; + id: string; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; @@ -1101,6 +1101,7 @@ export interface LimitsModule { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -1190,6 +1191,8 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1356,10 +1359,8 @@ export interface StorageModule { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -1368,6 +1369,7 @@ export interface StorageModule { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -1447,7 +1449,7 @@ export interface EntityTypeProvision { hasLevels?: boolean | null; /** * Whether to provision storage_module for this type. Defaults to false. - * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + * When true, creates {prefix}_buckets and {prefix}_files tables * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. * Storage tables get owner_id FK to the entity table, so files are owned by the entity. */ @@ -1480,7 +1482,7 @@ export interface EntityTypeProvision { * - allowed_origins (text[]) per-bucket CORS override * - provisions (jsonb object) optional: customize storage tables * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets", "upload_requests". + * Keyed by table role: "files", "buckets". * Each value uses the same shape as table_provision: * { nodes, fields, grants, use_rls, policies }. Fanned out * to secure_table_provision targeting the corresponding table. @@ -1838,9 +1840,15 @@ export interface AppLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { @@ -1850,10 +1858,34 @@ export interface OrgLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + entityId?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { @@ -1984,6 +2016,8 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2022,6 +2056,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2059,11 +2095,71 @@ export interface AuditLog { /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { +/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ +export interface AgentThread { + /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ + title?: string | null; + /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ + mode?: string | null; + /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ + model?: string | null; + /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ + systemPrompt?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record within the entity */ + ownerId?: string | null; + /** Entity this record belongs to */ + entityId?: string | null; + /** Current status of this record */ + status?: string | null; +} +/** 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. */ +export interface AgentMessage { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ + entityId?: string | null; + /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ + authorRole?: string | null; id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** JSON metadata for extensible key-value storage */ + parts?: Record | null; +} +/** 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. */ +export interface AgentTask { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ + entityId?: string | null; + /** Natural-language description of the work to do. Required. */ + description?: string | null; + /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ + source?: string | null; + /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ + error?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** Current status of this record */ + status?: string | null; +} +export interface RoleType { + id: number; + name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2094,22 +2190,59 @@ export interface Store { hash?: string | null; createdAt?: string | null; } -export interface RoleType { +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; databaseId?: string | null; upload?: ConstructiveInternalTypeUpload | null; } +export interface DevicesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { @@ -2117,16 +2250,9 @@ export interface OrgLimitDefault { /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } export interface UserConnectedAccount { id: string; @@ -2138,30 +2264,6 @@ export interface UserConnectedAccount { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -2192,20 +2294,84 @@ export interface RateLimitsModule { ipRateLimitsTable?: string | null; rateLimitsTable?: string | null; } -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface RlsModule { id: string; @@ -2235,6 +2401,53 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; +} +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ + displayNameTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2254,39 +2467,12 @@ export interface OrgMembershipSetting { createChildCascadeMembers?: boolean | null; /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ populateMemberEmail?: boolean | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2305,8 +2491,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -2357,9 +2541,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} +export interface ObjectRelations {} export interface AppLevelRequirementRelations {} export interface DatabaseRelations { owner?: User | null; @@ -2367,6 +2551,8 @@ export interface DatabaseRelations { hierarchyModule?: HierarchyModule | null; rateLimitsModule?: RateLimitsModule | null; devicesModule?: DevicesModule | null; + plansModule?: PlansModule | null; + billingModule?: BillingModule | null; schemas?: ConnectionResult; tables?: ConnectionResult; checkConstraints?: ConnectionResult; @@ -2697,6 +2883,7 @@ export interface LevelsModuleRelations { } export interface LimitsModuleRelations { actorTable?: Table | null; + aggregateTable?: Table | null; database?: Database | null; defaultTable?: Table | null; entityTable?: Table | null; @@ -2753,6 +2940,7 @@ export interface ProfilesModuleRelations { profileDefinitionGrantsTable?: Table | null; profileGrantsTable?: Table | null; profilePermissionsTable?: Table | null; + profileTemplatesTable?: Table | null; schema?: Schema | null; table?: Table | null; } @@ -2806,7 +2994,6 @@ export interface StorageModuleRelations { filesTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; - uploadRequestsTable?: Table | null; } export interface EntityTypeProvisionRelations { database?: Database | null; @@ -2906,6 +3093,9 @@ export interface OrgLimitRelations { actor?: User | null; entity?: User | null; } +export interface OrgLimitAggregateRelations { + entity?: User | null; +} export interface AppStepRelations { actor?: User | null; } @@ -2947,25 +3137,37 @@ export interface OrgClaimedInviteRelations { export interface AuditLogRelations { actor?: User | null; } -export interface AppPermissionDefaultRelations {} +export interface AgentThreadRelations { + entity?: User | null; + owner?: User | null; + agentMessagesByThreadId?: ConnectionResult; + agentTasksByThreadId?: ConnectionResult; +} +export interface AgentMessageRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} -export interface RoleTypeRelations {} +export interface AppPermissionDefaultRelations {} +export interface MembershipTypeRelations {} export interface MigrateFileRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface NodeTypeRegistryRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface UserConnectedAccountRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} export interface CommitRelations {} export interface RateLimitsModuleRelations { database?: Database | null; @@ -2974,7 +3176,19 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface MembershipTypeRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface PlansModuleRelations { + database?: Database | null; + planLimitsTable?: Table | null; + plansTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; +} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -2984,9 +3198,16 @@ export interface RlsModuleRelations { usersTable?: Table | null; } export interface SqlActionRelations {} -export interface OrgMembershipSettingRelations { - entity?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } +export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3025,6 +3246,7 @@ export interface UserRelations { appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; + orgLimitAggregatesByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; ownedAppLevels?: ConnectionResult; @@ -3042,8 +3264,14 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; auditLogsByActorId?: ConnectionResult; + agentThreadsByEntityId?: ConnectionResult; + ownedAgentThreads?: ConnectionResult; + ownedAgentMessages?: ConnectionResult; + ownedAgentTasks?: ConnectionResult; +} +export interface OrgMembershipSettingRelations { + entity?: User | null; } -export interface AstMigrationRelations {} export interface AppMembershipRelations { actor?: User | null; } @@ -3063,9 +3291,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -3160,6 +3388,7 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; @@ -3172,31 +3401,39 @@ export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteR export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type CommitWithRelations = Commit & CommitRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type CommitWithRelations = Commit & CommitRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ @@ -3212,16 +3449,6 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -3236,6 +3463,16 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppLevelRequirementSelect = { id?: boolean; name?: boolean; @@ -3270,6 +3507,12 @@ export type DatabaseSelect = { devicesModule?: { select: DevicesModuleSelect; }; + plansModule?: { + select: PlansModuleSelect; + }; + billingModule?: { + select: BillingModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4893,6 +5136,7 @@ export type LimitsModuleSelect = { limitDecrementTrigger?: boolean; limitUpdateTrigger?: boolean; limitCheckFunction?: boolean; + aggregateTableId?: boolean; prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; @@ -4900,6 +5144,9 @@ export type LimitsModuleSelect = { actorTable?: { select: TableSelect; }; + aggregateTable?: { + select: TableSelect; + }; database?: { select: DatabaseSelect; }; @@ -5096,6 +5343,8 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -5129,6 +5378,9 @@ export type ProfilesModuleSelect = { profilePermissionsTable?: { select: TableSelect; }; + profileTemplatesTable?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -5345,10 +5597,8 @@ export type StorageModuleSelect = { privateSchemaId?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; - uploadRequestsTableId?: boolean; bucketsTableName?: boolean; filesTableName?: boolean; - uploadRequestsTableName?: boolean; membershipType?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; @@ -5357,6 +5607,7 @@ export type StorageModuleSelect = { publicUrlPrefix?: boolean; provider?: boolean; allowedOrigins?: boolean; + restrictReads?: boolean; uploadUrlExpirySeconds?: boolean; downloadUrlExpirySeconds?: boolean; defaultMaxFileSize?: boolean; @@ -5380,9 +5631,6 @@ export type StorageModuleSelect = { schema?: { select: SchemaSelect; }; - uploadRequestsTable?: { - select: TableSelect; - }; }; export type EntityTypeProvisionSelect = { id?: boolean; @@ -5767,6 +6015,9 @@ export type AppLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; actor?: { select: UserSelect; }; @@ -5777,6 +6028,9 @@ export type OrgLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; actor?: { select: UserSelect; @@ -5785,6 +6039,19 @@ export type OrgLimitSelect = { select: UserSelect; }; }; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppStepSelect = { id?: boolean; actorId?: boolean; @@ -5888,6 +6155,7 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5920,6 +6188,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5965,9 +6234,73 @@ export type AuditLogSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { +export type AgentThreadSelect = { + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; id?: boolean; - permissions?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + entityId?: boolean; + status?: boolean; + entity?: { + select: UserSelect; + }; + owner?: { + select: UserSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentTasksByThreadId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + threadId?: boolean; + entityId?: boolean; + authorRole?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + threadId?: boolean; + entityId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type RoleTypeSelect = { + id?: boolean; + name?: boolean; }; export type IdentityProviderSelect = { slug?: boolean; @@ -5990,25 +6323,23 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; -export type RoleTypeSelect = { +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; +export type MembershipTypeSelect = { id?: boolean; name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; databaseId?: boolean; upload?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -6030,6 +6361,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -6040,27 +6392,6 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -6098,13 +6429,76 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type MembershipTypeSelect = { +export type AppMembershipDefaultSelect = { id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; +export type AppLimitEventSelect = { name?: boolean; - description?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + database?: { + select: DatabaseSelect; + }; + planLimitsTable?: { + select: TableSelect; + }; + plansTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; }; export type RlsModuleSelect = { id?: boolean; @@ -6152,23 +6546,58 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; -export type OrgMembershipSettingSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - entity?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; }; -}; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -6391,6 +6820,12 @@ export type UserSelect = { filter?: OrgLimitFilter; orderBy?: OrgLimitOrderBy[]; }; + orgLimitAggregatesByEntityId?: { + select: OrgLimitAggregateSelect; + first?: number; + filter?: OrgLimitAggregateFilter; + orderBy?: OrgLimitAggregateOrderBy[]; + }; appStepsByActorId?: { select: AppStepSelect; first?: number; @@ -6493,21 +6928,49 @@ export type UserSelect = { filter?: AuditLogFilter; orderBy?: AuditLogOrderBy[]; }; + agentThreadsByEntityId?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentThreads?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + ownedAgentTasks?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; }; -export type AstMigrationSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; }; export type AppMembershipSelect = { id?: boolean; @@ -6520,7 +6983,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -6599,28 +7061,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6657,6 +7097,28 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppLevelRequirementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6968,6 +7430,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8796,6 +9266,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -8812,6 +9284,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -9080,6 +9556,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -9118,6 +9598,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -9444,14 +9926,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -9468,6 +9946,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -9498,8 +9978,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ @@ -10135,9 +10613,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -10155,9 +10639,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -10171,6 +10661,32 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10376,6 +10892,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10436,6 +10954,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10517,17 +11037,117 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } -export interface AppPermissionDefaultFilter { +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; + and?: AgentThreadFilter[]; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; + or?: AgentThreadFilter[]; /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; } export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ @@ -10583,17 +11203,37 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } -export interface RoleTypeFilter { +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: RoleTypeFilter; + not?: MembershipTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -10609,34 +11249,6 @@ export interface MigrateFileFilter { /** Negates the expression. */ not?: MigrateFileFilter; } -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10667,7 +11279,61 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } -export interface UserConnectedAccountFilter { +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; +} +export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ownerId` field. */ @@ -10691,52 +11357,6 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10799,25 +11419,143 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface MembershipTypeFilter { +export interface AppMembershipDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} +export interface AppLimitEventFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ @@ -10893,39 +11631,89 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface OrgMembershipSettingFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -11096,6 +11884,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -11164,6 +11956,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -11176,39 +11984,43 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface AstMigrationFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ @@ -11231,8 +12043,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -11343,24 +12153,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -11389,6 +12181,24 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -12623,6 +13433,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_UPDATE_TRIGGER_DESC' | 'LIMIT_CHECK_FUNCTION_ASC' | 'LIMIT_CHECK_FUNCTION_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'MEMBERSHIP_TYPE_ASC' @@ -12801,6 +13613,10 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_TEMPLATES_TABLE_ID_ASC' + | 'PROFILE_TEMPLATES_TABLE_ID_DESC' + | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' + | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -13041,14 +13857,10 @@ export type StorageModuleOrderBy = | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' - | 'UPLOAD_REQUESTS_TABLE_ID_ASC' - | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' - | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' - | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'POLICIES_ASC' @@ -13065,6 +13877,8 @@ export type StorageModuleOrderBy = | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' @@ -13500,7 +14314,13 @@ export type AppLimitOrderBy = | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' - | 'MAX_DESC'; + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13515,8 +14335,34 @@ export type OrgLimitOrderBy = | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13683,6 +14529,8 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13729,6 +14577,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13775,14 +14625,82 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type AppPermissionDefaultOrderBy = +export type AgentThreadOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -13823,14 +14741,30 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type RoleTypeOrderBy = +export type AppPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC'; + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13839,17 +14773,43 @@ export type MigrateFileOrderBy = | 'DATABASE_ID_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC'; -export type AppLimitDefaultOrderBy = +export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13858,25 +14818,21 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC'; -export type DevicesModuleOrderBy = + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13895,65 +14851,29 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type RateLimitsModuleOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type RateLimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13975,22 +14895,108 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type PlansModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'PREFIX_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14045,34 +15051,66 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; -export type OrgMembershipSettingOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14099,34 +15137,38 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type AstMigrationOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14151,8 +15193,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -14270,32 +15310,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -14344,6 +15358,32 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLevelRequirementInput { clientMutationId?: string; appLevelRequirement: { @@ -15962,6 +17002,7 @@ export interface CreateLimitsModuleInput { limitDecrementTrigger?: string; limitUpdateTrigger?: string; limitCheckFunction?: string; + aggregateTableId?: string; prefix?: string; membershipType: number; entityTableId?: string; @@ -15982,6 +17023,7 @@ export interface LimitsModulePatch { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -16192,6 +17234,8 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -16212,6 +17256,8 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -16506,10 +17552,8 @@ export interface CreateStorageModuleInput { privateSchemaId?: string; bucketsTableId?: string; filesTableId?: string; - uploadRequestsTableId?: string; bucketsTableName?: string; filesTableName?: string; - uploadRequestsTableName?: string; membershipType?: number; policies?: Record; skipDefaultPolicyTables?: string[]; @@ -16518,6 +17562,7 @@ export interface CreateStorageModuleInput { publicUrlPrefix?: string; provider?: string; allowedOrigins?: string[]; + restrictReads?: boolean; uploadUrlExpirySeconds?: number; downloadUrlExpirySeconds?: number; defaultMaxFileSize?: string; @@ -16531,10 +17576,8 @@ export interface StorageModulePatch { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -16543,6 +17586,7 @@ export interface StorageModulePatch { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -17104,15 +18148,21 @@ export interface CreateAppLimitInput { appLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; }; } export interface AppLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; } export interface UpdateAppLimitInput { clientMutationId?: string; @@ -17128,16 +18178,22 @@ export interface CreateOrgLimitInput { orgLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; }; } export interface OrgLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; } export interface UpdateOrgLimitInput { @@ -17149,6 +18205,36 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} export interface CreateAppStepInput { clientMutationId?: string; appStep: { @@ -17347,6 +18433,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -17359,6 +18446,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -17404,6 +18492,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -17418,6 +18507,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -17482,23 +18572,109 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { +export interface CreateAgentThreadInput { clientMutationId?: string; - appPermissionDefault: { - permissions?: string; + agentThread: { + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + ownerId?: string; + entityId: string; + status?: string; }; } -export interface AppPermissionDefaultPatch { - permissions?: string | null; +export interface AgentThreadPatch { + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + ownerId?: string | null; + entityId?: string | null; + status?: string | null; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateAgentThreadInput { clientMutationId?: string; id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; + agentThreadPatch: AgentThreadPatch; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + threadId: string; + entityId: string; + authorRole: string; + ownerId?: string; + parts?: Record; + }; +} +export interface AgentMessagePatch { + threadId?: string | null; + entityId?: string | null; + authorRole?: string | null; + ownerId?: string | null; + parts?: Record | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + threadId: string; + entityId: string; + description: string; + source?: string; + error?: string; + ownerId?: string; + status?: string; + }; +} +export interface AgentTaskPatch { + threadId?: string | null; + entityId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + ownerId?: string | null; + status?: string | null; +} +export interface UpdateAgentTaskInput { clientMutationId?: string; id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: { + name: string; + }; +} +export interface RoleTypePatch { + name?: string | null; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; } export interface CreateIdentityProviderInput { clientMutationId?: string; @@ -17572,21 +18748,47 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - roleType: { + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + membershipType: { name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface RoleTypePatch { +export interface MembershipTypePatch { name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateRoleTypeInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; id: number; - roleTypePatch: RoleTypePatch; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteRoleTypeInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } @@ -17610,16 +18812,76 @@ export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface AppLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateAppLimitDefaultInput { clientMutationId?: string; @@ -17634,12 +18896,14 @@ export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface OrgLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; @@ -17650,34 +18914,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -17704,54 +18940,6 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -17816,31 +19004,157 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MembershipTypePatch { +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { name?: string | null; - description?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + prefix?: string; + }; +} +export interface PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; } -export interface UpdateMembershipTypeInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + plansModulePatch: PlansModulePatch; } -export interface DeleteMembershipTypeInput { +export interface DeletePlansModuleInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateRlsModuleInput { clientMutationId?: string; @@ -17916,62 +19230,45 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateUserInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - userPatch: UserPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteUserInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -18013,6 +19310,69 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -18023,7 +19383,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -18040,7 +19399,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -18237,6 +19595,10 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentTasksByThreadId: 'AgentTask', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -18271,6 +19633,7 @@ export const connectionFieldsMap = { appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', + orgLimitAggregatesByEntityId: 'OrgLimitAggregate', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', ownedAppLevels: 'AppLevel', @@ -18288,6 +19651,10 @@ export const connectionFieldsMap = { orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', auditLogsByActorId: 'AuditLog', + agentThreadsByEntityId: 'AgentThread', + ownedAgentThreads: 'AgentThread', + ownedAgentMessages: 'AgentMessage', + ownedAgentTasks: 'AgentTask', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -18548,6 +19915,14 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -18588,14 +19963,6 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} export interface RequestUploadUrlInput { /** Bucket key (e.g., "public", "private") */ bucketKey: string; @@ -18615,10 +19982,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -20072,6 +21435,24 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -20323,6 +21704,15 @@ export interface UserToManyOrgLimitFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitFilter; } +/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgLimitAggregateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitAggregateFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitAggregateFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitAggregateFilter; +} /** A filter to be used against many `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAppStepFilter { /** Filters to entities where at least one related entity matches. */ @@ -20431,12 +21821,39 @@ export interface UserToManyAuditLogFilter { /** Filters to entities where no related entity matches. */ none?: AuditLogFilter; } -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentThreadFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; } /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { @@ -22147,6 +23564,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -22163,6 +23582,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -22436,6 +23859,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -22474,6 +23901,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -22847,14 +24276,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -22871,6 +24296,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -22901,8 +24328,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } /** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ export interface EntityTypeProvisionFilter { @@ -23309,6 +24734,68 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -23597,6 +25084,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -23989,9 +25484,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -24010,9 +25511,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -24026,6 +25533,33 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} /** A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface AppStepFilter { /** Filter by the object’s `id` field. */ @@ -24239,6 +25773,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24301,6 +25837,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24384,6 +25922,47 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24894,6 +26473,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -24962,6 +26545,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -25150,6 +26749,98 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlansModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PlansModuleFilter[]; + /** Negates the expression. */ + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25264,8 +26955,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -25336,8 +27025,12 @@ export interface OrgMembershipSettingFilter { createChildCascadeMembers?: BooleanFilter; /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; /** Filter by the object’s `populateMemberEmail` field. */ populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ @@ -25347,27 +27040,8 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `Object` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; /** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -25405,6 +27079,25 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { nodes: AppLevelRequirement[]; @@ -25750,6 +27443,20 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendVerificationEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -25788,20 +27495,6 @@ export type ProvisionTablePayloadSelect = { select: ProvisionTableRecordSelect; }; }; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface RequestUploadUrlPayload { /** Presigned PUT URL (null if file was deduplicated) */ uploadUrl?: string | null; @@ -25813,8 +27506,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -25822,20 +27513,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -25859,51 +27536,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -25994,6 +27626,51 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; /** The `AppLevelRequirement` that was created by this mutation. */ @@ -29594,6 +31271,51 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; export interface CreateAppStepPayload { clientMutationId?: string | null; /** The `AppStep` that was created by this mutation. */ @@ -30134,49 +31856,184 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { +export interface CreateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type CreateAppPermissionDefaultPayloadSelect = { +export type CreateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type UpdateAppPermissionDefaultPayloadSelect = { +export type UpdateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type DeleteAppPermissionDefaultPayloadSelect = { +export type DeleteAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -30280,74 +32137,209 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateMigrateFilePayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateMigrateFilePayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitDefaultEdge?: { + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type DeleteMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { select: AppLimitDefaultEdgeSelect; }; }; @@ -30426,60 +32418,105 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserConnectedAccountPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; export interface CreateAppMembershipDefaultPayload { @@ -30572,139 +32609,71 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateCommitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was created by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; } -export type CreateCommitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; }; -export interface UpdateCommitPayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was updated by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; } -export type UpdateCommitPayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; }; -export interface DeleteCommitPayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `Commit` that was deleted by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteCommitPayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; + plansModule?: { + select: PlansModuleSelect; }; - commitEdge?: { - select: CommitEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + plansModule?: { + select: PlansModuleSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateRlsModulePayload { @@ -30763,49 +32732,60 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateUserPayload { @@ -30853,15 +32833,49 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; export interface CreateAppMembershipPayload { @@ -30954,16 +32968,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; } -export type ObjectEdgeSelect = { +export type AppPermissionEdgeSelect = { cursor?: boolean; node?: { - select: ObjectSelect; + select: AppPermissionSelect; }; }; /** Information about pagination in a connection. */ @@ -30983,18 +32997,6 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -31007,6 +33009,18 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { cursor?: string | null; @@ -32087,6 +34101,18 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `AppStep` edge in the connection. */ export interface AppStepEdge { cursor?: string | null; @@ -32231,40 +34257,40 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AgentThreadEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AgentThreadSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; } -export type RefEdgeSelect = { +export type AgentMessageEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: AgentMessageSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; } -export type StoreEdgeSelect = { +export type AgentTaskEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AgentTaskSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -32279,28 +34305,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AppLimitDefaultEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: RefSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type OrgLimitDefaultEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: StoreSelect; + }; +}; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +export type MembershipTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypeSelect; }; }; /** A `DevicesModule` edge in the connection. */ @@ -32315,28 +34365,40 @@ export type DevicesModuleEdgeSelect = { select: DevicesModuleSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppMembershipDefaultEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: NodeTypeRegistrySelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; }; }; /** A `Commit` edge in the connection. */ @@ -32363,16 +34425,40 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; }; }; /** A `RlsModule` edge in the connection. */ @@ -32387,16 +34473,16 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type OrgMembershipSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: BillingModuleSelect; }; }; /** A `User` edge in the connection. */ @@ -32411,6 +34497,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-cli/src/public/orm/models/agentMessage.ts b/sdk/constructive-cli/src/public/orm/models/agentMessage.ts new file mode 100644 index 000000000..dd3434345 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/agentMessage.ts @@ -0,0 +1,237 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + }, + 'AgentMessageFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/agentTask.ts b/sdk/constructive-cli/src/public/orm/models/agentTask.ts new file mode 100644 index 000000000..7f837b699 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/agentTask.ts @@ -0,0 +1,237 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + }, + 'AgentTaskFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/agentThread.ts b/sdk/constructive-cli/src/public/orm/models/agentThread.ts new file mode 100644 index 000000000..beb795fd1 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/agentThread.ts @@ -0,0 +1,237 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + }, + 'AgentThreadFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/billingModule.ts b/sdk/constructive-cli/src/public/orm/models/billingModule.ts new file mode 100644 index 000000000..73e7928ed --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/billingModule.ts @@ -0,0 +1,237 @@ +/** + * BillingModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BillingModule, + BillingModuleWithRelations, + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy, + CreateBillingModuleInput, + UpdateBillingModuleInput, + BillingModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BillingModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + }, + 'BillingModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModule', + document, + variables, + transform: (data: { + billingModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + billingModule: data.billingModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BillingModule', + 'createBillingModule', + 'billingModule', + args.select, + args.data, + 'CreateBillingModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'createBillingModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BillingModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BillingModule', + 'updateBillingModule', + 'billingModule', + args.select, + args.where.id, + args.data, + 'UpdateBillingModuleInput', + 'id', + 'billingModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'updateBillingModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BillingModule', + 'deleteBillingModule', + 'billingModule', + { + id: args.where.id, + }, + 'DeleteBillingModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'deleteBillingModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/index.ts b/sdk/constructive-cli/src/public/orm/models/index.ts index 960017329..aa7f94162 100644 --- a/sdk/constructive-cli/src/public/orm/models/index.ts +++ b/sdk/constructive-cli/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; +export { ObjectModel } from './object'; export { AppLevelRequirementModel } from './appLevelRequirement'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; @@ -89,6 +89,7 @@ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; export { AppLevelModel } from './appLevel'; @@ -101,25 +102,33 @@ export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { AuditLogModel } from './auditLog'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { AgentThreadModel } from './agentThread'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; -export { RoleTypeModel } from './roleType'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { MembershipTypeModel } from './membershipType'; export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { DevicesModuleModel } from './devicesModule'; export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { CommitModel } from './commit'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { PlansModuleModel } from './plansModule'; export { RlsModuleModel } from './rlsModule'; export { SqlActionModel } from './sqlAction'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { UserModel } from './user'; +export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; +export { UserModel } from './user'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts new file mode 100644 index 000000000..6e640c1c6 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/nodeTypeRegistry.ts @@ -0,0 +1,237 @@ +/** + * NodeTypeRegistry model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NodeTypeRegistry, + NodeTypeRegistryWithRelations, + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, + CreateNodeTypeRegistryInput, + UpdateNodeTypeRegistryInput, + NodeTypeRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NodeTypeRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + }, + 'NodeTypeRegistryFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findOne( + args: { + name: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: { + name: { + equalTo: args.name, + }, + }, + first: 1, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistry', + document, + variables, + transform: (data: { + nodeTypeRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NodeTypeRegistry', + 'createNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.data, + 'CreateNodeTypeRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'createNodeTypeRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + name: string; + }, + NodeTypeRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NodeTypeRegistry', + 'updateNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.where.name, + args.data, + 'UpdateNodeTypeRegistryInput', + 'name', + 'nodeTypeRegistryPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'updateNodeTypeRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + name: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NodeTypeRegistry', + 'deleteNodeTypeRegistry', + 'nodeTypeRegistry', + { + name: args.where.name, + }, + 'DeleteNodeTypeRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'deleteNodeTypeRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/models/plansModule.ts b/sdk/constructive-cli/src/public/orm/models/plansModule.ts new file mode 100644 index 000000000..e310fa581 --- /dev/null +++ b/sdk/constructive-cli/src/public/orm/models/plansModule.ts @@ -0,0 +1,237 @@ +/** + * PlansModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlansModule, + PlansModuleWithRelations, + PlansModuleSelect, + PlansModuleFilter, + PlansModuleOrderBy, + CreatePlansModuleInput, + UpdatePlansModuleInput, + PlansModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlansModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + }, + 'PlansModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModule', + document, + variables, + transform: (data: { + plansModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + plansModule: data.plansModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlansModule', + 'createPlansModule', + 'plansModule', + args.select, + args.data, + 'CreatePlansModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'createPlansModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlansModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlansModule', + 'updatePlansModule', + 'plansModule', + args.select, + args.where.id, + args.data, + 'UpdatePlansModuleInput', + 'id', + 'plansModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'updatePlansModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlansModule', + 'deletePlansModule', + 'plansModule', + { + id: args.where.id, + }, + 'DeletePlansModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'deletePlansModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-cli/src/public/orm/mutation/index.ts b/sdk/constructive-cli/src/public/orm/mutation/index.ts index ea6ba6a40..3ca6964aa 100644 --- a/sdk/constructive-cli/src/public/orm/mutation/index.ts +++ b/sdk/constructive-cli/src/public/orm/mutation/index.ts @@ -48,14 +48,13 @@ import type { CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, + SendVerificationEmailInput, + ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -98,14 +97,13 @@ import type { CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -148,14 +146,13 @@ import type { CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -329,6 +326,12 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface SignUpVariables { input: SignUpInput; } @@ -345,12 +348,6 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} /** * Variables for requestUploadUrl * Request a presigned URL for uploading a file directly to S3. @@ -361,15 +358,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1571,6 +1559,64 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + sendVerificationEmail: ( + args: SendVerificationEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendVerificationEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', + ...buildCustomDocument( + 'mutation', + 'SendVerificationEmail', + 'sendVerificationEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendVerificationEmailInput!', + }, + ], + connectionFieldsMap, + 'SendVerificationEmailPayload' + ), + }), + forgotPassword: ( + args: ForgotPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + forgotPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', + ...buildCustomDocument( + 'mutation', + 'ForgotPassword', + 'forgotPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ForgotPasswordInput!', + }, + ], + connectionFieldsMap, + 'ForgotPasswordPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -1687,64 +1733,6 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionTablePayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), requestUploadUrl: ( args: RequestUploadUrlVariables, options: { @@ -1774,35 +1762,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-cli/src/public/orm/query/index.ts b/sdk/constructive-cli/src/public/orm/query/index.ts index d79ab541d..ffbd13b23 100644 --- a/sdk/constructive-cli/src/public/orm/query/index.ts +++ b/sdk/constructive-cli/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, - ObjectConnection, AppPermissionConnection, OrgPermissionConnection, + ObjectConnection, AppLevelRequirementConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -73,9 +73,8 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -86,10 +85,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -100,14 +97,9 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -118,8 +110,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -130,6 +124,12 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} export interface StepsRequiredVariables { level?: string; roleId?: string; @@ -598,33 +598,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -643,37 +639,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -692,70 +680,82 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', + options?.select, args, [ { - name: 'dbId', + name: 'databaseId', type: 'UUID', }, { - name: 'storeId', + name: 'id', type: 'UUID', }, { - name: 'path', - type: '[String]', + name: 'first', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -774,45 +774,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'dbId', + type: 'UUID', }, { - name: 'first', - type: 'Int', + name: 'storeId', + type: 'UUID', }, { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), stepsRequired: ( diff --git a/sdk/constructive-react/src/admin/README.md b/sdk/constructive-react/src/admin/README.md index 14b96362f..f0c229f10 100644 --- a/sdk/constructive-react/src/admin/README.md +++ b/sdk/constructive-react/src/admin/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 34 +- **Tables:** 37 - **Custom queries:** 11 -- **Custom mutations:** 5 +- **Custom mutations:** 4 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/admin/hooks/README.md b/sdk/constructive-react/src/admin/hooks/README.md index 40908fc12..17bdeb96f 100644 --- a/sdk/constructive-react/src/admin/hooks/README.md +++ b/sdk/constructive-react/src/admin/hooks/README.md @@ -76,31 +76,6 @@ function App() { | `useCreateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useUpdateAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useDeleteAppOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | -| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | -| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | -| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | -| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | -| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | -| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | -| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useAppAchievementsQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | | `useAppAchievementQuery` | Query | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | | `useCreateAppAchievementMutation` | Mutation | Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually | @@ -111,26 +86,41 @@ function App() { | `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | | `useUpdateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | | `useDeleteAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | -| `useAppClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useAppClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | -| `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | -| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | -| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | -| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | -| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgAdminGrantsQuery` | Query | Records of admin role grants and revocations between members | +| `useOrgAdminGrantQuery` | Query | Records of admin role grants and revocations between members | +| `useCreateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useUpdateOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useDeleteOrgAdminGrantMutation` | Mutation | Records of admin role grants and revocations between members | +| `useOrgOwnerGrantsQuery` | Query | Records of ownership transfers and grants between members | +| `useOrgOwnerGrantQuery` | Query | Records of ownership transfers and grants between members | +| `useCreateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useUpdateOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | +| `useDeleteOrgOwnerGrantMutation` | Mutation | Records of ownership transfers and grants between members | | `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | +| `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | +| `useOrgChartEdgeGrantsQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useOrgChartEdgeGrantQuery` | Query | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useCreateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useUpdateOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useDeleteOrgChartEdgeGrantMutation` | Mutation | Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table | +| `useAppClaimedInvitesQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useAppClaimedInviteQuery` | Query | Records of successfully claimed invitations, linking senders to receivers | +| `useCreateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useUpdateAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useDeleteAppClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useAppGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useAppGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateAppGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | @@ -151,6 +141,10 @@ function App() { | `useCreateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useUpdateOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | | `useDeleteOrgClaimedInviteMutation` | Mutation | Records of successfully claimed invitations, linking senders to receivers | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | | `useOrgGrantsQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useOrgGrantQuery` | Query | Records of individual permission grants and revocations for members via bitmask | | `useCreateOrgGrantMutation` | Mutation | Records of individual permission grants and revocations for members via bitmask | @@ -161,16 +155,26 @@ function App() { | `useCreateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `useUpdateOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | | `useDeleteOrgChartEdgeMutation` | Mutation | Organizational chart edges defining parent-child reporting relationships between members within an entity | +| `useAppLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useAppLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteAppLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useOrgMemberProfilesQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useOrgMemberProfileQuery` | Query | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useCreateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useUpdateOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | | `useDeleteOrgMemberProfileMutation` | Mutation | Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) | -| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | -| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | -| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useOrgLimitsQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitQuery` | Query | Tracks per-actor usage counts against configurable maximum limits | +| `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useAppLevelsQuery` | Query | Defines available levels that users can achieve by completing requirements | | `useAppLevelQuery` | Query | Defines available levels that users can achieve by completing requirements | | `useCreateAppLevelMutation` | Mutation | Defines available levels that users can achieve by completing requirements | @@ -181,6 +185,11 @@ function App() { | `useCreateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useUpdateAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useDeleteAppInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | +| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | +| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | +| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useOrgInvitesQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useOrgInviteQuery` | Query | Invitation records sent to prospective members via email, with token-based redemption and expiration | | `useCreateOrgInviteMutation` | Mutation | Invitation records sent to prospective members via email, with token-based redemption and expiration | @@ -213,9 +222,6 @@ function App() { Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `useConfirmUploadMutation` | Mutation | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -421,46 +427,46 @@ const { mutate: create } = useCreateAppOwnerGrantMutation({ create({ isGrant: '', actorId: '', grantorId: '' }); ``` -### AppLimitDefault +### AppAchievement ```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all appAchievements +const { data, isLoading } = useAppAchievementsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ +// Get one appAchievement +const { data: item } = useAppAchievementQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ +// Create a appAchievement +const { mutate: create } = useCreateAppAchievementMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ actorId: '', name: '', count: '' }); ``` -### OrgLimitDefault +### AppStep ```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all appSteps +const { data, isLoading } = useAppStepsQuery({ + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ +// Get one appStep +const { data: item } = useAppStepQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, }); -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ +// Create a appStep +const { mutate: create } = useCreateAppStepMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ actorId: '', name: '', count: '' }); ``` ### OrgAdminGrant @@ -505,88 +511,67 @@ const { mutate: create } = useCreateOrgOwnerGrantMutation({ create({ isGrant: '', actorId: '', entityId: '', grantorId: '' }); ``` -### AppLimit - -```typescript -// List all appLimits -const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, -}); - -// Get one appLimit -const { data: item } = useAppLimitQuery({ - id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, -}); - -// Create a appLimit -const { mutate: create } = useCreateAppLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', num: '', max: '' }); -``` - -### AppAchievement +### MembershipType ```typescript -// List all appAchievements -const { data, isLoading } = useAppAchievementsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Get one appAchievement -const { data: item } = useAppAchievementQuery({ - id: '', - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ + id: '', + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Create a appAchievement -const { mutate: create } = useCreateAppAchievementMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` -### AppStep +### AppLimitDefault ```typescript -// List all appSteps -const { data, isLoading } = useAppStepsQuery({ - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Get one appStep -const { data: item } = useAppStepQuery({ +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ id: '', - selection: { fields: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Create a appStep -const { mutate: create } = useCreateAppStepMutation({ +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ actorId: '', name: '', count: '' }); +create({ name: '', max: '', softMax: '' }); ``` -### AppClaimedInvite +### OrgLimitDefault ```typescript -// List all appClaimedInvites -const { data, isLoading } = useAppClaimedInvitesQuery({ - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Get one appClaimedInvite -const { data: item } = useAppClaimedInviteQuery({ +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ id: '', - selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Create a appClaimedInvite -const { mutate: create } = useCreateAppClaimedInviteMutation({ +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ data: '', senderId: '', receiverId: '' }); +create({ name: '', max: '', softMax: '' }); ``` ### OrgChartEdgeGrant @@ -610,46 +595,25 @@ const { mutate: create } = useCreateOrgChartEdgeGrantMutation({ create({ entityId: '', childId: '', parentId: '', grantorId: '', isGrant: '', positionTitle: '', positionLevel: '' }); ``` -### OrgLimit +### AppClaimedInvite ```typescript -// List all orgLimits -const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, +// List all appClaimedInvites +const { data, isLoading } = useAppClaimedInvitesQuery({ + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, }); -// Get one orgLimit -const { data: item } = useOrgLimitQuery({ +// Get one appClaimedInvite +const { data: item } = useAppClaimedInviteQuery({ id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, -}); - -// Create a orgLimit -const { mutate: create } = useCreateOrgLimitMutation({ - selection: { fields: { id: true } }, -}); -create({ name: '', actorId: '', num: '', max: '', entityId: '' }); -``` - -### MembershipType - -```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, -}); - -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, + selection: { fields: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a appClaimedInvite +const { mutate: create } = useCreateAppClaimedInviteMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ data: '', senderId: '', receiverId: '' }); ``` ### AppGrant @@ -736,6 +700,36 @@ const { mutate: create } = useCreateOrgClaimedInviteMutation({ create({ data: '', senderId: '', receiverId: '', entityId: '' }); ``` +### AppLimitEvent + +```typescript +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + +### OrgLimitEvent + +```typescript +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, +}); + +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); +``` + ### OrgGrant ```typescript @@ -778,6 +772,48 @@ const { mutate: create } = useCreateOrgChartEdgeMutation({ create({ entityId: '', childId: '', parentId: '', positionTitle: '', positionLevel: '' }); ``` +### AppLimit + +```typescript +// List all appLimits +const { data, isLoading } = useAppLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Get one appLimit +const { data: item } = useAppLimitQuery({ + id: '', + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Create a appLimit +const { mutate: create } = useCreateAppLimitMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); +``` + +### OrgLimitAggregate + +```typescript +// List all orgLimitAggregates +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Get one orgLimitAggregate +const { data: item } = useOrgLimitAggregateQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Create a orgLimitAggregate +const { mutate: create } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); +``` + ### OrgMemberProfile ```typescript @@ -799,25 +835,25 @@ const { mutate: create } = useCreateOrgMemberProfileMutation({ create({ membershipId: '', entityId: '', actorId: '', displayName: '', email: '', title: '', bio: '', profilePicture: '' }); ``` -### OrgMembershipSetting +### OrgLimit ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, +// List all orgLimits +const { data, isLoading } = useOrgLimitsQuery({ + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ +// Get one orgLimit +const { data: item } = useOrgLimitQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a orgLimit +const { mutate: create } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }); ``` ### AppLevel @@ -846,20 +882,41 @@ create({ name: '', description: '', image: '', ownerId: ' ```typescript // List all appInvites const { data, isLoading } = useAppInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); // Get one appInvite const { data: item } = useAppInviteQuery({ id: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); // Create a appInvite const { mutate: create } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); +``` + +### OrgMembershipSetting + +```typescript +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +}); + +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, +}); + +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ + selection: { fields: { id: true } }, +}); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` ### OrgInvite @@ -867,20 +924,20 @@ create({ email: '', senderId: '', inviteToken: '', inviteVa ```typescript // List all orgInvites const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); // Get one orgInvite const { data: item } = useOrgInviteQuery({ id: '', - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); // Create a orgInvite const { mutate: create } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }); ``` ### AppMembership @@ -888,20 +945,20 @@ create({ email: '', senderId: '', receiverId: '', inviteToken ```typescript // List all appMemberships const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Get one appMembership const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### OrgMembership @@ -1098,19 +1155,6 @@ existing file ID and deduplicated=true with no uploadUrl. |----------|------| | `input` | RequestUploadUrlInput (required) | -### `useConfirmUploadMutation` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/admin/hooks/index.ts b/sdk/constructive-react/src/admin/hooks/index.ts index 96e03fbfc..2ad45ed47 100644 --- a/sdk/constructive-react/src/admin/hooks/index.ts +++ b/sdk/constructive-react/src/admin/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppLimitDefault, OrgLimitDefault, OrgAdminGrant, OrgOwnerGrant, AppLimit, AppAchievement, AppStep, AppClaimedInvite, OrgChartEdgeGrant, OrgLimit, MembershipType, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, OrgGrant, OrgChartEdge, OrgMemberProfile, OrgMembershipSetting, AppLevel, AppInvite, OrgInvite, AppMembership, OrgMembership + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, AppPermission, OrgPermission, AppLevelRequirement, OrgMember, AppPermissionDefault, OrgPermissionDefault, AppAdminGrant, AppOwnerGrant, AppAchievement, AppStep, OrgAdminGrant, OrgOwnerGrant, MembershipType, AppLimitDefault, OrgLimitDefault, OrgChartEdgeGrant, AppClaimedInvite, AppGrant, AppMembershipDefault, OrgMembershipDefault, OrgClaimedInvite, AppLimitEvent, OrgLimitEvent, OrgGrant, OrgChartEdge, AppLimit, OrgLimitAggregate, OrgMemberProfile, OrgLimit, AppLevel, AppInvite, OrgMembershipSetting, OrgInvite, AppMembership, OrgMembership * * Usage: * diff --git a/sdk/constructive-react/src/admin/hooks/invalidation.ts b/sdk/constructive-react/src/admin/hooks/invalidation.ts index 1c8c276d8..00327671d 100644 --- a/sdk/constructive-react/src/admin/hooks/invalidation.ts +++ b/sdk/constructive-react/src/admin/hooks/invalidation.ts @@ -25,27 +25,30 @@ import { orgPermissionDefaultKeys, appAdminGrantKeys, appOwnerGrantKeys, - appLimitDefaultKeys, - orgLimitDefaultKeys, - orgAdminGrantKeys, - orgOwnerGrantKeys, - appLimitKeys, appAchievementKeys, appStepKeys, - appClaimedInviteKeys, - orgChartEdgeGrantKeys, - orgLimitKeys, + orgAdminGrantKeys, + orgOwnerGrantKeys, membershipTypeKeys, + appLimitDefaultKeys, + orgLimitDefaultKeys, + orgChartEdgeGrantKeys, + appClaimedInviteKeys, appGrantKeys, appMembershipDefaultKeys, orgMembershipDefaultKeys, orgClaimedInviteKeys, + appLimitEventKeys, + orgLimitEventKeys, orgGrantKeys, orgChartEdgeKeys, + appLimitKeys, + orgLimitAggregateKeys, orgMemberProfileKeys, - orgMembershipSettingKeys, + orgLimitKeys, appLevelKeys, appInviteKeys, + orgMembershipSettingKeys, orgInviteKeys, appMembershipKeys, orgMembershipKeys, @@ -240,38 +243,35 @@ export const invalidate = { queryKey: appOwnerGrantKeys.detail(id), }), }, - /** Invalidate appLimitDefault queries */ appLimitDefault: { - /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate appAchievement queries */ appAchievement: { + /** Invalidate all appAchievement queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.all, + queryKey: appAchievementKeys.all, }), - /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appAchievement list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.lists(), + queryKey: appAchievementKeys.lists(), }), - /** Invalidate a specific appLimitDefault */ detail: ( + /** Invalidate a specific appAchievement */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: appAchievementKeys.detail(id), }), }, - /** Invalidate orgLimitDefault queries */ orgLimitDefault: { - /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate appStep queries */ appStep: { + /** Invalidate all appStep queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.all, + queryKey: appStepKeys.all, }), - /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appStep list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.lists(), + queryKey: appStepKeys.lists(), }), - /** Invalidate a specific orgLimitDefault */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific appStep */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: appStepKeys.detail(id), }), }, /** Invalidate orgAdminGrant queries */ orgAdminGrant: { @@ -308,66 +308,55 @@ export const invalidate = { queryKey: orgOwnerGrantKeys.detail(id), }), }, - /** Invalidate appLimit queries */ appLimit: { - /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.all, - }), - /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.lists(), - }), - /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: appLimitKeys.detail(id), - }), - }, - /** Invalidate appAchievement queries */ appAchievement: { - /** Invalidate all appAchievement queries */ all: (queryClient: QueryClient) => + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAchievementKeys.all, + queryKey: membershipTypeKeys.all, }), - /** Invalidate appAchievement list queries */ lists: (queryClient: QueryClient) => + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appAchievementKeys.lists(), + queryKey: membershipTypeKeys.lists(), }), - /** Invalidate a specific appAchievement */ detail: ( + /** Invalidate a specific membershipType */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appAchievementKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }), }, - /** Invalidate appStep queries */ appStep: { - /** Invalidate all appStep queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitDefault queries */ appLimitDefault: { + /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appStepKeys.all, + queryKey: appLimitDefaultKeys.all, }), - /** Invalidate appStep list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appStepKeys.lists(), + queryKey: appLimitDefaultKeys.lists(), }), - /** Invalidate a specific appStep */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific appLimitDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: appStepKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }), }, - /** Invalidate appClaimedInvite queries */ appClaimedInvite: { - /** Invalidate all appClaimedInvite queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault queries */ orgLimitDefault: { + /** Invalidate all orgLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.all, + queryKey: orgLimitDefaultKeys.all, }), - /** Invalidate appClaimedInvite list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.lists(), + queryKey: orgLimitDefaultKeys.lists(), }), - /** Invalidate a specific appClaimedInvite */ detail: ( + /** Invalidate a specific orgLimitDefault */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appClaimedInviteKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }), }, /** Invalidate orgChartEdgeGrant queries */ orgChartEdgeGrant: { @@ -387,35 +376,21 @@ export const invalidate = { queryKey: orgChartEdgeGrantKeys.detail(id), }), }, - /** Invalidate orgLimit queries */ orgLimit: { - /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.all, - }), - /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.lists(), - }), - /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: orgLimitKeys.detail(id), - }), - }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate appClaimedInvite queries */ appClaimedInvite: { + /** Invalidate all appClaimedInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: appClaimedInviteKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appClaimedInvite list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: appClaimedInviteKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific appClaimedInvite */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: appClaimedInviteKeys.detail(id), }), }, /** Invalidate appGrant queries */ appGrant: { @@ -483,6 +458,40 @@ export const invalidate = { queryKey: orgClaimedInviteKeys.detail(id), }), }, + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.all, + }), + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }), + /** Invalidate a specific appLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.detail(id), + }), + }, + /** Invalidate orgLimitEvent queries */ orgLimitEvent: { + /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.all, + }), + /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }), + /** Invalidate a specific orgLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.detail(id), + }), + }, /** Invalidate orgGrant queries */ orgGrant: { /** Invalidate all orgGrant queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -514,6 +523,37 @@ export const invalidate = { queryKey: orgChartEdgeKeys.detail(id), }), }, + /** Invalidate appLimit queries */ appLimit: { + /** Invalidate all appLimit queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.all, + }), + /** Invalidate appLimit list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.lists(), + }), + /** Invalidate a specific appLimit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: appLimitKeys.detail(id), + }), + }, + /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { + /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.all, + }), + /** Invalidate orgLimitAggregate list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }), + /** Invalidate a specific orgLimitAggregate */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.detail(id), + }), + }, /** Invalidate orgMemberProfile queries */ orgMemberProfile: { /** Invalidate all orgMemberProfile queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -531,21 +571,18 @@ export const invalidate = { queryKey: orgMemberProfileKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimit queries */ orgLimit: { + /** Invalidate all orgLimit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: orgLimitKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimit list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: orgLimitKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( - queryClient: QueryClient, - id: string | number - ) => + /** Invalidate a specific orgLimit */ detail: (queryClient: QueryClient, id: string | number) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgLimitKeys.detail(id), }), }, /** Invalidate appLevel queries */ appLevel: { @@ -579,6 +616,23 @@ export const invalidate = { queryKey: appInviteKeys.detail(id), }), }, + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.all, + }), + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.lists(), + }), + /** Invalidate a specific orgMembershipSetting */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgMembershipSettingKeys.detail(id), + }), + }, /** Invalidate orgInvite queries */ orgInvite: { /** Invalidate all orgInvite queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -720,20 +774,17 @@ export const remove = { queryKey: appOwnerGrantKeys.detail(id), }); }, - /** Remove appLimitDefault from cache */ appLimitDefault: ( + /** Remove appAchievement from cache */ appAchievement: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appLimitDefaultKeys.detail(id), + queryKey: appAchievementKeys.detail(id), }); }, - /** Remove orgLimitDefault from cache */ orgLimitDefault: ( - queryClient: QueryClient, - id: string | number - ) => { + /** Remove appStep from cache */ appStep: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ - queryKey: orgLimitDefaultKeys.detail(id), + queryKey: appStepKeys.detail(id), }); }, /** Remove orgAdminGrant from cache */ orgAdminGrant: ( @@ -752,30 +803,28 @@ export const remove = { queryKey: orgOwnerGrantKeys.detail(id), }); }, - /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: appLimitKeys.detail(id), - }); - }, - /** Remove appAchievement from cache */ appAchievement: ( + /** Remove membershipType from cache */ membershipType: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appAchievementKeys.detail(id), + queryKey: membershipTypeKeys.detail(id), }); }, - /** Remove appStep from cache */ appStep: (queryClient: QueryClient, id: string | number) => { + /** Remove appLimitDefault from cache */ appLimitDefault: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: appStepKeys.detail(id), + queryKey: appLimitDefaultKeys.detail(id), }); }, - /** Remove appClaimedInvite from cache */ appClaimedInvite: ( + /** Remove orgLimitDefault from cache */ orgLimitDefault: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appClaimedInviteKeys.detail(id), + queryKey: orgLimitDefaultKeys.detail(id), }); }, /** Remove orgChartEdgeGrant from cache */ orgChartEdgeGrant: ( @@ -786,17 +835,12 @@ export const remove = { queryKey: orgChartEdgeGrantKeys.detail(id), }); }, - /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: orgLimitKeys.detail(id), - }); - }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove appClaimedInvite from cache */ appClaimedInvite: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: appClaimedInviteKeys.detail(id), }); }, /** Remove appGrant from cache */ appGrant: (queryClient: QueryClient, id: string | number) => { @@ -828,6 +872,22 @@ export const remove = { queryKey: orgClaimedInviteKeys.detail(id), }); }, + /** Remove appLimitEvent from cache */ appLimitEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: appLimitEventKeys.detail(id), + }); + }, + /** Remove orgLimitEvent from cache */ orgLimitEvent: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitEventKeys.detail(id), + }); + }, /** Remove orgGrant from cache */ orgGrant: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: orgGrantKeys.detail(id), @@ -841,20 +901,30 @@ export const remove = { queryKey: orgChartEdgeKeys.detail(id), }); }, - /** Remove orgMemberProfile from cache */ orgMemberProfile: ( + /** Remove appLimit from cache */ appLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: appLimitKeys.detail(id), + }); + }, + /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMemberProfileKeys.detail(id), + queryKey: orgLimitAggregateKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove orgMemberProfile from cache */ orgMemberProfile: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: orgMemberProfileKeys.detail(id), + }); + }, + /** Remove orgLimit from cache */ orgLimit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: orgLimitKeys.detail(id), }); }, /** Remove appLevel from cache */ appLevel: (queryClient: QueryClient, id: string | number) => { @@ -867,6 +937,14 @@ export const remove = { queryKey: appInviteKeys.detail(id), }); }, + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgMembershipSettingKeys.detail(id), + }); + }, /** Remove orgInvite from cache */ orgInvite: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: orgInviteKeys.detail(id), diff --git a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts index d8817f97c..79a550748 100644 --- a/sdk/constructive-react/src/admin/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/mutation-keys.ts @@ -110,23 +110,22 @@ export const appOwnerGrantMutationKeys = { /** Delete appOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'appownergrant', 'delete', id] as const, } as const; -export const appLimitDefaultMutationKeys = { - /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, - /** Create appLimitDefault mutation key */ create: () => - ['mutation', 'applimitdefault', 'create'] as const, - /** Update appLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'applimitdefault', 'update', id] as const, - /** Delete appLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'applimitdefault', 'delete', id] as const, +export const appAchievementMutationKeys = { + /** All appAchievement mutation keys */ all: ['mutation', 'appachievement'] as const, + /** Create appAchievement mutation key */ create: () => + ['mutation', 'appachievement', 'create'] as const, + /** Update appAchievement mutation key */ update: (id: string | number) => + ['mutation', 'appachievement', 'update', id] as const, + /** Delete appAchievement mutation key */ delete: (id: string | number) => + ['mutation', 'appachievement', 'delete', id] as const, } as const; -export const orgLimitDefaultMutationKeys = { - /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, - /** Create orgLimitDefault mutation key */ create: () => - ['mutation', 'orglimitdefault', 'create'] as const, - /** Update orgLimitDefault mutation key */ update: (id: string | number) => - ['mutation', 'orglimitdefault', 'update', id] as const, - /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => - ['mutation', 'orglimitdefault', 'delete', id] as const, +export const appStepMutationKeys = { + /** All appStep mutation keys */ all: ['mutation', 'appstep'] as const, + /** Create appStep mutation key */ create: () => ['mutation', 'appstep', 'create'] as const, + /** Update appStep mutation key */ update: (id: string | number) => + ['mutation', 'appstep', 'update', id] as const, + /** Delete appStep mutation key */ delete: (id: string | number) => + ['mutation', 'appstep', 'delete', id] as const, } as const; export const orgAdminGrantMutationKeys = { /** All orgAdminGrant mutation keys */ all: ['mutation', 'orgadmingrant'] as const, @@ -146,39 +145,32 @@ export const orgOwnerGrantMutationKeys = { /** Delete orgOwnerGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgownergrant', 'delete', id] as const, } as const; -export const appLimitMutationKeys = { - /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, - /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, - /** Update appLimit mutation key */ update: (id: string | number) => - ['mutation', 'applimit', 'update', id] as const, - /** Delete appLimit mutation key */ delete: (id: string | number) => - ['mutation', 'applimit', 'delete', id] as const, -} as const; -export const appAchievementMutationKeys = { - /** All appAchievement mutation keys */ all: ['mutation', 'appachievement'] as const, - /** Create appAchievement mutation key */ create: () => - ['mutation', 'appachievement', 'create'] as const, - /** Update appAchievement mutation key */ update: (id: string | number) => - ['mutation', 'appachievement', 'update', id] as const, - /** Delete appAchievement mutation key */ delete: (id: string | number) => - ['mutation', 'appachievement', 'delete', id] as const, +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; -export const appStepMutationKeys = { - /** All appStep mutation keys */ all: ['mutation', 'appstep'] as const, - /** Create appStep mutation key */ create: () => ['mutation', 'appstep', 'create'] as const, - /** Update appStep mutation key */ update: (id: string | number) => - ['mutation', 'appstep', 'update', id] as const, - /** Delete appStep mutation key */ delete: (id: string | number) => - ['mutation', 'appstep', 'delete', id] as const, +export const appLimitDefaultMutationKeys = { + /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, + /** Create appLimitDefault mutation key */ create: () => + ['mutation', 'applimitdefault', 'create'] as const, + /** Update appLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'applimitdefault', 'update', id] as const, + /** Delete appLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'applimitdefault', 'delete', id] as const, } as const; -export const appClaimedInviteMutationKeys = { - /** All appClaimedInvite mutation keys */ all: ['mutation', 'appclaimedinvite'] as const, - /** Create appClaimedInvite mutation key */ create: () => - ['mutation', 'appclaimedinvite', 'create'] as const, - /** Update appClaimedInvite mutation key */ update: (id: string | number) => - ['mutation', 'appclaimedinvite', 'update', id] as const, - /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => - ['mutation', 'appclaimedinvite', 'delete', id] as const, +export const orgLimitDefaultMutationKeys = { + /** All orgLimitDefault mutation keys */ all: ['mutation', 'orglimitdefault'] as const, + /** Create orgLimitDefault mutation key */ create: () => + ['mutation', 'orglimitdefault', 'create'] as const, + /** Update orgLimitDefault mutation key */ update: (id: string | number) => + ['mutation', 'orglimitdefault', 'update', id] as const, + /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; export const orgChartEdgeGrantMutationKeys = { /** All orgChartEdgeGrant mutation keys */ all: ['mutation', 'orgchartedgegrant'] as const, @@ -189,22 +181,14 @@ export const orgChartEdgeGrantMutationKeys = { /** Delete orgChartEdgeGrant mutation key */ delete: (id: string | number) => ['mutation', 'orgchartedgegrant', 'delete', id] as const, } as const; -export const orgLimitMutationKeys = { - /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, - /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, - /** Update orgLimit mutation key */ update: (id: string | number) => - ['mutation', 'orglimit', 'update', id] as const, - /** Delete orgLimit mutation key */ delete: (id: string | number) => - ['mutation', 'orglimit', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, +export const appClaimedInviteMutationKeys = { + /** All appClaimedInvite mutation keys */ all: ['mutation', 'appclaimedinvite'] as const, + /** Create appClaimedInvite mutation key */ create: () => + ['mutation', 'appclaimedinvite', 'create'] as const, + /** Update appClaimedInvite mutation key */ update: (id: string | number) => + ['mutation', 'appclaimedinvite', 'update', id] as const, + /** Delete appClaimedInvite mutation key */ delete: (id: string | number) => + ['mutation', 'appclaimedinvite', 'delete', id] as const, } as const; export const appGrantMutationKeys = { /** All appGrant mutation keys */ all: ['mutation', 'appgrant'] as const, @@ -241,6 +225,24 @@ export const orgClaimedInviteMutationKeys = { /** Delete orgClaimedInvite mutation key */ delete: (id: string | number) => ['mutation', 'orgclaimedinvite', 'delete', id] as const, } as const; +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, +} as const; +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, +} as const; export const orgGrantMutationKeys = { /** All orgGrant mutation keys */ all: ['mutation', 'orggrant'] as const, /** Create orgGrant mutation key */ create: () => ['mutation', 'orggrant', 'create'] as const, @@ -258,6 +260,23 @@ export const orgChartEdgeMutationKeys = { /** Delete orgChartEdge mutation key */ delete: (id: string | number) => ['mutation', 'orgchartedge', 'delete', id] as const, } as const; +export const appLimitMutationKeys = { + /** All appLimit mutation keys */ all: ['mutation', 'applimit'] as const, + /** Create appLimit mutation key */ create: () => ['mutation', 'applimit', 'create'] as const, + /** Update appLimit mutation key */ update: (id: string | number) => + ['mutation', 'applimit', 'update', id] as const, + /** Delete appLimit mutation key */ delete: (id: string | number) => + ['mutation', 'applimit', 'delete', id] as const, +} as const; +export const orgLimitAggregateMutationKeys = { + /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, + /** Create orgLimitAggregate mutation key */ create: () => + ['mutation', 'orglimitaggregate', 'create'] as const, + /** Update orgLimitAggregate mutation key */ update: (id: string | number) => + ['mutation', 'orglimitaggregate', 'update', id] as const, + /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitaggregate', 'delete', id] as const, +} as const; export const orgMemberProfileMutationKeys = { /** All orgMemberProfile mutation keys */ all: ['mutation', 'orgmemberprofile'] as const, /** Create orgMemberProfile mutation key */ create: () => @@ -267,14 +286,13 @@ export const orgMemberProfileMutationKeys = { /** Delete orgMemberProfile mutation key */ delete: (id: string | number) => ['mutation', 'orgmemberprofile', 'delete', id] as const, } as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, +export const orgLimitMutationKeys = { + /** All orgLimit mutation keys */ all: ['mutation', 'orglimit'] as const, + /** Create orgLimit mutation key */ create: () => ['mutation', 'orglimit', 'create'] as const, + /** Update orgLimit mutation key */ update: (id: string | number) => + ['mutation', 'orglimit', 'update', id] as const, + /** Delete orgLimit mutation key */ delete: (id: string | number) => + ['mutation', 'orglimit', 'delete', id] as const, } as const; export const appLevelMutationKeys = { /** All appLevel mutation keys */ all: ['mutation', 'applevel'] as const, @@ -292,6 +310,15 @@ export const appInviteMutationKeys = { /** Delete appInvite mutation key */ delete: (id: string | number) => ['mutation', 'appinvite', 'delete', id] as const, } as const; +export const orgMembershipSettingMutationKeys = { + /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, + /** Create orgMembershipSetting mutation key */ create: () => + ['mutation', 'orgmembershipsetting', 'create'] as const, + /** Update orgMembershipSetting mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'update', id] as const, + /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'delete', id] as const, +} as const; export const orgInviteMutationKeys = { /** All orgInvite mutation keys */ all: ['mutation', 'orginvite'] as const, /** Create orgInvite mutation key */ create: () => ['mutation', 'orginvite', 'create'] as const, @@ -336,10 +363,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'requestUploadUrl', identifier] as const) : (['mutation', 'requestUploadUrl'] as const), - /** Mutation key for confirmUpload */ confirmUpload: (identifier?: string) => - identifier - ? (['mutation', 'confirmUpload', identifier] as const) - : (['mutation', 'confirmUpload'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -378,27 +401,30 @@ export const mutationKeys = { orgPermissionDefault: orgPermissionDefaultMutationKeys, appAdminGrant: appAdminGrantMutationKeys, appOwnerGrant: appOwnerGrantMutationKeys, - appLimitDefault: appLimitDefaultMutationKeys, - orgLimitDefault: orgLimitDefaultMutationKeys, - orgAdminGrant: orgAdminGrantMutationKeys, - orgOwnerGrant: orgOwnerGrantMutationKeys, - appLimit: appLimitMutationKeys, appAchievement: appAchievementMutationKeys, appStep: appStepMutationKeys, - appClaimedInvite: appClaimedInviteMutationKeys, - orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, - orgLimit: orgLimitMutationKeys, + orgAdminGrant: orgAdminGrantMutationKeys, + orgOwnerGrant: orgOwnerGrantMutationKeys, membershipType: membershipTypeMutationKeys, + appLimitDefault: appLimitDefaultMutationKeys, + orgLimitDefault: orgLimitDefaultMutationKeys, + orgChartEdgeGrant: orgChartEdgeGrantMutationKeys, + appClaimedInvite: appClaimedInviteMutationKeys, appGrant: appGrantMutationKeys, appMembershipDefault: appMembershipDefaultMutationKeys, orgMembershipDefault: orgMembershipDefaultMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, orgGrant: orgGrantMutationKeys, orgChartEdge: orgChartEdgeMutationKeys, + appLimit: appLimitMutationKeys, + orgLimitAggregate: orgLimitAggregateMutationKeys, orgMemberProfile: orgMemberProfileMutationKeys, - orgMembershipSetting: orgMembershipSettingMutationKeys, + orgLimit: orgLimitMutationKeys, appLevel: appLevelMutationKeys, appInvite: appInviteMutationKeys, + orgMembershipSetting: orgMembershipSettingMutationKeys, orgInvite: orgInviteMutationKeys, appMembership: appMembershipMutationKeys, orgMembership: orgMembershipMutationKeys, diff --git a/sdk/constructive-react/src/admin/hooks/mutations/index.ts b/sdk/constructive-react/src/admin/hooks/mutations/index.ts index 715c7534c..6aed60bcf 100644 --- a/sdk/constructive-react/src/admin/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/admin/hooks/mutations/index.ts @@ -29,39 +29,33 @@ export * from './useDeleteAppAdminGrantMutation'; export * from './useCreateAppOwnerGrantMutation'; export * from './useUpdateAppOwnerGrantMutation'; export * from './useDeleteAppOwnerGrantMutation'; -export * from './useCreateAppLimitDefaultMutation'; -export * from './useUpdateAppLimitDefaultMutation'; -export * from './useDeleteAppLimitDefaultMutation'; -export * from './useCreateOrgLimitDefaultMutation'; -export * from './useUpdateOrgLimitDefaultMutation'; -export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateOrgAdminGrantMutation'; -export * from './useUpdateOrgAdminGrantMutation'; -export * from './useDeleteOrgAdminGrantMutation'; -export * from './useCreateOrgOwnerGrantMutation'; -export * from './useUpdateOrgOwnerGrantMutation'; -export * from './useDeleteOrgOwnerGrantMutation'; -export * from './useCreateAppLimitMutation'; -export * from './useUpdateAppLimitMutation'; -export * from './useDeleteAppLimitMutation'; export * from './useCreateAppAchievementMutation'; export * from './useUpdateAppAchievementMutation'; export * from './useDeleteAppAchievementMutation'; export * from './useCreateAppStepMutation'; export * from './useUpdateAppStepMutation'; export * from './useDeleteAppStepMutation'; -export * from './useCreateAppClaimedInviteMutation'; -export * from './useUpdateAppClaimedInviteMutation'; -export * from './useDeleteAppClaimedInviteMutation'; -export * from './useCreateOrgChartEdgeGrantMutation'; -export * from './useUpdateOrgChartEdgeGrantMutation'; -export * from './useDeleteOrgChartEdgeGrantMutation'; -export * from './useCreateOrgLimitMutation'; -export * from './useUpdateOrgLimitMutation'; -export * from './useDeleteOrgLimitMutation'; +export * from './useCreateOrgAdminGrantMutation'; +export * from './useUpdateOrgAdminGrantMutation'; +export * from './useDeleteOrgAdminGrantMutation'; +export * from './useCreateOrgOwnerGrantMutation'; +export * from './useUpdateOrgOwnerGrantMutation'; +export * from './useDeleteOrgOwnerGrantMutation'; export * from './useCreateMembershipTypeMutation'; export * from './useUpdateMembershipTypeMutation'; export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateAppLimitDefaultMutation'; +export * from './useUpdateAppLimitDefaultMutation'; +export * from './useDeleteAppLimitDefaultMutation'; +export * from './useCreateOrgLimitDefaultMutation'; +export * from './useUpdateOrgLimitDefaultMutation'; +export * from './useDeleteOrgLimitDefaultMutation'; +export * from './useCreateOrgChartEdgeGrantMutation'; +export * from './useUpdateOrgChartEdgeGrantMutation'; +export * from './useDeleteOrgChartEdgeGrantMutation'; +export * from './useCreateAppClaimedInviteMutation'; +export * from './useUpdateAppClaimedInviteMutation'; +export * from './useDeleteAppClaimedInviteMutation'; export * from './useCreateAppGrantMutation'; export * from './useUpdateAppGrantMutation'; export * from './useDeleteAppGrantMutation'; @@ -74,24 +68,35 @@ export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateOrgClaimedInviteMutation'; export * from './useUpdateOrgClaimedInviteMutation'; export * from './useDeleteOrgClaimedInviteMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; export * from './useCreateOrgGrantMutation'; export * from './useUpdateOrgGrantMutation'; export * from './useDeleteOrgGrantMutation'; export * from './useCreateOrgChartEdgeMutation'; export * from './useUpdateOrgChartEdgeMutation'; export * from './useDeleteOrgChartEdgeMutation'; +export * from './useCreateAppLimitMutation'; +export * from './useUpdateAppLimitMutation'; +export * from './useDeleteAppLimitMutation'; +export * from './useCreateOrgLimitAggregateMutation'; +export * from './useUpdateOrgLimitAggregateMutation'; +export * from './useDeleteOrgLimitAggregateMutation'; export * from './useCreateOrgMemberProfileMutation'; export * from './useUpdateOrgMemberProfileMutation'; export * from './useDeleteOrgMemberProfileMutation'; -export * from './useCreateOrgMembershipSettingMutation'; -export * from './useUpdateOrgMembershipSettingMutation'; -export * from './useDeleteOrgMembershipSettingMutation'; +export * from './useCreateOrgLimitMutation'; +export * from './useUpdateOrgLimitMutation'; +export * from './useDeleteOrgLimitMutation'; export * from './useCreateAppLevelMutation'; export * from './useUpdateAppLevelMutation'; export * from './useDeleteAppLevelMutation'; export * from './useCreateAppInviteMutation'; export * from './useUpdateAppInviteMutation'; export * from './useDeleteAppInviteMutation'; +export * from './useCreateOrgMembershipSettingMutation'; +export * from './useUpdateOrgMembershipSettingMutation'; +export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateOrgInviteMutation'; export * from './useUpdateOrgInviteMutation'; export * from './useDeleteOrgInviteMutation'; @@ -104,5 +109,4 @@ export * from './useDeleteOrgMembershipMutation'; export * from './useSubmitAppInviteCodeMutation'; export * from './useSubmitOrgInviteCodeMutation'; export * from './useRequestUploadUrlMutation'; -export * from './useConfirmUploadMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useConfirmUploadMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useConfirmUploadMutation.ts deleted file mode 100644 index 30caee165..000000000 --- a/sdk/constructive-react/src/admin/hooks/mutations/useConfirmUploadMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect, ConfirmUploadPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ConfirmUploadVariables } from '../../orm/mutation'; -export type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export function useConfirmUploadMutation( - params: { - selection: { - fields: S & ConfirmUploadPayloadSelect; - } & HookStrictSelect, ConfirmUploadPayloadSelect>; - } & Omit< - UseMutationOptions< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.confirmUpload(), - mutationFn: (variables: ConfirmUploadVariables) => - getClient() - .mutation.confirmUpload(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts new file mode 100644 index 000000000..b34aef46f --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateAppLimitEventMutation.ts @@ -0,0 +1,88 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + CreateAppLimitEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + CreateAppLimitEventInput, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + CreateAppLimitEventInput['appLimitEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + CreateAppLimitEventInput['appLimitEvent'] +>; +export function useCreateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.create(), + mutationFn: (data: CreateAppLimitEventInput['appLimitEvent']) => + getClient() + .appLimitEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..c3f671b70 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitAggregateMutation.ts @@ -0,0 +1,91 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + CreateOrgLimitAggregateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + CreateOrgLimitAggregateInput, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitAggregateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + CreateOrgLimitAggregateInput['orgLimitAggregate'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + CreateOrgLimitAggregateInput['orgLimitAggregate'] +>; +export function useCreateOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.create(), + mutationFn: (data: CreateOrgLimitAggregateInput['orgLimitAggregate']) => + getClient() + .orgLimitAggregate.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts new file mode 100644 index 000000000..48f74d4a9 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useCreateOrgLimitEventMutation.ts @@ -0,0 +1,88 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + CreateOrgLimitEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + CreateOrgLimitEventInput, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + CreateOrgLimitEventInput['orgLimitEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + CreateOrgLimitEventInput['orgLimitEvent'] +>; +export function useCreateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.create(), + mutationFn: (data: CreateOrgLimitEventInput['orgLimitEvent']) => + getClient() + .orgLimitEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..a946d49de --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts @@ -0,0 +1,104 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitAggregateMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitAggregate.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitAggregateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..1c24df7ca --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts @@ -0,0 +1,116 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregatePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregatePatch, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitAggregateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitAggregatePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } +>; +export function useUpdateOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.all, + mutationFn: ({ + id, + orgLimitAggregatePatch, + }: { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + }) => + getClient() + .orgLimitAggregate.update({ + where: { + id, + }, + data: orgLimitAggregatePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/index.ts b/sdk/constructive-react/src/admin/hooks/queries/index.ts index 9ce59f4b8..4c2f2f3ca 100644 --- a/sdk/constructive-react/src/admin/hooks/queries/index.ts +++ b/sdk/constructive-react/src/admin/hooks/queries/index.ts @@ -21,28 +21,24 @@ export * from './useAppAdminGrantsQuery'; export * from './useAppAdminGrantQuery'; export * from './useAppOwnerGrantsQuery'; export * from './useAppOwnerGrantQuery'; -export * from './useAppLimitDefaultsQuery'; -export * from './useAppLimitDefaultQuery'; -export * from './useOrgLimitDefaultsQuery'; -export * from './useOrgLimitDefaultQuery'; -export * from './useOrgAdminGrantsQuery'; -export * from './useOrgAdminGrantQuery'; -export * from './useOrgOwnerGrantsQuery'; -export * from './useOrgOwnerGrantQuery'; -export * from './useAppLimitsQuery'; -export * from './useAppLimitQuery'; export * from './useAppAchievementsQuery'; export * from './useAppAchievementQuery'; export * from './useAppStepsQuery'; export * from './useAppStepQuery'; -export * from './useAppClaimedInvitesQuery'; -export * from './useAppClaimedInviteQuery'; -export * from './useOrgChartEdgeGrantsQuery'; -export * from './useOrgChartEdgeGrantQuery'; -export * from './useOrgLimitsQuery'; -export * from './useOrgLimitQuery'; +export * from './useOrgAdminGrantsQuery'; +export * from './useOrgAdminGrantQuery'; +export * from './useOrgOwnerGrantsQuery'; +export * from './useOrgOwnerGrantQuery'; export * from './useMembershipTypesQuery'; export * from './useMembershipTypeQuery'; +export * from './useAppLimitDefaultsQuery'; +export * from './useAppLimitDefaultQuery'; +export * from './useOrgLimitDefaultsQuery'; +export * from './useOrgLimitDefaultQuery'; +export * from './useOrgChartEdgeGrantsQuery'; +export * from './useOrgChartEdgeGrantQuery'; +export * from './useAppClaimedInvitesQuery'; +export * from './useAppClaimedInviteQuery'; export * from './useAppGrantsQuery'; export * from './useAppGrantQuery'; export * from './useAppMembershipDefaultsQuery'; @@ -51,18 +47,26 @@ export * from './useOrgMembershipDefaultsQuery'; export * from './useOrgMembershipDefaultQuery'; export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useOrgLimitEventsQuery'; export * from './useOrgGrantsQuery'; export * from './useOrgGrantQuery'; export * from './useOrgChartEdgesQuery'; export * from './useOrgChartEdgeQuery'; +export * from './useAppLimitsQuery'; +export * from './useAppLimitQuery'; +export * from './useOrgLimitAggregatesQuery'; +export * from './useOrgLimitAggregateQuery'; export * from './useOrgMemberProfilesQuery'; export * from './useOrgMemberProfileQuery'; -export * from './useOrgMembershipSettingsQuery'; -export * from './useOrgMembershipSettingQuery'; +export * from './useOrgLimitsQuery'; +export * from './useOrgLimitQuery'; export * from './useAppLevelsQuery'; export * from './useAppLevelQuery'; export * from './useAppInvitesQuery'; export * from './useAppInviteQuery'; +export * from './useOrgMembershipSettingsQuery'; +export * from './useOrgMembershipSettingQuery'; export * from './useOrgInvitesQuery'; export * from './useOrgInviteQuery'; export * from './useAppMembershipsQuery'; diff --git a/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts new file mode 100644 index 000000000..034cba89c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useAppLimitEventsQuery.ts @@ -0,0 +1,151 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventsQueryKey = appLimitEventKeys.list; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitEventsQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.list(args), + queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvents: ConnectionResult>; +}>; +export async function fetchAppLimitEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + return getClient().appLimitEvent.findMany(args).unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.list(args), + queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts new file mode 100644 index 000000000..c2b56b3d0 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregateQuery.ts @@ -0,0 +1,144 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitAggregateQueryKey = orgLimitAggregateKeys.detail; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitAggregateQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitAggregateQuery< + S extends OrgLimitAggregateSelect, + TData = { + orgLimitAggregate: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitAggregate: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitAggregateQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitAggregateKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * const data = await fetchOrgLimitAggregateQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitAggregateQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; +}): Promise<{ + orgLimitAggregate: InferSelectResult | null; +}>; +export async function fetchOrgLimitAggregateQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * await prefetchOrgLimitAggregateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitAggregateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } +): Promise; +export async function prefetchOrgLimitAggregateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitAggregateKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts new file mode 100644 index 000000000..9f0caf3f3 --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitAggregatesQuery.ts @@ -0,0 +1,163 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitAggregatesQueryKey = orgLimitAggregateKeys.list; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitAggregatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitAggregatesQuery< + S extends OrgLimitAggregateSelect, + TData = { + orgLimitAggregates: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitAggregates: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitAggregatesQuery( + params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitAggregateKeys.list(args), + queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * const data = await fetchOrgLimitAggregatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitAggregatesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; +}): Promise<{ + orgLimitAggregates: ConnectionResult>; +}>; +export async function fetchOrgLimitAggregatesQuery(params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + return getClient().orgLimitAggregate.findMany(args).unwrap(); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * await prefetchOrgLimitAggregatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitAggregatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; + } +): Promise; +export async function prefetchOrgLimitAggregatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitAggregateKeys.list(args), + queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts new file mode 100644 index 000000000..66ba8768c --- /dev/null +++ b/sdk/constructive-react/src/admin/hooks/queries/useOrgLimitEventsQuery.ts @@ -0,0 +1,151 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventsQueryKey = orgLimitEventKeys.list; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitEventsQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.list(args), + queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvents: ConnectionResult>; +}>; +export async function fetchOrgLimitEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + return getClient().orgLimitEvent.findMany(args).unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.list(args), + queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/admin/hooks/query-keys.ts b/sdk/constructive-react/src/admin/hooks/query-keys.ts index 544ca092f..649c585bc 100644 --- a/sdk/constructive-react/src/admin/hooks/query-keys.ts +++ b/sdk/constructive-react/src/admin/hooks/query-keys.ts @@ -109,23 +109,23 @@ export const appOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appOwnerGrantKeys.details(), id] as const, } as const; -export const appLimitDefaultKeys = { - /** All appLimitDefault queries */ all: ['applimitdefault'] as const, - /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, +export const appAchievementKeys = { + /** All appAchievement queries */ all: ['appachievement'] as const, + /** List query keys */ lists: () => [...appAchievementKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, + [...appAchievementKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appAchievementKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitDefaultKeys.details(), id] as const, + [...appAchievementKeys.details(), id] as const, } as const; -export const orgLimitDefaultKeys = { - /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, - /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, +export const appStepKeys = { + /** All appStep queries */ all: ['appstep'] as const, + /** List query keys */ lists: () => [...appStepKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgLimitDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, + [...appStepKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appStepKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitDefaultKeys.details(), id] as const, + [...appStepKeys.details(), id] as const, } as const; export const orgAdminGrantKeys = { /** All orgAdminGrant queries */ all: ['orgadmingrant'] as const, @@ -145,41 +145,32 @@ export const orgOwnerGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgOwnerGrantKeys.details(), id] as const, } as const; -export const appLimitKeys = { - /** All appLimit queries */ all: ['applimit'] as const, - /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...appLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...appLimitKeys.details(), id] as const, -} as const; -export const appAchievementKeys = { - /** All appAchievement queries */ all: ['appachievement'] as const, - /** List query keys */ lists: () => [...appAchievementKeys.all, 'list'] as const, +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appAchievementKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appAchievementKeys.all, 'detail'] as const, + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appAchievementKeys.details(), id] as const, + [...membershipTypeKeys.details(), id] as const, } as const; -export const appStepKeys = { - /** All appStep queries */ all: ['appstep'] as const, - /** List query keys */ lists: () => [...appStepKeys.all, 'list'] as const, +export const appLimitDefaultKeys = { + /** All appLimitDefault queries */ all: ['applimitdefault'] as const, + /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appStepKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appStepKeys.all, 'detail'] as const, + [...appLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitDefaultKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appStepKeys.details(), id] as const, + [...appLimitDefaultKeys.details(), id] as const, } as const; -export const appClaimedInviteKeys = { - /** All appClaimedInvite queries */ all: ['appclaimedinvite'] as const, - /** List query keys */ lists: () => [...appClaimedInviteKeys.all, 'list'] as const, +export const orgLimitDefaultKeys = { + /** All orgLimitDefault queries */ all: ['orglimitdefault'] as const, + /** List query keys */ lists: () => [...orgLimitDefaultKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appClaimedInviteKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appClaimedInviteKeys.all, 'detail'] as const, + [...orgLimitDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitDefaultKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appClaimedInviteKeys.details(), id] as const, + [...orgLimitDefaultKeys.details(), id] as const, } as const; export const orgChartEdgeGrantKeys = { /** All orgChartEdgeGrant queries */ all: ['orgchartedgegrant'] as const, @@ -190,23 +181,14 @@ export const orgChartEdgeGrantKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgChartEdgeGrantKeys.details(), id] as const, } as const; -export const orgLimitKeys = { - /** All orgLimit queries */ all: ['orglimit'] as const, - /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...orgLimitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...orgLimitKeys.details(), id] as const, -} as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, +export const appClaimedInviteKeys = { + /** All appClaimedInvite queries */ all: ['appclaimedinvite'] as const, + /** List query keys */ lists: () => [...appClaimedInviteKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, + [...appClaimedInviteKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appClaimedInviteKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, + [...appClaimedInviteKeys.details(), id] as const, } as const; export const appGrantKeys = { /** All appGrant queries */ all: ['appgrant'] as const, @@ -244,6 +226,24 @@ export const orgClaimedInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgClaimedInviteKeys.details(), id] as const, } as const; +export const appLimitEventKeys = { + /** All appLimitEvent queries */ all: ['applimitevent'] as const, + /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitEventKeys.details(), id] as const, +} as const; +export const orgLimitEventKeys = { + /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, + /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitEventKeys.details(), id] as const, +} as const; export const orgGrantKeys = { /** All orgGrant queries */ all: ['orggrant'] as const, /** List query keys */ lists: () => [...orgGrantKeys.all, 'list'] as const, @@ -262,6 +262,24 @@ export const orgChartEdgeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgChartEdgeKeys.details(), id] as const, } as const; +export const appLimitKeys = { + /** All appLimit queries */ all: ['applimit'] as const, + /** List query keys */ lists: () => [...appLimitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...appLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...appLimitKeys.details(), id] as const, +} as const; +export const orgLimitAggregateKeys = { + /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, + /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitAggregateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitAggregateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitAggregateKeys.details(), id] as const, +} as const; export const orgMemberProfileKeys = { /** All orgMemberProfile queries */ all: ['orgmemberprofile'] as const, /** List query keys */ lists: () => [...orgMemberProfileKeys.all, 'list'] as const, @@ -271,14 +289,14 @@ export const orgMemberProfileKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMemberProfileKeys.details(), id] as const, } as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const orgLimitKeys = { + /** All orgLimit queries */ all: ['orglimit'] as const, + /** List query keys */ lists: () => [...orgLimitKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...orgLimitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...orgLimitKeys.details(), id] as const, } as const; export const appLevelKeys = { /** All appLevel queries */ all: ['applevel'] as const, @@ -298,6 +316,15 @@ export const appInviteKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...appInviteKeys.details(), id] as const, } as const; +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgMembershipSettingKeys.details(), id] as const, +} as const; export const orgInviteKeys = { /** All orgInvite queries */ all: ['orginvite'] as const, /** List query keys */ lists: () => [...orgInviteKeys.all, 'list'] as const, @@ -391,27 +418,30 @@ export const queryKeys = { orgPermissionDefault: orgPermissionDefaultKeys, appAdminGrant: appAdminGrantKeys, appOwnerGrant: appOwnerGrantKeys, - appLimitDefault: appLimitDefaultKeys, - orgLimitDefault: orgLimitDefaultKeys, - orgAdminGrant: orgAdminGrantKeys, - orgOwnerGrant: orgOwnerGrantKeys, - appLimit: appLimitKeys, appAchievement: appAchievementKeys, appStep: appStepKeys, - appClaimedInvite: appClaimedInviteKeys, - orgChartEdgeGrant: orgChartEdgeGrantKeys, - orgLimit: orgLimitKeys, + orgAdminGrant: orgAdminGrantKeys, + orgOwnerGrant: orgOwnerGrantKeys, membershipType: membershipTypeKeys, + appLimitDefault: appLimitDefaultKeys, + orgLimitDefault: orgLimitDefaultKeys, + orgChartEdgeGrant: orgChartEdgeGrantKeys, + appClaimedInvite: appClaimedInviteKeys, appGrant: appGrantKeys, appMembershipDefault: appMembershipDefaultKeys, orgMembershipDefault: orgMembershipDefaultKeys, orgClaimedInvite: orgClaimedInviteKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, orgGrant: orgGrantKeys, orgChartEdge: orgChartEdgeKeys, + appLimit: appLimitKeys, + orgLimitAggregate: orgLimitAggregateKeys, orgMemberProfile: orgMemberProfileKeys, - orgMembershipSetting: orgMembershipSettingKeys, + orgLimit: orgLimitKeys, appLevel: appLevelKeys, appInvite: appInviteKeys, + orgMembershipSetting: orgMembershipSettingKeys, orgInvite: orgInviteKeys, appMembership: appMembershipKeys, orgMembership: orgMembershipKeys, diff --git a/sdk/constructive-react/src/admin/orm/README.md b/sdk/constructive-react/src/admin/orm/README.md index bcc713ea6..99ee4b492 100644 --- a/sdk/constructive-react/src/admin/orm/README.md +++ b/sdk/constructive-react/src/admin/orm/README.md @@ -31,27 +31,30 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | @@ -381,66 +384,72 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appAchievement` -CRUD operations for AppLimitDefault records. +CRUD operations for AppAchievement records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appAchievement records +const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appStep` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appStep records +const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -513,139 +522,102 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.membershipType` -CRUD operations for AppLimit records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | | `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appAchievement` +### `db.appLimitDefault` -CRUD operations for AppAchievement records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appAchievement records -const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appStep` +### `db.orgLimitDefault` -CRUD operations for AppStep records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appStep records -const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -685,72 +657,38 @@ const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, dat const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.appClaimedInvite` -CRUD operations for OrgLimit records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -893,6 +831,80 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgGrant` CRUD operations for OrgGrant records. @@ -965,6 +977,78 @@ const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMemberProfile` CRUD operations for OrgMemberProfile records. @@ -1004,44 +1088,41 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgLimit` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgLimit records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1096,6 +1177,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1104,13 +1186,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1119,6 +1201,48 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -1137,6 +1261,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1146,13 +1271,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1179,7 +1304,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -1191,13 +1315,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1481,23 +1605,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/admin/orm/index.ts b/sdk/constructive-react/src/admin/orm/index.ts index c8610a816..5a9d91c9b 100644 --- a/sdk/constructive-react/src/admin/orm/index.ts +++ b/sdk/constructive-react/src/admin/orm/index.ts @@ -15,27 +15,30 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgLimitModel } from './models/orgLimit'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { MembershipTypeModel } from './models/membershipType'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { OrgLimitModel } from './models/orgLimit'; import { AppLevelModel } from './models/appLevel'; import { AppInviteModel } from './models/appInvite'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgInviteModel } from './models/orgInvite'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; @@ -84,27 +87,30 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgLimit: new OrgLimitModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), membershipType: new MembershipTypeModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + orgLimit: new OrgLimitModel(client), appLevel: new AppLevelModel(client), appInvite: new AppInviteModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), orgInvite: new OrgInviteModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), diff --git a/sdk/constructive-react/src/admin/orm/input-types.ts b/sdk/constructive-react/src/admin/orm/input-types.ts index 3f1ab47a3..a0e988480 100644 --- a/sdk/constructive-react/src/admin/orm/input-types.ts +++ b/sdk/constructive-react/src/admin/orm/input-types.ts @@ -328,21 +328,27 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ +export interface AppAchievement { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Cumulative count of completed steps toward this requirement */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ +export interface AppStep { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Number of units completed in this step action */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { @@ -370,51 +376,40 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } -/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ -export interface AppAchievement { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement being tracked */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Cumulative count of completed steps toward this requirement */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } -/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ -export interface AppStep { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement this step fulfills */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Number of units completed in this step action */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -436,33 +431,17 @@ export interface OrgChartEdgeGrant { /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { +/** Records of successfully claimed invitations, linking senders to receivers */ +export interface AppClaimedInvite { id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; - entityId?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record | null; + /** User ID of the original invitation sender */ + senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { @@ -514,6 +493,48 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; @@ -545,6 +566,42 @@ export interface OrgChartEdge { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} /** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ export interface OrgMemberProfile { id: string; @@ -567,27 +624,24 @@ export interface OrgMemberProfile { /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -622,11 +676,39 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; @@ -648,6 +730,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -671,8 +755,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -741,29 +823,32 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} -export interface AppClaimedInviteRelations {} -export interface OrgChartEdgeGrantRelations {} -export interface OrgLimitRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgOwnerGrantRelations {} export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} +export interface OrgChartEdgeGrantRelations {} +export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppMembershipDefaultRelations {} export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface OrgMembershipSettingRelations {} +export interface OrgLimitRelations {} export interface AppLevelRelations {} export interface AppInviteRelations {} +export interface OrgMembershipSettingRelations {} export interface OrgInviteRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations { @@ -784,30 +869,33 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgMembershipSettingWithRelations = OrgMembershipSetting & + OrgMembershipSettingRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; @@ -875,15 +963,21 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { +export type AppAchievementSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; -export type OrgLimitDefaultSelect = { +export type AppStepSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgAdminGrantSelect = { id?: boolean; @@ -903,36 +997,25 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitSelect = { +export type MembershipTypeSelect = { id?: boolean; name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; -export type AppAchievementSelect = { +export type AppLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; -export type AppStepSelect = { +export type OrgLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -945,21 +1028,13 @@ export type OrgChartEdgeGrantSelect = { positionLevel?: boolean; createdAt?: boolean; }; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - entityId?: boolean; -}; -export type MembershipTypeSelect = { +export type AppClaimedInviteSelect = { id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type AppGrantSelect = { id?: boolean; @@ -997,6 +1072,28 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type AppLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type OrgGrantSelect = { id?: boolean; permissions?: boolean; @@ -1017,6 +1114,26 @@ export type OrgChartEdgeSelect = { positionTitle?: boolean; positionLevel?: boolean; }; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; @@ -1033,19 +1150,16 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type OrgMembershipSettingSelect = { +export type OrgLimitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1066,10 +1180,27 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; +}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1081,6 +1212,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1097,7 +1229,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -1285,33 +1416,45 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { +export interface AppAchievementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; + and?: AppAchievementFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; + or?: AppAchievementFilter[]; /** Negates the expression. */ - not?: AppLimitDefaultFilter; + not?: AppAchievementFilter; } -export interface OrgLimitDefaultFilter { +export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; + and?: AppStepFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; + or?: AppStepFilter[]; /** Negates the expression. */ - not?: OrgLimitDefaultFilter; + not?: AppStepFilter; } export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1357,81 +1500,57 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: MembershipTypeFilter; } -export interface AppAchievementFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppAchievementFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppAchievementFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppAchievementFilter; + not?: AppLimitDefaultFilter; } -export interface AppStepFilter { +export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppStepFilter[]; - /** Checks for any expressions in this list. */ - or?: AppStepFilter[]; - /** Negates the expression. */ - not?: AppStepFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; + and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; + or?: OrgLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppClaimedInviteFilter; + not?: OrgLimitDefaultFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1459,45 +1578,23 @@ export interface OrgChartEdgeGrantFilter { /** Negates the expression. */ not?: OrgChartEdgeGrantFilter; } -export interface OrgLimitFilter { +export interface AppClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppClaimedInviteFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppClaimedInviteFilter; } export interface AppGrantFilter { /** Filter by the object’s `id` field. */ @@ -1585,6 +1682,58 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1633,6 +1782,54 @@ export interface OrgChartEdgeFilter { /** Negates the expression. */ not?: OrgChartEdgeFilter; } +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1665,37 +1862,31 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgMembershipSettingFilter { +export interface OrgLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgLimitFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgLimitFilter; } export interface AppLevelFilter { /** Filter by the object’s `id` field. */ @@ -1736,6 +1927,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1749,6 +1942,42 @@ export interface AppInviteFilter { /** Negates the expression. */ not?: AppInviteFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; +} export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1768,6 +1997,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1804,8 +2035,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -2000,26 +2229,38 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = +export type AppAchievementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2056,7 +2297,7 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2064,60 +2305,38 @@ export type AppLimitOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppAchievementOrderBy = + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppStepOrderBy = + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2140,38 +2359,22 @@ export type OrgChartEdgeGrantOrderBy = | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type MembershipTypeOrderBy = +export type AppClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2244,6 +2447,46 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2284,6 +2527,46 @@ export type OrgChartEdgeOrderBy = | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2310,34 +2593,28 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ENTITY_ID_DESC'; export type AppLevelOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2378,12 +2655,46 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2408,6 +2719,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2440,8 +2753,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -2713,43 +3024,47 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppAchievementInput { clientMutationId?: string; - appLimitDefault: { + appAchievement: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface AppLimitDefaultPatch { +export interface AppAchievementPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppAchievementInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + appAchievementPatch: AppAchievementPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppStepInput { clientMutationId?: string; - orgLimitDefault: { + appStep: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface OrgLimitDefaultPatch { +export interface AppStepPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppStepInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appStepPatch: AppStepPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } @@ -2801,93 +3116,73 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppLimitPatch { +export interface MembershipTypePatch { name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppLimitInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppLimitInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateAppAchievementInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - appAchievement: { - actorId?: string; + appLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppAchievementPatch { - actorId?: string | null; +export interface AppLimitDefaultPatch { name?: string | null; - count?: number | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppAchievementInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - appAchievementPatch: AppAchievementPatch; + appLimitDefaultPatch: AppLimitDefaultPatch; } -export interface DeleteAppAchievementInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppStepInput { +export interface CreateOrgLimitDefaultInput { clientMutationId?: string; - appStep: { - actorId?: string; + orgLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppStepPatch { - actorId?: string | null; +export interface OrgLimitDefaultPatch { name?: string | null; - count?: number | null; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - appStepPatch: AppStepPatch; -} -export interface DeleteAppStepInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppClaimedInviteInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } @@ -2921,58 +3216,28 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgLimitInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgLimitPatch: OrgLimitPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgLimitInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { @@ -3069,6 +3334,74 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { @@ -3121,7 +3454,67 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMemberProfileInput { clientMutationId?: string; orgMemberProfile: { membershipId: string; @@ -3154,37 +3547,35 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgLimitInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgLimitPatch: OrgLimitPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -3224,6 +3615,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -3236,6 +3628,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -3247,6 +3640,44 @@ export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { @@ -3259,6 +3690,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -3273,6 +3705,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -3295,7 +3728,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -3312,7 +3744,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -3405,10 +3836,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3418,6 +3845,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -3530,6 +3982,25 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { @@ -3615,8 +4086,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -3624,20 +4093,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -4021,94 +4476,94 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; export interface CreateOrgAdminGrantPayload { @@ -4201,184 +4656,139 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppAchievementPayload { - clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export type CreateAppAchievementPayloadSelect = { - clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; - }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; - }; -}; -export interface UpdateAppAchievementPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppStepPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was created by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateAppStepPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateAppStepPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was updated by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateAppStepPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateAppClaimedInvitePayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateAppClaimedInvitePayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateAppClaimedInvitePayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateAppClaimedInvitePayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteAppClaimedInvitePayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteAppClaimedInvitePayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -4426,94 +4836,49 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { +export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was created by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was updated by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was deleted by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; export interface CreateAppGrantPayload { @@ -4696,6 +5061,28 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; +}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -4756,34 +5143,124 @@ export type CreateOrgChartEdgePayloadSelect = { select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; export interface CreateOrgMemberProfilePayload { @@ -4831,49 +5308,49 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; export interface CreateAppLevelPayload { @@ -4966,6 +5443,51 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -5214,28 +5736,28 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; } -export type AppLimitDefaultEdgeSelect = { +export type AppAchievementEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: AppAchievementSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; } -export type OrgLimitDefaultEdgeSelect = { +export type AppStepEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: AppStepSelect; }; }; /** A `OrgAdminGrant` edge in the connection. */ @@ -5262,52 +5784,40 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppAchievement` edge in the connection. */ -export interface AppAchievementEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppAchievement` at the end of the edge. */ - node?: AppAchievement | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppAchievementEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppAchievementSelect; + select: MembershipTypeSelect; }; }; -/** A `AppStep` edge in the connection. */ -export interface AppStepEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `AppStep` at the end of the edge. */ - node?: AppStep | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type AppStepEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppStepSelect; + select: AppLimitDefaultSelect; }; }; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } -export type AppClaimedInviteEdgeSelect = { +export type OrgLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppClaimedInviteSelect; + select: OrgLimitDefaultSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -5322,28 +5832,16 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppClaimedInvite` edge in the connection. */ +export interface AppClaimedInviteEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppClaimedInvite` at the end of the edge. */ + node?: AppClaimedInvite | null; } -export type MembershipTypeEdgeSelect = { +export type AppClaimedInviteEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppClaimedInviteSelect; }; }; /** A `AppGrant` edge in the connection. */ @@ -5418,6 +5916,30 @@ export type OrgChartEdgeEdgeSelect = { select: OrgChartEdgeSelect; }; }; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -5430,16 +5952,16 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgLimitSelect; }; }; /** A `AppLevel` edge in the connection. */ @@ -5466,6 +5988,18 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/index.ts b/sdk/constructive-react/src/admin/orm/models/index.ts index 061bbd234..1b903645a 100644 --- a/sdk/constructive-react/src/admin/orm/models/index.ts +++ b/sdk/constructive-react/src/admin/orm/models/index.ts @@ -13,27 +13,30 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgLimitModel } from './orgLimit'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { MembershipTypeModel } from './membershipType'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { OrgLimitModel } from './orgLimit'; export { AppLevelModel } from './appLevel'; export { AppInviteModel } from './appInvite'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgInviteModel } from './orgInvite'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-react/src/admin/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/admin/orm/mutation/index.ts b/sdk/constructive-react/src/admin/orm/mutation/index.ts index e26ce5c85..cbc1459ea 100644 --- a/sdk/constructive-react/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-react/src/admin/orm/mutation/index.ts @@ -10,17 +10,14 @@ import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -40,15 +37,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -148,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/admin/schema-types.ts b/sdk/constructive-react/src/admin/schema-types.ts index 176b675ae..c3a79c28f 100644 --- a/sdk/constructive-react/src/admin/schema-types.ts +++ b/sdk/constructive-react/src/admin/schema-types.ts @@ -14,6 +14,7 @@ import type { AppLevelRequirement, AppLimit, AppLimitDefault, + AppLimitEvent, AppMembership, AppMembershipDefault, AppOwnerGrant, @@ -30,7 +31,9 @@ import type { OrgGrant, OrgInvite, OrgLimit, + OrgLimitAggregate, OrgLimitDefault, + OrgLimitEvent, OrgMember, OrgMemberProfile, OrgMembership, @@ -92,6 +95,36 @@ export type OrgPermissionDefaultOrderBy = | 'PERMISSIONS_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; /** Methods to use when ordering `AppAdminGrant`. */ export type AppAdminGrantOrderBy = | 'NATURAL' @@ -126,28 +159,40 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = +/** Methods to use when ordering `AppAchievement`. */ +export type AppAchievementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `AppStep`. */ +export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `OrgAdminGrant`. */ export type OrgAdminGrantOrderBy = | 'NATURAL' @@ -186,23 +231,8 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -210,14 +240,16 @@ export type OrgPermissionOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppLimit`. */ -export type AppLimitOrderBy = + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -225,59 +257,40 @@ export type AppLimitOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `AppAchievement`. */ -export type AppAchievementOrderBy = + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppStep`. */ -export type AppStepOrderBy = + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `AppLevelRequirement`. */ +export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -/** Methods to use when ordering `AppClaimedInvite`. */ -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'REQUIRED_COUNT_ASC' + | 'REQUIRED_COUNT_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' @@ -305,40 +318,23 @@ export type OrgChartEdgeGrantOrderBy = | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `OrgLimit`. */ -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = +/** Methods to use when ordering `AppClaimedInvite`. */ +export type AppClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `AppGrant`. */ export type AppGrantOrderBy = | 'NATURAL' @@ -415,6 +411,48 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; /** Methods to use when ordering `OrgGrant`. */ export type OrgGrantOrderBy = | 'NATURAL' @@ -457,8 +495,8 @@ export type OrgChartEdgeOrderBy = | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC'; -/** Methods to use when ordering `AppLevelRequirement`. */ -export type AppLevelRequirementOrderBy = +/** Methods to use when ordering `AppLimit`. */ +export type AppLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -466,18 +504,39 @@ export type AppLevelRequirementOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'LEVEL_ASC' - | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; +/** Methods to use when ordering `OrgLimitAggregate`. */ +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; /** Methods to use when ordering `OrgMemberProfile`. */ export type OrgMemberProfileOrderBy = | 'NATURAL' @@ -505,35 +564,29 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = +/** Methods to use when ordering `OrgLimit`. */ +export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ENTITY_ID_DESC'; /** Methods to use when ordering `AppLevel`. */ export type AppLevelOrderBy = | 'NATURAL' @@ -576,12 +629,47 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +/** Methods to use when ordering `OrgMembershipSetting`. */ +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; /** Methods to use when ordering `OrgInvite`. */ export type OrgInviteOrderBy = | 'NATURAL' @@ -607,6 +695,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -640,8 +730,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -740,6 +828,44 @@ export interface OrgPermissionDefaultFilter { /** Negates the expression. */ not?: OrgPermissionDefaultFilter; } +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} /** A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface AppAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -782,35 +908,47 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { +/** A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppAchievementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; + and?: AppAchievementFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; + or?: AppAchievementFilter[]; /** Negates the expression. */ - not?: AppLimitDefaultFilter; + not?: AppAchievementFilter; } -/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitDefaultFilter { +/** A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ */ +export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; + and?: AppStepFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; + or?: AppStepFilter[]; /** Negates the expression. */ - not?: OrgLimitDefaultFilter; + not?: AppStepFilter; } /** A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgAdminGrantFilter { @@ -858,104 +996,112 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: AppPermissionFilter; + not?: MembershipTypeFilter; } -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: OrgPermissionFilter; + not?: AppLimitDefaultFilter; } -/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitFilter { +/** A filter to be used against `OrgLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: OrgLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: OrgLimitDefaultFilter; } -/** A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ */ -export interface AppAchievementFilter { +/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelRequirementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; + /** Filter by the object’s `level` field. */ + level?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `requiredCount` field. */ + requiredCount?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppAchievementFilter[]; + and?: AppLevelRequirementFilter[]; /** Checks for any expressions in this list. */ - or?: AppAchievementFilter[]; + or?: AppLevelRequirementFilter[]; /** Negates the expression. */ - not?: AppAchievementFilter; + not?: AppLevelRequirementFilter; } -/** A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ */ -export interface AppStepFilter { +/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `childId` field. */ + childId?: UUIDFilter; + /** Filter by the object’s `parentId` field. */ + parentId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; + /** Filter by the object’s `isGrant` field. */ + isGrant?: BooleanFilter; + /** Filter by the object’s `positionTitle` field. */ + positionTitle?: StringFilter; + /** Filter by the object’s `positionLevel` field. */ + positionLevel?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppStepFilter[]; + and?: OrgChartEdgeGrantFilter[]; /** Checks for any expressions in this list. */ - or?: AppStepFilter[]; + or?: OrgChartEdgeGrantFilter[]; /** Negates the expression. */ - not?: AppStepFilter; + not?: OrgChartEdgeGrantFilter; } /** A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ */ export interface AppClaimedInviteFilter { @@ -976,97 +1122,28 @@ export interface AppClaimedInviteFilter { /** Negates the expression. */ not?: AppClaimedInviteFilter; } -/** A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgChartEdgeGrantFilter { +/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ +export interface AppGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `childId` field. */ - childId?: UUIDFilter; - /** Filter by the object’s `parentId` field. */ - parentId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; /** Filter by the object’s `isGrant` field. */ isGrant?: BooleanFilter; - /** Filter by the object’s `positionTitle` field. */ - positionTitle?: StringFilter; - /** Filter by the object’s `positionLevel` field. */ - positionLevel?: IntFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `grantorId` field. */ + grantorId?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: OrgChartEdgeGrantFilter[]; + and?: AppGrantFilter[]; /** Checks for any expressions in this list. */ - or?: OrgChartEdgeGrantFilter[]; + or?: AppGrantFilter[]; /** Negates the expression. */ - not?: OrgChartEdgeGrantFilter; -} -/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgLimitFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; - /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; - /** Negates the expression. */ - not?: MembershipTypeFilter; -} -/** A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ */ -export interface AppGrantFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Filter by the object’s `isGrant` field. */ - isGrant?: BooleanFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `grantorId` field. */ - grantorId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppGrantFilter[]; - /** Checks for any expressions in this list. */ - or?: AppGrantFilter[]; - /** Negates the expression. */ - not?: AppGrantFilter; + not?: AppGrantFilter; } /** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ export interface AppMembershipDefaultFilter { @@ -1135,6 +1212,60 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } +/** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +/** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} /** A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ */ export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ @@ -1185,30 +1316,99 @@ export interface OrgChartEdgeFilter { /** Negates the expression. */ not?: OrgChartEdgeFilter; } -/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelRequirementFilter { +/** A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; + and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; + or?: AppLimitFilter[]; /** Negates the expression. */ - not?: AppLevelRequirementFilter; + not?: AppLimitFilter; +} +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; } /** A filter to be used against `OrgMemberProfile` object types. All fields are combined with a logical ‘and.’ */ export interface OrgMemberProfileFilter { @@ -1327,38 +1527,32 @@ export interface OrgMembershipFilter { /** A related `orgMemberProfileByMembershipId` exists. */ orgMemberProfileByMembershipIdExists?: boolean; } -/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgMembershipSettingFilter { +/** A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgLimitFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgLimitFilter; } /** A filter to be used against `AppLevel` object types. All fields are combined with a logical ‘and.’ */ export interface AppLevelFilter { @@ -1401,6 +1595,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1491,6 +1687,43 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; +} /** A filter to be used against `OrgInvite` object types. All fields are combined with a logical ‘and.’ */ export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ @@ -1511,6 +1744,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1548,8 +1783,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -1616,6 +1849,40 @@ export interface OrgPermissionDefaultInput { /** References the entity these default permissions apply to */ entityId: string; } +export interface CreateAppPermissionInput { + clientMutationId?: string; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; +} +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} export interface CreateAppAdminGrantInput { clientMutationId?: string; /** The `AppAdminGrant` to be created by this mutation. */ @@ -1648,31 +1915,37 @@ export interface AppOwnerGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppAchievementInput { clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; + /** The `AppAchievement` to be created by this mutation. */ + appAchievement: AppAchievementInput; } -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { +/** An input for mutations affecting `AppAchievement` */ +export interface AppAchievementInput { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement being tracked */ name: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppStepInput { clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; + /** The `AppStep` to be created by this mutation. */ + appStep: AppStepInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `AppStep` */ +export interface AppStepInput { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Number of units completed in this step action */ + count?: number; + createdAt?: string; + updatedAt?: string; } export interface CreateOrgAdminGrantInput { clientMutationId?: string; @@ -1710,103 +1983,74 @@ export interface OrgOwnerGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppPermissionInput { - clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; -} -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateOrgPermissionInput { - clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; -} -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface CreateAppLimitInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ + name: string; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } -export interface CreateAppAchievementInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - /** The `AppAchievement` to be created by this mutation. */ - appAchievement: AppAchievementInput; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; } -/** An input for mutations affecting `AppAchievement` */ -export interface AppAchievementInput { +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { id?: string; - actorId?: string; - /** Name identifier of the level requirement being tracked */ + /** Name identifier of the limit this default applies to */ name: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - updatedAt?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface CreateAppStepInput { +export interface CreateOrgLimitDefaultInput { clientMutationId?: string; - /** The `AppStep` to be created by this mutation. */ - appStep: AppStepInput; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; } -/** An input for mutations affecting `AppStep` */ -export interface AppStepInput { +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { id?: string; - actorId?: string; - /** Name identifier of the level requirement this step fulfills */ + /** Name identifier of the limit this default applies to */ name: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - updatedAt?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface CreateAppClaimedInviteInput { +export interface CreateAppLevelRequirementInput { clientMutationId?: string; - /** The `AppClaimedInvite` to be created by this mutation. */ - appClaimedInvite: AppClaimedInviteInput; + /** The `AppLevelRequirement` to be created by this mutation. */ + appLevelRequirement: AppLevelRequirementInput; } -/** An input for mutations affecting `AppClaimedInvite` */ -export interface AppClaimedInviteInput { +/** An input for mutations affecting `AppLevelRequirement` */ +export interface AppLevelRequirementInput { id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; + /** Name identifier of the requirement (matches step names) */ + name: string; + /** Name of the level this requirement belongs to */ + level: string; + /** Human-readable description of what this requirement entails */ + description?: string; + /** Number of steps needed to satisfy this requirement */ + requiredCount?: number; + /** Display ordering priority; lower values appear first */ + priority?: number; createdAt?: string; updatedAt?: string; } @@ -1835,44 +2079,23 @@ export interface OrgChartEdgeGrantInput { /** Timestamp when this grant or revocation was recorded */ createdAt?: string; } -export interface CreateOrgLimitInput { - clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; -} -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; - entityId: string; -} -export interface CreateMembershipTypeInput { - clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; -} -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; -} +export interface CreateAppClaimedInviteInput { + clientMutationId?: string; + /** The `AppClaimedInvite` to be created by this mutation. */ + appClaimedInvite: AppClaimedInviteInput; +} +/** An input for mutations affecting `AppClaimedInvite` */ +export interface AppClaimedInviteInput { + id?: string; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: unknown; + /** User ID of the original invitation sender */ + senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -1943,6 +2166,58 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + /** The `AppLimitEvent` to be created by this mutation. */ + appLimitEvent: AppLimitEventInput; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + /** The `OrgLimitEvent` to be created by this mutation. */ + orgLimitEvent: OrgLimitEventInput; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} export interface CreateOrgGrantInput { clientMutationId?: string; /** The `OrgGrant` to be created by this mutation. */ @@ -1984,26 +2259,51 @@ export interface OrgChartEdgeInput { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number; } -export interface CreateAppLevelRequirementInput { +export interface CreateAppLimitInput { clientMutationId?: string; - /** The `AppLevelRequirement` to be created by this mutation. */ - appLevelRequirement: AppLevelRequirementInput; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; } -/** An input for mutations affecting `AppLevelRequirement` */ -export interface AppLevelRequirementInput { +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { id?: string; - /** Name identifier of the requirement (matches step names) */ - name: string; - /** Name of the level this requirement belongs to */ - level: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - /** Display ordering priority; lower values appear first */ - priority?: number; - createdAt?: string; - updatedAt?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + /** The `OrgLimitAggregate` to be created by this mutation. */ + orgLimitAggregate: OrgLimitAggregateInput; +} +/** An input for mutations affecting `OrgLimitAggregate` */ +export interface OrgLimitAggregateInput { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; } export interface CreateOrgMemberProfileInput { clientMutationId?: string; @@ -2032,32 +2332,29 @@ export interface OrgMemberProfileInput { /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgLimitInput { clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; } -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; } export interface CreateAppLevelInput { clientMutationId?: string; @@ -2102,11 +2399,44 @@ export interface AppInviteInput { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; +} +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface CreateOrgInviteInput { clientMutationId?: string; /** The `OrgInvite` to be created by this mutation. */ @@ -2133,6 +2463,8 @@ export interface OrgInviteInput { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; @@ -2161,8 +2493,6 @@ export interface AppMembershipInput { isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -2255,6 +2585,42 @@ export interface OrgPermissionDefaultPatch { /** References the entity these default permissions apply to */ entityId?: string; } +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; +} +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} export interface UpdateAppAdminGrantInput { clientMutationId?: string; id: string; @@ -2289,33 +2655,39 @@ export interface AppOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppAchievementInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; + /** An object where the defined keys will be set on the `AppAchievement` being updated. */ + appAchievementPatch: AppAchievementPatch; } -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { +/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ +export interface AppAchievementPatch { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppStepInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; + /** An object where the defined keys will be set on the `AppStep` being updated. */ + appStepPatch: AppStepPatch; } -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { +/** Represents an update to a `AppStep`. Fields that are set will be updated. */ +export interface AppStepPatch { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Number of units completed in this step action */ + count?: number; + createdAt?: string; + updatedAt?: string; } export interface UpdateOrgAdminGrantInput { clientMutationId?: string; @@ -2355,109 +2727,79 @@ export interface OrgOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppPermissionInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; -} -export interface UpdateOrgPermissionInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; } -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ + /** Description of what this membership type represents */ description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } -export interface UpdateAppLimitInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; -} -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; -} -export interface UpdateAppAchievementInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppAchievement` being updated. */ - appAchievementPatch: AppAchievementPatch; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; } -/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ -export interface AppAchievementPatch { +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { id?: string; - actorId?: string; - /** Name identifier of the level requirement being tracked */ + /** Name identifier of the limit this default applies to */ name?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - updatedAt?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface UpdateAppStepInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppStep` being updated. */ - appStepPatch: AppStepPatch; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -/** Represents an update to a `AppStep`. Fields that are set will be updated. */ -export interface AppStepPatch { +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { id?: string; - actorId?: string; - /** Name identifier of the level requirement this step fulfills */ + /** Name identifier of the limit this default applies to */ name?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - updatedAt?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } -export interface UpdateAppClaimedInviteInput { +export interface UpdateAppLevelRequirementInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ - appClaimedInvitePatch: AppClaimedInvitePatch; + /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ + appLevelRequirementPatch: AppLevelRequirementPatch; } -/** Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. */ -export interface AppClaimedInvitePatch { +/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ +export interface AppLevelRequirementPatch { id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; + /** Name identifier of the requirement (matches step names) */ + name?: string; + /** Name of the level this requirement belongs to */ + level?: string; + /** Human-readable description of what this requirement entails */ + description?: string; + /** Number of steps needed to satisfy this requirement */ + requiredCount?: number; + /** Display ordering priority; lower values appear first */ + priority?: number; createdAt?: string; updatedAt?: string; } @@ -2487,46 +2829,23 @@ export interface OrgChartEdgeGrantPatch { /** Timestamp when this grant or revocation was recorded */ createdAt?: string; } -export interface UpdateOrgLimitInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; + /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ + appClaimedInvitePatch: AppClaimedInvitePatch; } -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { +/** Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. */ +export interface AppClaimedInvitePatch { id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; - entityId?: string; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; -} -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: unknown; + /** User ID of the original invitation sender */ + senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string; + createdAt?: string; + updatedAt?: string; } export interface UpdateAppGrantInput { clientMutationId?: string; @@ -2645,27 +2964,53 @@ export interface OrgChartEdgePatch { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number; } -export interface UpdateAppLevelRequirementInput { +export interface UpdateAppLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ - appLevelRequirementPatch: AppLevelRequirementPatch; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; } -/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ -export interface AppLevelRequirementPatch { +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { id?: string; - /** Name identifier of the requirement (matches step names) */ + /** Name identifier of the limit being tracked */ name?: string; - /** Name of the level this requirement belongs to */ - level?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - /** Display ordering priority; lower values appear first */ - priority?: number; - createdAt?: string; - updatedAt?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ +export interface OrgLimitAggregatePatch { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; } export interface UpdateOrgMemberProfileInput { clientMutationId?: string; @@ -2697,33 +3042,30 @@ export interface OrgMemberProfilePatch { /** Upload for Profile picture visible to other entity members */ profilePictureUpload?: File; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; } -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; } export interface UpdateAppLevelInput { clientMutationId?: string; @@ -2772,11 +3114,45 @@ export interface AppInvitePatch { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; } +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; @@ -2804,6 +3180,8 @@ export interface OrgInvitePatch { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; @@ -2833,8 +3211,6 @@ export interface AppMembershipPatch { isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -2898,51 +3274,52 @@ export interface DeleteOrgPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppAdminGrantInput { +export interface DeleteAppPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppOwnerGrantInput { +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgAdminGrantInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface DeleteOrgOwnerGrantInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteOrgAdminGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; } -export interface DeleteAppAchievementInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppStepInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteAppLevelRequirementInput { clientMutationId?: string; id: string; } @@ -2950,15 +3327,10 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; -} export interface DeleteAppGrantInput { clientMutationId?: string; id: string; @@ -2983,7 +3355,11 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteAppLevelRequirementInput { +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitAggregateInput { clientMutationId?: string; id: string; } @@ -2991,7 +3367,7 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -3003,6 +3379,10 @@ export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; @@ -3034,10 +3414,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3117,17 +3493,17 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `AppAchievement` values. */ +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `AppStep` values. */ +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3145,31 +3521,24 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppAchievement` values. */ -export interface AppAchievementConnection { - nodes: AppAchievement[]; - edges: AppAchievementEdge[]; +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppStep` values. */ -export interface AppStepConnection { - nodes: AppStep[]; - edges: AppStepEdge[]; +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppClaimedInvite` values. */ -export interface AppClaimedInviteConnection { - nodes: AppClaimedInvite[]; - edges: AppClaimedInviteEdge[]; +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3180,17 +3549,10 @@ export interface OrgChartEdgeGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AppClaimedInvite` values. */ +export interface AppClaimedInviteConnection { + nodes: AppClaimedInvite[]; + edges: AppClaimedInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3222,6 +3584,20 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitEvent` values. */ +export interface AppLimitEventConnection { + nodes: AppLimitEvent[]; + edges: AppLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitEvent` values. */ +export interface OrgLimitEventConnection { + nodes: OrgLimitEvent[]; + edges: OrgLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgGrant` values. */ export interface OrgGrantConnection { nodes: OrgGrant[]; @@ -3236,6 +3612,20 @@ export interface OrgChartEdgeConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitAggregate` values. */ +export interface OrgLimitAggregateConnection { + nodes: OrgLimitAggregate[]; + edges: OrgLimitAggregateEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgMemberProfile` values. */ export interface OrgMemberProfileConnection { nodes: OrgMemberProfile[]; @@ -3243,10 +3633,10 @@ export interface OrgMemberProfileConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -3264,6 +3654,13 @@ export interface AppInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgInvite` values. */ export interface OrgInviteConnection { nodes: OrgInvite[]; @@ -3315,6 +3712,18 @@ export interface CreateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} export interface CreateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was created by this mutation. */ @@ -3327,17 +3736,17 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateAppLimitDefaultPayload { +export interface CreateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } export interface CreateOrgAdminGrantPayload { clientMutationId?: string | null; @@ -3351,41 +3760,29 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface CreateAppAchievementPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface CreateAppStepPayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was created by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface CreateAppClaimedInvitePayload { +export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface CreateOrgChartEdgeGrantPayload { clientMutationId?: string | null; @@ -3393,17 +3790,11 @@ export interface CreateOrgChartEdgeGrantPayload { orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface CreateMembershipTypePayload { +export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was created by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } export interface CreateAppGrantPayload { clientMutationId?: string | null; @@ -3429,6 +3820,16 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; +} +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; +} export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -3441,11 +3842,17 @@ export interface CreateOrgChartEdgePayload { orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface CreateAppLevelRequirementPayload { +export interface CreateAppLimitPayload { clientMutationId?: string | null; - /** The `AppLevelRequirement` that was created by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; @@ -3453,11 +3860,11 @@ export interface CreateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface CreateAppLevelPayload { clientMutationId?: string | null; @@ -3471,6 +3878,12 @@ export interface CreateAppInvitePayload { appInvite?: AppInvite | null; appInviteEdge?: AppInviteEdge | null; } +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -3507,6 +3920,18 @@ export interface UpdateOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} export interface UpdateAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was updated by this mutation. */ @@ -3519,17 +3944,17 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } export interface UpdateOrgAdminGrantPayload { clientMutationId?: string | null; @@ -3543,41 +3968,29 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface UpdateAppAchievementPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface UpdateAppStepPayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was updated by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface UpdateAppClaimedInvitePayload { +export interface UpdateAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface UpdateOrgChartEdgeGrantPayload { clientMutationId?: string | null; @@ -3585,17 +3998,11 @@ export interface UpdateOrgChartEdgeGrantPayload { orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface UpdateMembershipTypePayload { +export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was updated by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } export interface UpdateAppGrantPayload { clientMutationId?: string | null; @@ -3633,11 +4040,17 @@ export interface UpdateOrgChartEdgePayload { orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface UpdateAppLevelRequirementPayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `AppLevelRequirement` that was updated by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; @@ -3645,11 +4058,11 @@ export interface UpdateOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface UpdateAppLevelPayload { clientMutationId?: string | null; @@ -3663,6 +4076,12 @@ export interface UpdateAppInvitePayload { appInvite?: AppInvite | null; appInviteEdge?: AppInviteEdge | null; } +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface UpdateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was updated by this mutation. */ @@ -3699,6 +4118,18 @@ export interface DeleteOrgPermissionDefaultPayload { orgPermissionDefault?: OrgPermissionDefault | null; orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; } +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} export interface DeleteAppAdminGrantPayload { clientMutationId?: string | null; /** The `AppAdminGrant` that was deleted by this mutation. */ @@ -3711,17 +4142,17 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } export interface DeleteOrgAdminGrantPayload { clientMutationId?: string | null; @@ -3735,41 +4166,29 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export interface DeleteAppAchievementPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export interface DeleteAppStepPayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export interface DeleteAppClaimedInvitePayload { +export interface DeleteAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface DeleteOrgChartEdgeGrantPayload { clientMutationId?: string | null; @@ -3777,17 +4196,11 @@ export interface DeleteOrgChartEdgeGrantPayload { orgChartEdgeGrant?: OrgChartEdgeGrant | null; orgChartEdgeGrantEdge?: OrgChartEdgeGrantEdge | null; } -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export interface DeleteMembershipTypePayload { +export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was deleted by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } export interface DeleteAppGrantPayload { clientMutationId?: string | null; @@ -3825,11 +4238,17 @@ export interface DeleteOrgChartEdgePayload { orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface DeleteAppLevelRequirementPayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `AppLevelRequirement` that was deleted by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; @@ -3837,11 +4256,11 @@ export interface DeleteOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } export interface DeleteAppLevelPayload { clientMutationId?: string | null; @@ -3855,6 +4274,12 @@ export interface DeleteAppInvitePayload { appInvite?: AppInvite | null; appInviteEdge?: AppInviteEdge | null; } +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface DeleteOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was deleted by this mutation. */ @@ -3884,16 +4309,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; -} -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; } export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -3980,17 +4395,17 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; } -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; } /** A `OrgAdminGrant` edge in the connection. */ export interface OrgAdminGrantEdge { @@ -4004,29 +4419,23 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `AppAchievement` edge in the connection. */ -export interface AppAchievementEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppAchievement` at the end of the edge. */ - node?: AppAchievement | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -/** A `AppStep` edge in the connection. */ -export interface AppStepEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `AppStep` at the end of the edge. */ - node?: AppStep | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } /** A `OrgChartEdgeGrant` edge in the connection. */ export interface OrgChartEdgeGrantEdge { @@ -4034,17 +4443,11 @@ export interface OrgChartEdgeGrantEdge { /** The `OrgChartEdgeGrant` at the end of the edge. */ node?: OrgChartEdgeGrant | null; } -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppClaimedInvite` edge in the connection. */ +export interface AppClaimedInviteEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppClaimedInvite` at the end of the edge. */ + node?: AppClaimedInvite | null; } /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { @@ -4070,6 +4473,18 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} /** A `OrgGrant` edge in the connection. */ export interface OrgGrantEdge { cursor?: string | null; @@ -4082,17 +4497,29 @@ export interface OrgChartEdgeEdge { /** The `OrgChartEdge` at the end of the edge. */ node?: OrgChartEdge | null; } +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; /** The `OrgMemberProfile` at the end of the edge. */ node?: OrgMemberProfile | null; } -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } /** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { @@ -4106,6 +4533,12 @@ export interface AppInviteEdge { /** The `AppInvite` at the end of the edge. */ node?: AppInvite | null; } +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/admin/types.ts b/sdk/constructive-react/src/admin/types.ts index 0897ae859..de012d57a 100644 --- a/sdk/constructive-react/src/admin/types.ts +++ b/sdk/constructive-react/src/admin/types.ts @@ -68,15 +68,21 @@ export interface AppOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppLimitDefault { +export interface AppAchievement { id: string | null; + actorId: string | null; name: string | null; - max: number | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; } -export interface OrgLimitDefault { +export interface AppStep { id: string | null; + actorId: string | null; name: string | null; - max: number | null; + count: number | null; + createdAt: string | null; + updatedAt: string | null; } export interface OrgAdminGrant { id: string | null; @@ -96,36 +102,25 @@ export interface OrgOwnerGrant { createdAt: string | null; updatedAt: string | null; } -export interface AppLimit { - id: string | null; +export interface MembershipType { + id: number | null; name: string | null; - actorId: string | null; - num: number | null; - max: number | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; } -export interface AppAchievement { +export interface AppLimitDefault { id: string | null; - actorId: string | null; name: string | null; - count: number | null; - createdAt: string | null; - updatedAt: string | null; + max: string | null; + softMax: string | null; } -export interface AppStep { +export interface OrgLimitDefault { id: string | null; - actorId: string | null; name: string | null; - count: number | null; - createdAt: string | null; - updatedAt: string | null; -} -export interface AppClaimedInvite { - id: string | null; - data: unknown | null; - senderId: string | null; - receiverId: string | null; - createdAt: string | null; - updatedAt: string | null; + max: string | null; + softMax: string | null; } export interface OrgChartEdgeGrant { id: string | null; @@ -138,21 +133,13 @@ export interface OrgChartEdgeGrant { positionLevel: number | null; createdAt: string | null; } -export interface OrgLimit { +export interface AppClaimedInvite { id: string | null; - name: string | null; - actorId: string | null; - num: number | null; - max: number | null; - entityId: string | null; -} -export interface MembershipType { - id: number | null; - name: string | null; - description: string | null; - prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; + data: unknown | null; + senderId: string | null; + receiverId: string | null; + createdAt: string | null; + updatedAt: string | null; } export interface AppGrant { id: string | null; @@ -190,6 +177,28 @@ export interface OrgClaimedInvite { updatedAt: string | null; entityId: string | null; } +export interface AppLimitEvent { + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface OrgLimitEvent { + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} export interface OrgGrant { id: string | null; permissions: string | null; @@ -210,6 +219,26 @@ export interface OrgChartEdge { positionTitle: string | null; positionLevel: number | null; } +export interface AppLimit { + id: string | null; + name: string | null; + actorId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; +} +export interface OrgLimitAggregate { + id: string | null; + name: string | null; + entityId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; +} export interface OrgMemberProfile { id: string | null; createdAt: string | null; @@ -223,19 +252,16 @@ export interface OrgMemberProfile { bio: string | null; profilePicture: ConstructiveInternalTypeImage | null; } -export interface OrgMembershipSetting { +export interface OrgLimit { id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; + name: string | null; + actorId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - populateMemberEmail: boolean | null; } export interface AppLevel { id: string | null; @@ -256,10 +282,27 @@ export interface AppInvite { inviteCount: number | null; multiple: boolean | null; data: unknown | null; + profileId: string | null; expiresAt: string | null; createdAt: string | null; updatedAt: string | null; } +export interface OrgMembershipSetting { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; +} export interface OrgInvite { id: string | null; email: ConstructiveInternalTypeEmail | null; @@ -271,6 +314,7 @@ export interface OrgInvite { inviteCount: number | null; multiple: boolean | null; data: unknown | null; + profileId: string | null; expiresAt: string | null; createdAt: string | null; updatedAt: string | null; @@ -287,7 +331,6 @@ export interface AppMembership { isDisabled: boolean | null; isVerified: boolean | null; isActive: boolean | null; - isExternal: boolean | null; isOwner: boolean | null; isAdmin: boolean | null; permissions: string | null; diff --git a/sdk/constructive-react/src/auth/README.md b/sdk/constructive-react/src/auth/README.md index 6abe0f293..4e8146856 100644 --- a/sdk/constructive-react/src/auth/README.md +++ b/sdk/constructive-react/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 9 - **Custom queries:** 5 -- **Custom mutations:** 24 +- **Custom mutations:** 23 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/auth/hooks/README.md b/sdk/constructive-react/src/auth/hooks/README.md index 807d7f6b6..d5876b9cb 100644 --- a/sdk/constructive-react/src/auth/hooks/README.md +++ b/sdk/constructive-react/src/auth/hooks/README.md @@ -104,9 +104,6 @@ function App() { Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `useConfirmUploadMutation` | Mutation | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -583,19 +580,6 @@ existing file ID and deduplicated=true with no uploadUrl. |----------|------| | `input` | RequestUploadUrlInput (required) | -### `useConfirmUploadMutation` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts index 15706fc31..3e15f3d15 100644 --- a/sdk/constructive-react/src/auth/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/auth/hooks/mutation-keys.ts @@ -187,10 +187,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'requestUploadUrl', identifier] as const) : (['mutation', 'requestUploadUrl'] as const), - /** Mutation key for confirmUpload */ confirmUpload: (identifier?: string) => - identifier - ? (['mutation', 'confirmUpload', identifier] as const) - : (['mutation', 'confirmUpload'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) diff --git a/sdk/constructive-react/src/auth/hooks/mutations/index.ts b/sdk/constructive-react/src/auth/hooks/mutations/index.ts index 904949c86..e7fe88fc1 100644 --- a/sdk/constructive-react/src/auth/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/auth/hooks/mutations/index.ts @@ -48,5 +48,4 @@ export * from './useCreateApiKeyMutation'; export * from './useForgotPasswordMutation'; export * from './useSendVerificationEmailMutation'; export * from './useRequestUploadUrlMutation'; -export * from './useConfirmUploadMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/auth/hooks/mutations/useConfirmUploadMutation.ts b/sdk/constructive-react/src/auth/hooks/mutations/useConfirmUploadMutation.ts deleted file mode 100644 index 30caee165..000000000 --- a/sdk/constructive-react/src/auth/hooks/mutations/useConfirmUploadMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect, ConfirmUploadPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ConfirmUploadVariables } from '../../orm/mutation'; -export type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export function useConfirmUploadMutation( - params: { - selection: { - fields: S & ConfirmUploadPayloadSelect; - } & HookStrictSelect, ConfirmUploadPayloadSelect>; - } & Omit< - UseMutationOptions< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.confirmUpload(), - mutationFn: (variables: ConfirmUploadVariables) => - getClient() - .mutation.confirmUpload(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/auth/orm/README.md b/sdk/constructive-react/src/auth/orm/README.md index 6b10736b2..9188f84b8 100644 --- a/sdk/constructive-react/src/auth/orm/README.md +++ b/sdk/constructive-react/src/auth/orm/README.md @@ -755,23 +755,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/auth/orm/input-types.ts b/sdk/constructive-react/src/auth/orm/input-types.ts index eb5c48d84..a091f00d3 100644 --- a/sdk/constructive-react/src/auth/orm/input-types.ts +++ b/sdk/constructive-react/src/auth/orm/input-types.ts @@ -1368,10 +1368,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -2440,8 +2436,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -2449,20 +2443,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-react/src/auth/orm/mutation/index.ts b/sdk/constructive-react/src/auth/orm/mutation/index.ts index 1779b93ba..fa49f8830 100644 --- a/sdk/constructive-react/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-react/src/auth/orm/mutation/index.ts @@ -29,7 +29,6 @@ import type { ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, @@ -53,7 +52,6 @@ import type { ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, @@ -77,7 +75,6 @@ import type { ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -154,15 +151,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -813,35 +801,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/auth/schema-types.ts b/sdk/constructive-react/src/auth/schema-types.ts index 84ea522c5..763f75f92 100644 --- a/sdk/constructive-react/src/auth/schema-types.ts +++ b/sdk/constructive-react/src/auth/schema-types.ts @@ -1320,10 +1320,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -1628,16 +1624,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; -} -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; } export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-react/src/objects/README.md b/sdk/constructive-react/src/objects/README.md index fad7ace44..977ecad46 100644 --- a/sdk/constructive-react/src/objects/README.md +++ b/sdk/constructive-react/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 4 -- **Custom mutations:** 11 +- **Custom mutations:** 10 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/objects/hooks/README.md b/sdk/constructive-react/src/objects/hooks/README.md index 0c8c72d4f..86a2bf1ac 100644 --- a/sdk/constructive-react/src/objects/hooks/README.md +++ b/sdk/constructive-react/src/objects/hooks/README.md @@ -70,9 +70,6 @@ function App() { Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `useConfirmUploadMutation` | Mutation | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -341,19 +338,6 @@ existing file ID and deduplicated=true with no uploadUrl. |----------|------| | `input` | RequestUploadUrlInput (required) | -### `useConfirmUploadMutation` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts index d495a0c90..cdef880a9 100644 --- a/sdk/constructive-react/src/objects/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/objects/hooks/mutation-keys.ts @@ -101,10 +101,6 @@ export const customMutationKeys = { identifier ? (['mutation', 'requestUploadUrl', identifier] as const) : (['mutation', 'requestUploadUrl'] as const), - /** Mutation key for confirmUpload */ confirmUpload: (identifier?: string) => - identifier - ? (['mutation', 'confirmUpload', identifier] as const) - : (['mutation', 'confirmUpload'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) diff --git a/sdk/constructive-react/src/objects/hooks/mutations/index.ts b/sdk/constructive-react/src/objects/hooks/mutations/index.ts index 5e4206be0..799b021df 100644 --- a/sdk/constructive-react/src/objects/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/objects/hooks/mutations/index.ts @@ -25,5 +25,4 @@ export * from './useInsertNodeAtPathMutation'; export * from './useUpdateNodeAtPathMutation'; export * from './useSetAndCommitMutation'; export * from './useRequestUploadUrlMutation'; -export * from './useConfirmUploadMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/objects/hooks/mutations/useConfirmUploadMutation.ts b/sdk/constructive-react/src/objects/hooks/mutations/useConfirmUploadMutation.ts deleted file mode 100644 index 30caee165..000000000 --- a/sdk/constructive-react/src/objects/hooks/mutations/useConfirmUploadMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect, ConfirmUploadPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ConfirmUploadVariables } from '../../orm/mutation'; -export type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export function useConfirmUploadMutation( - params: { - selection: { - fields: S & ConfirmUploadPayloadSelect; - } & HookStrictSelect, ConfirmUploadPayloadSelect>; - } & Omit< - UseMutationOptions< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.confirmUpload(), - mutationFn: (variables: ConfirmUploadVariables) => - getClient() - .mutation.confirmUpload(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/objects/orm/README.md b/sdk/constructive-react/src/objects/orm/README.md index cb4e1b29d..e86aa309c 100644 --- a/sdk/constructive-react/src/objects/orm/README.md +++ b/sdk/constructive-react/src/objects/orm/README.md @@ -412,23 +412,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/objects/orm/input-types.ts b/sdk/constructive-react/src/objects/orm/input-types.ts index 5a7d7952c..67a2de15b 100644 --- a/sdk/constructive-react/src/objects/orm/input-types.ts +++ b/sdk/constructive-react/src/objects/orm/input-types.ts @@ -725,10 +725,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -829,8 +825,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -838,20 +832,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-react/src/objects/orm/mutation/index.ts b/sdk/constructive-react/src/objects/orm/mutation/index.ts index 49a83c80c..04890fb67 100644 --- a/sdk/constructive-react/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-react/src/objects/orm/mutation/index.ts @@ -16,7 +16,6 @@ import type { UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, @@ -27,7 +26,6 @@ import type { UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, @@ -38,7 +36,6 @@ import type { UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -76,15 +73,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -358,35 +346,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/objects/schema-types.ts b/sdk/constructive-react/src/objects/schema-types.ts index c49783d13..ee5fff30c 100644 --- a/sdk/constructive-react/src/objects/schema-types.ts +++ b/sdk/constructive-react/src/objects/schema-types.ts @@ -442,10 +442,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -607,16 +603,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; -} -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; } export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-react/src/public/README.md b/sdk/constructive-react/src/public/README.md index 2e77e3483..eaabc3c10 100644 --- a/sdk/constructive-react/src/public/README.md +++ b/sdk/constructive-react/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 120 +- **Tables:** 129 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 49 **Generators:** ORM, React Query diff --git a/sdk/constructive-react/src/public/hooks/README.md b/sdk/constructive-react/src/public/hooks/README.md index 77bbb1467..dd638ed92 100644 --- a/sdk/constructive-react/src/public/hooks/README.md +++ b/sdk/constructive-react/src/public/hooks/README.md @@ -38,11 +38,6 @@ function App() { | `useCreateOrgGetSubordinatesRecordMutation` | Mutation | Create a orgGetSubordinatesRecord | | `useGetAllQuery` | Query | List all getAll | | `useCreateGetAllRecordMutation` | Mutation | Create a getAllRecord | -| `useObjectsQuery` | Query | List all objects | -| `useObjectQuery` | Query | Get one object | -| `useCreateObjectMutation` | Mutation | Create a object | -| `useUpdateObjectMutation` | Mutation | Update a object | -| `useDeleteObjectMutation` | Mutation | Delete a object | | `useAppPermissionsQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useAppPermissionQuery` | Query | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useCreateAppPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | @@ -53,6 +48,11 @@ function App() { | `useCreateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useUpdateOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | | `useDeleteOrgPermissionMutation` | Mutation | Defines available permissions as named bits within a bitmask, used by the RBAC system for access control | +| `useObjectsQuery` | Query | List all objects | +| `useObjectQuery` | Query | Get one object | +| `useCreateObjectMutation` | Mutation | Create a object | +| `useUpdateObjectMutation` | Mutation | Update a object | +| `useDeleteObjectMutation` | Mutation | Delete a object | | `useAppLevelRequirementsQuery` | Query | Defines the specific requirements that must be met to achieve a level | | `useAppLevelRequirementQuery` | Query | Defines the specific requirements that must be met to achieve a level | | `useCreateAppLevelRequirementMutation` | Mutation | Defines the specific requirements that must be met to achieve a level | @@ -523,6 +523,11 @@ function App() { | `useCreateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useUpdateOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | | `useDeleteOrgLimitMutation` | Mutation | Tracks per-actor usage counts against configurable maximum limits | +| `useOrgLimitAggregatesQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useOrgLimitAggregateQuery` | Query | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useCreateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useUpdateOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | +| `useDeleteOrgLimitAggregateMutation` | Mutation | Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) | | `useAppStepsQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | | `useAppStepQuery` | Query | Log of individual user actions toward level requirements; every single step ever taken is recorded here | | `useCreateAppStepMutation` | Mutation | Log of individual user actions toward level requirements; every single step ever taken is recorded here | @@ -583,11 +588,26 @@ function App() { | `useCreateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useUpdateAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | | `useDeleteAuditLogMutation` | Mutation | Append-only audit log of authentication events (sign-in, sign-up, password changes, etc.) | -| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | -| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | -| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useAgentThreadsQuery` | Query | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | +| `useAgentThreadQuery` | Query | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | +| `useCreateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | +| `useUpdateAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | +| `useDeleteAgentThreadMutation` | Mutation | Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. | +| `useAgentMessagesQuery` | Query | 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. | +| `useAgentMessageQuery` | Query | 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. | +| `useCreateAgentMessageMutation` | Mutation | 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. | +| `useUpdateAgentMessageMutation` | Mutation | 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. | +| `useDeleteAgentMessageMutation` | Mutation | 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. | +| `useAgentTasksQuery` | Query | 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. | +| `useAgentTaskQuery` | Query | 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. | +| `useCreateAgentTaskMutation` | Mutation | 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. | +| `useUpdateAgentTaskMutation` | Mutation | 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. | +| `useDeleteAgentTaskMutation` | Mutation | 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. | +| `useRoleTypesQuery` | Query | List all roleTypes | +| `useRoleTypeQuery` | Query | Get one roleType | +| `useCreateRoleTypeMutation` | Mutation | Create a roleType | +| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | +| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | | `useIdentityProvidersQuery` | Query | List all identityProviders | | `useCreateIdentityProviderMutation` | Mutation | Create a identityProvider | | `useRefsQuery` | Query | A ref is a data structure for pointing to a commit. | @@ -600,16 +620,31 @@ function App() { | `useCreateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useUpdateStoreMutation` | Mutation | A store represents an isolated object repository within a database. | | `useDeleteStoreMutation` | Mutation | A store represents an isolated object repository within a database. | -| `useRoleTypesQuery` | Query | List all roleTypes | -| `useRoleTypeQuery` | Query | Get one roleType | -| `useCreateRoleTypeMutation` | Mutation | Create a roleType | -| `useUpdateRoleTypeMutation` | Mutation | Update a roleType | -| `useDeleteRoleTypeMutation` | Mutation | Delete a roleType | +| `useAppPermissionDefaultsQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useAppPermissionDefaultQuery` | Query | Stores the default permission bitmask assigned to new members upon joining | +| `useCreateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useUpdateAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useDeleteAppPermissionDefaultMutation` | Mutation | Stores the default permission bitmask assigned to new members upon joining | +| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | | `useMigrateFilesQuery` | Query | List all migrateFiles | | `useMigrateFileQuery` | Query | Get one migrateFile | | `useCreateMigrateFileMutation` | Mutation | Create a migrateFile | | `useUpdateMigrateFileMutation` | Mutation | Update a migrateFile | | `useDeleteMigrateFileMutation` | Mutation | Delete a migrateFile | +| `useDevicesModulesQuery` | Query | List all devicesModules | +| `useDevicesModuleQuery` | Query | Get one devicesModule | +| `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | +| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | +| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | +| `useNodeTypeRegistriesQuery` | Query | List all nodeTypeRegistries | +| `useNodeTypeRegistryQuery` | Query | Get one nodeTypeRegistry | +| `useCreateNodeTypeRegistryMutation` | Mutation | Create a nodeTypeRegistry | +| `useUpdateNodeTypeRegistryMutation` | Mutation | Update a nodeTypeRegistry | +| `useDeleteNodeTypeRegistryMutation` | Mutation | Delete a nodeTypeRegistry | | `useAppLimitDefaultsQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useAppLimitDefaultQuery` | Query | Default maximum values for each named limit, applied when no per-actor override exists | | `useCreateAppLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | @@ -620,26 +655,11 @@ function App() { | `useCreateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useUpdateOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | | `useDeleteOrgLimitDefaultMutation` | Mutation | Default maximum values for each named limit, applied when no per-actor override exists | -| `useDevicesModulesQuery` | Query | List all devicesModules | -| `useDevicesModuleQuery` | Query | Get one devicesModule | -| `useCreateDevicesModuleMutation` | Mutation | Create a devicesModule | -| `useUpdateDevicesModuleMutation` | Mutation | Update a devicesModule | -| `useDeleteDevicesModuleMutation` | Mutation | Delete a devicesModule | | `useUserConnectedAccountsQuery` | Query | List all userConnectedAccounts | | `useUserConnectedAccountQuery` | Query | Get one userConnectedAccount | | `useCreateUserConnectedAccountMutation` | Mutation | Create a userConnectedAccount | | `useUpdateUserConnectedAccountMutation` | Mutation | Update a userConnectedAccount | | `useDeleteUserConnectedAccountMutation` | Mutation | Delete a userConnectedAccount | -| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | -| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | | `useCommitsQuery` | Query | A commit records changes to the repository. | | `useCommitQuery` | Query | A commit records changes to the repository. | | `useCreateCommitMutation` | Mutation | A commit records changes to the repository. | @@ -650,11 +670,25 @@ function App() { | `useCreateRateLimitsModuleMutation` | Mutation | Create a rateLimitsModule | | `useUpdateRateLimitsModuleMutation` | Mutation | Update a rateLimitsModule | | `useDeleteRateLimitsModuleMutation` | Mutation | Delete a rateLimitsModule | -| `useMembershipTypesQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useMembershipTypeQuery` | Query | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useCreateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useUpdateMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | -| `useDeleteMembershipTypeMutation` | Mutation | Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) | +| `useAppMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteAppMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultsQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useOrgMembershipDefaultQuery` | Query | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useCreateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useUpdateOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useDeleteOrgMembershipDefaultMutation` | Mutation | Default membership settings per entity, controlling initial approval and verification state for new members | +| `useAppLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateAppLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `useOrgLimitEventsQuery` | Query | Append-only log of limit events for historical reporting and audit | +| `useCreateOrgLimitEventMutation` | Mutation | Append-only log of limit events for historical reporting and audit | +| `usePlansModulesQuery` | Query | List all plansModules | +| `usePlansModuleQuery` | Query | Get one plansModule | +| `useCreatePlansModuleMutation` | Mutation | Create a plansModule | +| `useUpdatePlansModuleMutation` | Mutation | Update a plansModule | +| `useDeletePlansModuleMutation` | Mutation | Delete a plansModule | | `useRlsModulesQuery` | Query | List all rlsModules | | `useRlsModuleQuery` | Query | Get one rlsModule | | `useCreateRlsModuleMutation` | Mutation | Create a rlsModule | @@ -665,21 +699,26 @@ function App() { | `useCreateSqlActionMutation` | Mutation | Create a sqlAction | | `useUpdateSqlActionMutation` | Mutation | Update a sqlAction | | `useDeleteSqlActionMutation` | Mutation | Delete a sqlAction | -| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | -| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | -| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | -| `useUsersQuery` | Query | List all users | -| `useUserQuery` | Query | Get one user | -| `useCreateUserMutation` | Mutation | Create a user | -| `useUpdateUserMutation` | Mutation | Update a user | -| `useDeleteUserMutation` | Mutation | Delete a user | +| `useBillingModulesQuery` | Query | List all billingModules | +| `useBillingModuleQuery` | Query | Get one billingModule | +| `useCreateBillingModuleMutation` | Mutation | Create a billingModule | +| `useUpdateBillingModuleMutation` | Mutation | Update a billingModule | +| `useDeleteBillingModuleMutation` | Mutation | Delete a billingModule | | `useAstMigrationsQuery` | Query | List all astMigrations | | `useAstMigrationQuery` | Query | Get one astMigration | | `useCreateAstMigrationMutation` | Mutation | Create a astMigration | | `useUpdateAstMigrationMutation` | Mutation | Update a astMigration | | `useDeleteAstMigrationMutation` | Mutation | Delete a astMigration | +| `useUsersQuery` | Query | List all users | +| `useUserQuery` | Query | Get one user | +| `useCreateUserMutation` | Mutation | Create a user | +| `useUpdateUserMutation` | Mutation | Update a user | +| `useDeleteUserMutation` | Mutation | Delete a user | +| `useOrgMembershipSettingsQuery` | Query | Per-entity settings for the memberships module | +| `useOrgMembershipSettingQuery` | Query | Per-entity settings for the memberships module | +| `useCreateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useUpdateOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | +| `useDeleteOrgMembershipSettingMutation` | Mutation | Per-entity settings for the memberships module | | `useAppMembershipsQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useAppMembershipQuery` | Query | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | | `useCreateAppMembershipMutation` | Mutation | Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status | @@ -705,11 +744,11 @@ function App() { | `useResolveBlueprintTableQuery` | Query | Resolves a table_name (with optional schema_name) to a table_id. Resolution order: (1) if schema_name provided, exact lookup via metaschema_public.schema.name + metaschema_public.table; (2) check local table_map (tables created in current blueprint); (3) search metaschema_public.table by name across all schemas; (4) if multiple matches, throw ambiguous error asking for schema_name; (5) if no match, throw not-found error. | | `useAppPermissionsGetMaskByNamesQuery` | Query | appPermissionsGetMaskByNames | | `useOrgPermissionsGetMaskByNamesQuery` | Query | orgPermissionsGetMaskByNames | +| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | +| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useGetAllObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetPathObjectsFromRootQuery` | Query | Reads and enables pagination through a set of `Object`. | | `useGetObjectAtPathQuery` | Query | getObjectAtPath | -| `useAppPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `AppPermission`. | -| `useOrgPermissionsGetByMaskQuery` | Query | Reads and enables pagination through a set of `OrgPermission`. | | `useStepsRequiredQuery` | Query | Reads and enables pagination through a set of `AppLevelRequirement`. | | `useCurrentUserQuery` | Query | currentUser | | `useSendAccountDeletionEmailMutation` | Mutation | sendAccountDeletionEmail | @@ -769,19 +808,16 @@ Example usage: | | `useExtendTokenExpiresMutation` | Mutation | extendTokenExpires | | `useCreateApiKeyMutation` | Mutation | createApiKey | +| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | +| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useSignUpMutation` | Mutation | signUp | | `useRequestCrossOriginTokenMutation` | Mutation | requestCrossOriginToken | | `useSignInMutation` | Mutation | signIn | | `useProvisionTableMutation` | Mutation | Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). | -| `useSendVerificationEmailMutation` | Mutation | sendVerificationEmail | -| `useForgotPasswordMutation` | Mutation | forgotPassword | | `useRequestUploadUrlMutation` | Mutation | Request a presigned URL for uploading a file directly to S3. Client computes SHA-256 of the file content and provides it here. If a file with the same hash already exists (dedup), returns the existing file ID and deduplicated=true with no uploadUrl. | -| `useConfirmUploadMutation` | Mutation | Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. | | `useProvisionBucketMutation` | Mutation | Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures the S3 bucket with the appropriate privacy policies, CORS rules, @@ -834,27 +870,6 @@ const { mutate: create } = useCreateGetAllRecordMutation({ create({ path: '', data: '' }); ``` -### Object - -```typescript -// List all objects -const { data, isLoading } = useObjectsQuery({ - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Get one object -const { data: item } = useObjectQuery({ - id: '', - selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, -}); - -// Create a object -const { mutate: create } = useCreateObjectMutation({ - selection: { fields: { id: true } }, -}); -create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); -``` - ### AppPermission ```typescript @@ -897,6 +912,27 @@ const { mutate: create } = useCreateOrgPermissionMutation({ create({ name: '', bitnum: '', bitstr: '', description: '' }); ``` +### Object + +```typescript +// List all objects +const { data, isLoading } = useObjectsQuery({ + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Get one object +const { data: item } = useObjectQuery({ + id: '', + selection: { fields: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }, +}); + +// Create a object +const { mutate: create } = useCreateObjectMutation({ + selection: { fields: { id: true } }, +}); +create({ hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }); +``` + ### AppLevelRequirement ```typescript @@ -1889,20 +1925,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', st ```typescript // List all limitsModules const { data, isLoading } = useLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Get one limitsModule const { data: item } = useLimitsModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }, }); // Create a limitsModule const { mutate: create } = useCreateLimitsModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }); ``` ### MembershipTypesModule @@ -1994,20 +2030,20 @@ create({ databaseId: '', schemaId: '', privateSchemaId: '', ta ```typescript // List all profilesModules const { data, isLoading } = useProfilesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Get one profilesModule const { data: item } = useProfilesModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }, }); // Create a profilesModule const { mutate: create } = useCreateProfilesModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }); ``` ### SecretsModule @@ -2162,20 +2198,20 @@ create({ blueprintId: '', databaseId: '', schemaId: '', status ```typescript // List all storageModules const { data, isLoading } = useStorageModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, }); // Get one storageModule const { data: item } = useStorageModuleQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }, }); // Create a storageModule const { mutate: create } = useCreateStorageModuleMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }); ``` ### EntityTypeProvision @@ -2540,20 +2576,20 @@ create({ permissions: '', entityId: '' }); ```typescript // List all appLimits const { data, isLoading } = useAppLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, }); // Get one appLimit const { data: item } = useAppLimitQuery({ id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, }); // Create a appLimit const { mutate: create } = useCreateAppLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '' }); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); ``` ### OrgLimit @@ -2561,20 +2597,41 @@ create({ name: '', actorId: '', num: '', max: '' }); ```typescript // List all orgLimits const { data, isLoading } = useOrgLimitsQuery({ - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); // Get one orgLimit const { data: item } = useOrgLimitQuery({ id: '', - selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }, + selection: { fields: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }, }); // Create a orgLimit const { mutate: create } = useCreateOrgLimitMutation({ selection: { fields: { id: true } }, }); -create({ name: '', actorId: '', num: '', max: '', entityId: '' }); +create({ name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }); +``` + +### OrgLimitAggregate + +```typescript +// List all orgLimitAggregates +const { data, isLoading } = useOrgLimitAggregatesQuery({ + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Get one orgLimitAggregate +const { data: item } = useOrgLimitAggregateQuery({ + id: '', + selection: { fields: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }, +}); + +// Create a orgLimitAggregate +const { mutate: create } = useCreateOrgLimitAggregateMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }); ``` ### AppStep @@ -2729,20 +2786,20 @@ create({ ownerId: '', credentialId: '', publicKey: '', - selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }, + selection: { fields: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }, }); // Create a appInvite const { mutate: create } = useCreateAppInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }); +create({ email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }); ``` ### AppClaimedInvite @@ -2771,20 +2828,20 @@ create({ data: '', senderId: '', receiverId: '' }); ```typescript // List all orgInvites const { data, isLoading } = useOrgInvitesQuery({ - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); // Get one orgInvite const { data: item } = useOrgInviteQuery({ id: '', - selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, + selection: { fields: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }, }); // Create a orgInvite const { mutate: create } = useCreateOrgInviteMutation({ selection: { fields: { id: true } }, }); -create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }); +create({ email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }); ``` ### OrgClaimedInvite @@ -2829,25 +2886,88 @@ const { mutate: create } = useCreateAuditLogMutation({ create({ event: '', actorId: '', origin: '', userAgent: '', ipAddress: '', success: '' }); ``` -### AppPermissionDefault +### AgentThread ```typescript -// List all appPermissionDefaults -const { data, isLoading } = useAppPermissionDefaultsQuery({ - selection: { fields: { id: true, permissions: true } }, +// List all agentThreads +const { data, isLoading } = useAgentThreadsQuery({ + selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, }); -// Get one appPermissionDefault -const { data: item } = useAppPermissionDefaultQuery({ +// Get one agentThread +const { data: item } = useAgentThreadQuery({ id: '', - selection: { fields: { id: true, permissions: true } }, + selection: { fields: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }, }); -// Create a appPermissionDefault -const { mutate: create } = useCreateAppPermissionDefaultMutation({ +// Create a agentThread +const { mutate: create } = useCreateAgentThreadMutation({ selection: { fields: { id: true } }, }); -create({ permissions: '' }); +create({ title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }); +``` + +### AgentMessage + +```typescript +// List all agentMessages +const { data, isLoading } = useAgentMessagesQuery({ + selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, +}); + +// Get one agentMessage +const { data: item } = useAgentMessageQuery({ + id: '', + selection: { fields: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }, +}); + +// Create a agentMessage +const { mutate: create } = useCreateAgentMessageMutation({ + selection: { fields: { id: true } }, +}); +create({ threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }); +``` + +### AgentTask + +```typescript +// List all agentTasks +const { data, isLoading } = useAgentTasksQuery({ + selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, +}); + +// Get one agentTask +const { data: item } = useAgentTaskQuery({ + id: '', + selection: { fields: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }, +}); + +// Create a agentTask +const { mutate: create } = useCreateAgentTaskMutation({ + selection: { fields: { id: true } }, +}); +create({ threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }); +``` + +### RoleType + +```typescript +// List all roleTypes +const { data, isLoading } = useRoleTypesQuery({ + selection: { fields: { id: true, name: true } }, +}); + +// Get one roleType +const { data: item } = useRoleTypeQuery({ + id: '', + selection: { fields: { id: true, name: true } }, +}); + +// Create a roleType +const { mutate: create } = useCreateRoleTypeMutation({ + selection: { fields: { id: true } }, +}); +create({ name: '' }); ``` ### IdentityProvider @@ -2907,25 +3027,46 @@ const { mutate: create } = useCreateStoreMutation({ create({ name: '', databaseId: '', hash: '' }); ``` -### RoleType +### AppPermissionDefault ```typescript -// List all roleTypes -const { data, isLoading } = useRoleTypesQuery({ - selection: { fields: { id: true, name: true } }, +// List all appPermissionDefaults +const { data, isLoading } = useAppPermissionDefaultsQuery({ + selection: { fields: { id: true, permissions: true } }, }); -// Get one roleType -const { data: item } = useRoleTypeQuery({ +// Get one appPermissionDefault +const { data: item } = useAppPermissionDefaultQuery({ + id: '', + selection: { fields: { id: true, permissions: true } }, +}); + +// Create a appPermissionDefault +const { mutate: create } = useCreateAppPermissionDefaultMutation({ + selection: { fields: { id: true } }, +}); +create({ permissions: '' }); +``` + +### MembershipType + +```typescript +// List all membershipTypes +const { data, isLoading } = useMembershipTypesQuery({ + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +}); + +// Get one membershipType +const { data: item } = useMembershipTypeQuery({ id: '', - selection: { fields: { id: true, name: true } }, + selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, }); -// Create a roleType -const { mutate: create } = useCreateRoleTypeMutation({ +// Create a membershipType +const { mutate: create } = useCreateMembershipTypeMutation({ selection: { fields: { id: true } }, }); -create({ name: '' }); +create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); ``` ### MigrateFile @@ -2949,67 +3090,88 @@ const { mutate: create } = useCreateMigrateFileMutation({ create({ databaseId: '', upload: '' }); ``` -### AppLimitDefault +### DevicesModule ```typescript -// List all appLimitDefaults -const { data, isLoading } = useAppLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all devicesModules +const { data, isLoading } = useDevicesModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Get one appLimitDefault -const { data: item } = useAppLimitDefaultQuery({ +// Get one devicesModule +const { data: item } = useDevicesModuleQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, }); -// Create a appLimitDefault -const { mutate: create } = useCreateAppLimitDefaultMutation({ +// Create a devicesModule +const { mutate: create } = useCreateDevicesModuleMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); ``` -### OrgLimitDefault +### NodeTypeRegistry ```typescript -// List all orgLimitDefaults -const { data, isLoading } = useOrgLimitDefaultsQuery({ - selection: { fields: { id: true, name: true, max: true } }, +// List all nodeTypeRegistries +const { data, isLoading } = useNodeTypeRegistriesQuery({ + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, }); -// Get one orgLimitDefault -const { data: item } = useOrgLimitDefaultQuery({ +// Get one nodeTypeRegistry +const { data: item } = useNodeTypeRegistryQuery({ + name: '', + selection: { fields: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }, +}); + +// Create a nodeTypeRegistry +const { mutate: create } = useCreateNodeTypeRegistryMutation({ + selection: { fields: { name: true } }, +}); +create({ slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }); +``` + +### AppLimitDefault + +```typescript +// List all appLimitDefaults +const { data, isLoading } = useAppLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, +}); + +// Get one appLimitDefault +const { data: item } = useAppLimitDefaultQuery({ id: '', - selection: { fields: { id: true, name: true, max: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Create a orgLimitDefault -const { mutate: create } = useCreateOrgLimitDefaultMutation({ +// Create a appLimitDefault +const { mutate: create } = useCreateAppLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ name: '', max: '' }); +create({ name: '', max: '', softMax: '' }); ``` -### DevicesModule +### OrgLimitDefault ```typescript -// List all devicesModules -const { data, isLoading } = useDevicesModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, +// List all orgLimitDefaults +const { data, isLoading } = useOrgLimitDefaultsQuery({ + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Get one devicesModule -const { data: item } = useDevicesModuleQuery({ +// Get one orgLimitDefault +const { data: item } = useOrgLimitDefaultQuery({ id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, userDevicesTableId: true, deviceSettingsTableId: true, userDevicesTable: true, deviceSettingsTable: true } }, + selection: { fields: { id: true, name: true, max: true, softMax: true } }, }); -// Create a devicesModule -const { mutate: create } = useCreateDevicesModuleMutation({ +// Create a orgLimitDefault +const { mutate: create } = useCreateOrgLimitDefaultMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', userDevicesTableId: '', deviceSettingsTableId: '', userDevicesTable: '', deviceSettingsTable: '' }); +create({ name: '', max: '', softMax: '' }); ``` ### UserConnectedAccount @@ -3033,6 +3195,48 @@ const { mutate: create } = useCreateUserConnectedAccountMutation({ create({ ownerId: '', service: '', identifier: '', details: '', isVerified: '' }); ``` +### Commit + +```typescript +// List all commits +const { data, isLoading } = useCommitsQuery({ + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Get one commit +const { data: item } = useCommitQuery({ + id: '', + selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +}); + +// Create a commit +const { mutate: create } = useCreateCommitMutation({ + selection: { fields: { id: true } }, +}); +create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +``` + +### RateLimitsModule + +```typescript +// List all rateLimitsModules +const { data, isLoading } = useRateLimitsModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +}); + +// Get one rateLimitsModule +const { data: item } = useRateLimitsModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +}); + +// Create a rateLimitsModule +const { mutate: create } = useCreateRateLimitsModuleMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); +``` + ### AppMembershipDefault ```typescript @@ -3075,67 +3279,55 @@ const { mutate: create } = useCreateOrgMembershipDefaultMutation({ create({ createdBy: '', updatedBy: '', isApproved: '', entityId: '' }); ``` -### Commit +### AppLimitEvent ```typescript -// List all commits -const { data, isLoading } = useCommitsQuery({ - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, +// List all appLimitEvents +const { data, isLoading } = useAppLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); -// Get one commit -const { data: item } = useCommitQuery({ - id: '', - selection: { fields: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }, -}); - -// Create a commit -const { mutate: create } = useCreateCommitMutation({ +// Create a appLimitEvent +const { mutate: create } = useCreateAppLimitEventMutation({ selection: { fields: { id: true } }, }); -create({ message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); ``` -### RateLimitsModule +### OrgLimitEvent ```typescript -// List all rateLimitsModules -const { data, isLoading } = useRateLimitsModulesQuery({ - selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, +// List all orgLimitEvents +const { data, isLoading } = useOrgLimitEventsQuery({ + selection: { fields: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }, }); -// Get one rateLimitsModule -const { data: item } = useRateLimitsModuleQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }, -}); - -// Create a rateLimitsModule -const { mutate: create } = useCreateRateLimitsModuleMutation({ +// Create a orgLimitEvent +const { mutate: create } = useCreateOrgLimitEventMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }); +create({ name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }); ``` -### MembershipType +### PlansModule ```typescript -// List all membershipTypes -const { data, isLoading } = useMembershipTypesQuery({ - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// List all plansModules +const { data, isLoading } = usePlansModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, }); -// Get one membershipType -const { data: item } = useMembershipTypeQuery({ - id: '', - selection: { fields: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }, +// Get one plansModule +const { data: item } = usePlansModuleQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }, }); -// Create a membershipType -const { mutate: create } = useCreateMembershipTypeMutation({ +// Create a plansModule +const { mutate: create } = useCreatePlansModuleMutation({ selection: { fields: { id: true } }, }); -create({ name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }); ``` ### RlsModule @@ -3180,25 +3372,46 @@ const { mutate: create } = useCreateSqlActionMutation({ create({ name: '', databaseId: '', deploy: '', deps: '', payload: '', content: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` -### OrgMembershipSetting +### BillingModule ```typescript -// List all orgMembershipSettings -const { data, isLoading } = useOrgMembershipSettingsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, +// List all billingModules +const { data, isLoading } = useBillingModulesQuery({ + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, }); -// Get one orgMembershipSetting -const { data: item } = useOrgMembershipSettingQuery({ +// Get one billingModule +const { data: item } = useBillingModuleQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }, + selection: { fields: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }, }); -// Create a orgMembershipSetting -const { mutate: create } = useCreateOrgMembershipSettingMutation({ +// Create a billingModule +const { mutate: create } = useCreateBillingModuleMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }); +create({ databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }); +``` + +### AstMigration + +```typescript +// List all astMigrations +const { data, isLoading } = useAstMigrationsQuery({ + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Get one astMigration +const { data: item } = useAstMigrationQuery({ + id: '', + selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +}); + +// Create a astMigration +const { mutate: create } = useCreateAstMigrationMutation({ + selection: { fields: { id: true } }, +}); +create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); ``` ### User @@ -3222,25 +3435,25 @@ const { mutate: create } = useCreateUserMutation({ create({ username: '', displayName: '', profilePicture: '', searchTsv: '', type: '', searchTsvRank: '', displayNameTrgmSimilarity: '', searchScore: '' }); ``` -### AstMigration +### OrgMembershipSetting ```typescript -// List all astMigrations -const { data, isLoading } = useAstMigrationsQuery({ - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +// List all orgMembershipSettings +const { data, isLoading } = useOrgMembershipSettingsQuery({ + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Get one astMigration -const { data: item } = useAstMigrationQuery({ - id: '', - selection: { fields: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }, +// Get one orgMembershipSetting +const { data: item } = useOrgMembershipSettingQuery({ + id: '', + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }, }); -// Create a astMigration -const { mutate: create } = useCreateAstMigrationMutation({ +// Create a orgMembershipSetting +const { mutate: create } = useCreateOrgMembershipSettingMutation({ selection: { fields: { id: true } }, }); -create({ databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }); +create({ createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }); ``` ### AppMembership @@ -3248,20 +3461,20 @@ create({ databaseId: '', name: '', requires: '', payload: ```typescript // List all appMemberships const { data, isLoading } = useAppMembershipsQuery({ - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Get one appMembership const { data: item } = useAppMembershipQuery({ id: '', - selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, + selection: { fields: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }, }); // Create a appMembership const { mutate: create } = useCreateAppMembershipMutation({ selection: { fields: { id: true } }, }); -create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); +create({ createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }); ``` ### HierarchyModule @@ -3452,78 +3665,78 @@ orgPermissionsGetMaskByNames |----------|------| | `names` | [String] | -### `useGetAllObjectsFromRootQuery` +### `useAppPermissionsGetByMaskQuery` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetPathObjectsFromRootQuery` +### `useOrgPermissionsGetByMaskQuery` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useGetObjectAtPathQuery` +### `useGetAllObjectsFromRootQuery` -getObjectAtPath +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | -### `useAppPermissionsGetByMaskQuery` +### `useGetPathObjectsFromRootQuery` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | -### `useOrgPermissionsGetByMaskQuery` +### `useGetObjectAtPathQuery` -Reads and enables pagination through a set of `OrgPermission`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ### `useStepsRequiredQuery` @@ -4014,71 +4227,71 @@ createApiKey |----------|------| | `input` | CreateApiKeyInput (required) | -### `useSignUpMutation` +### `useSendVerificationEmailMutation` -signUp +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | SendVerificationEmailInput (required) | -### `useRequestCrossOriginTokenMutation` +### `useForgotPasswordMutation` -requestCrossOriginToken +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ForgotPasswordInput (required) | -### `useSignInMutation` +### `useSignUpMutation` -signIn +signUp - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SignUpInput (required) | -### `useProvisionTableMutation` +### `useRequestCrossOriginTokenMutation` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | -### `useSendVerificationEmailMutation` +### `useSignInMutation` -sendVerificationEmail +signIn - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | SignInInput (required) | -### `useForgotPasswordMutation` +### `useProvisionTableMutation` -forgotPassword +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | ProvisionTableInput (required) | ### `useRequestUploadUrlMutation` @@ -4094,19 +4307,6 @@ existing file ID and deduplicated=true with no uploadUrl. |----------|------| | `input` | RequestUploadUrlInput (required) | -### `useConfirmUploadMutation` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - ### `useProvisionBucketMutation` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/public/hooks/index.ts b/sdk/constructive-react/src/public/hooks/index.ts index dac7662ab..a2d1829a0 100644 --- a/sdk/constructive-react/src/public/hooks/index.ts +++ b/sdk/constructive-react/src/public/hooks/index.ts @@ -2,7 +2,7 @@ * GraphQL SDK * @generated by @constructive-io/graphql-codegen * - * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, Object, AppPermission, OrgPermission, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, DatabaseTransfer, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, OrgLimit, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AppPermissionDefault, IdentityProvider, Ref, Store, RoleType, MigrateFile, AppLimitDefault, OrgLimitDefault, DevicesModule, UserConnectedAccount, AppMembershipDefault, OrgMembershipDefault, Commit, RateLimitsModule, MembershipType, RlsModule, SqlAction, OrgMembershipSetting, User, AstMigration, AppMembership, HierarchyModule + * Tables: OrgGetManagersRecord, OrgGetSubordinatesRecord, GetAllRecord, AppPermission, OrgPermission, Object, AppLevelRequirement, Database, Schema, Table, CheckConstraint, Field, SpatialRelation, ForeignKeyConstraint, FullTextSearch, Index, Policy, PrimaryKeyConstraint, TableGrant, Trigger, UniqueConstraint, View, ViewTable, ViewGrant, ViewRule, EmbeddingChunk, SecureTableProvision, RelationProvision, SessionSecretsModule, IdentityProvidersModule, SchemaGrant, DefaultPrivilege, Enum, ApiSchema, ApiModule, Domain, SiteMetadatum, SiteModule, SiteTheme, TriggerFunction, DatabaseTransfer, Api, Site, App, ConnectedAccountsModule, CryptoAddressesModule, CryptoAuthModule, DefaultIdsModule, DenormalizedTableField, EmailsModule, EncryptedSecretsModule, InvitesModule, LevelsModule, LimitsModule, MembershipTypesModule, MembershipsModule, PermissionsModule, PhoneNumbersModule, ProfilesModule, SecretsModule, SessionsModule, UserAuthModule, UsersModule, Blueprint, BlueprintTemplate, BlueprintConstruction, StorageModule, EntityTypeProvision, WebauthnCredentialsModule, WebauthnAuthModule, NotificationsModule, DatabaseProvisionModule, AppAdminGrant, AppOwnerGrant, AppGrant, OrgMembership, OrgMember, OrgAdminGrant, OrgOwnerGrant, OrgMemberProfile, OrgGrant, OrgChartEdge, OrgChartEdgeGrant, OrgPermissionDefault, AppLimit, OrgLimit, OrgLimitAggregate, AppStep, AppAchievement, AppLevel, Email, PhoneNumber, CryptoAddress, WebauthnCredential, AppInvite, AppClaimedInvite, OrgInvite, OrgClaimedInvite, AuditLog, AgentThread, AgentMessage, AgentTask, RoleType, IdentityProvider, Ref, Store, AppPermissionDefault, MembershipType, MigrateFile, DevicesModule, NodeTypeRegistry, AppLimitDefault, OrgLimitDefault, UserConnectedAccount, Commit, RateLimitsModule, AppMembershipDefault, OrgMembershipDefault, AppLimitEvent, OrgLimitEvent, PlansModule, RlsModule, SqlAction, BillingModule, AstMigration, User, OrgMembershipSetting, AppMembership, HierarchyModule * * Usage: * diff --git a/sdk/constructive-react/src/public/hooks/invalidation.ts b/sdk/constructive-react/src/public/hooks/invalidation.ts index 1e8f673b5..f0154bbeb 100644 --- a/sdk/constructive-react/src/public/hooks/invalidation.ts +++ b/sdk/constructive-react/src/public/hooks/invalidation.ts @@ -18,9 +18,9 @@ import { orgGetManagersRecordKeys, orgGetSubordinatesRecordKeys, getAllRecordKeys, - objectKeys, appPermissionKeys, orgPermissionKeys, + objectKeys, appLevelRequirementKeys, databaseKeys, schemaKeys, @@ -101,6 +101,7 @@ import { orgPermissionDefaultKeys, appLimitKeys, orgLimitKeys, + orgLimitAggregateKeys, appStepKeys, appAchievementKeys, appLevelKeys, @@ -113,26 +114,34 @@ import { orgInviteKeys, orgClaimedInviteKeys, auditLogKeys, - appPermissionDefaultKeys, + agentThreadKeys, + agentMessageKeys, + agentTaskKeys, + roleTypeKeys, identityProviderKeys, refKeys, storeKeys, - roleTypeKeys, + appPermissionDefaultKeys, + membershipTypeKeys, migrateFileKeys, + devicesModuleKeys, + nodeTypeRegistryKeys, appLimitDefaultKeys, orgLimitDefaultKeys, - devicesModuleKeys, userConnectedAccountKeys, - appMembershipDefaultKeys, - orgMembershipDefaultKeys, commitKeys, rateLimitsModuleKeys, - membershipTypeKeys, + appMembershipDefaultKeys, + orgMembershipDefaultKeys, + appLimitEventKeys, + orgLimitEventKeys, + plansModuleKeys, rlsModuleKeys, sqlActionKeys, - orgMembershipSettingKeys, - userKeys, + billingModuleKeys, astMigrationKeys, + userKeys, + orgMembershipSettingKeys, appMembershipKeys, hierarchyModuleKeys, } from './query-keys'; @@ -207,20 +216,6 @@ export const invalidate = { queryKey: getAllRecordKeys.detail(id), }), }, - /** Invalidate object queries */ object: { - /** Invalidate all object queries */ all: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.all, - }), - /** Invalidate object list queries */ lists: (queryClient: QueryClient) => - queryClient.invalidateQueries({ - queryKey: objectKeys.lists(), - }), - /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => - queryClient.invalidateQueries({ - queryKey: objectKeys.detail(id), - }), - }, /** Invalidate appPermission queries */ appPermission: { /** Invalidate all appPermission queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -255,6 +250,20 @@ export const invalidate = { queryKey: orgPermissionKeys.detail(id), }), }, + /** Invalidate object queries */ object: { + /** Invalidate all object queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.all, + }), + /** Invalidate object list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: objectKeys.lists(), + }), + /** Invalidate a specific object */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: objectKeys.detail(id), + }), + }, /** Invalidate appLevelRequirement queries */ appLevelRequirement: { /** Invalidate all appLevelRequirement queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1561,6 +1570,23 @@ export const invalidate = { queryKey: orgLimitKeys.detail(id), }), }, + /** Invalidate orgLimitAggregate queries */ orgLimitAggregate: { + /** Invalidate all orgLimitAggregate queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.all, + }), + /** Invalidate orgLimitAggregate list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }), + /** Invalidate a specific orgLimitAggregate */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.detail(id), + }), + }, /** Invalidate appStep queries */ appStep: { /** Invalidate all appStep queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1753,21 +1779,69 @@ export const invalidate = { queryKey: auditLogKeys.detail(id), }), }, - /** Invalidate appPermissionDefault queries */ appPermissionDefault: { - /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => + /** Invalidate agentThread queries */ agentThread: { + /** Invalidate all agentThread queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.all, + queryKey: agentThreadKeys.all, }), - /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => + /** Invalidate agentThread list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.lists(), + queryKey: agentThreadKeys.lists(), }), - /** Invalidate a specific appPermissionDefault */ detail: ( + /** Invalidate a specific agentThread */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: appPermissionDefaultKeys.detail(id), + queryKey: agentThreadKeys.detail(id), + }), + }, + /** Invalidate agentMessage queries */ agentMessage: { + /** Invalidate all agentMessage queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.all, + }), + /** Invalidate agentMessage list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }), + /** Invalidate a specific agentMessage */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.detail(id), + }), + }, + /** Invalidate agentTask queries */ agentTask: { + /** Invalidate all agentTask queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.all, + }), + /** Invalidate agentTask list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }), + /** Invalidate a specific agentTask */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.detail(id), + }), + }, + /** Invalidate roleType queries */ roleType: { + /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.all, + }), + /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.lists(), + }), + /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: roleTypeKeys.detail(id), }), }, /** Invalidate identityProvider queries */ identityProvider: { @@ -1815,18 +1889,38 @@ export const invalidate = { queryKey: storeKeys.detail(id), }), }, - /** Invalidate roleType queries */ roleType: { - /** Invalidate all roleType queries */ all: (queryClient: QueryClient) => + /** Invalidate appPermissionDefault queries */ appPermissionDefault: { + /** Invalidate all appPermissionDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.all, + queryKey: appPermissionDefaultKeys.all, }), - /** Invalidate roleType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appPermissionDefault list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.lists(), + queryKey: appPermissionDefaultKeys.lists(), }), - /** Invalidate a specific roleType */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific appPermissionDefault */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: roleTypeKeys.detail(id), + queryKey: appPermissionDefaultKeys.detail(id), + }), + }, + /** Invalidate membershipType queries */ membershipType: { + /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.all, + }), + /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.lists(), + }), + /** Invalidate a specific membershipType */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: membershipTypeKeys.detail(id), }), }, /** Invalidate migrateFile queries */ migrateFile: { @@ -1846,6 +1940,40 @@ export const invalidate = { queryKey: migrateFileKeys.detail(id), }), }, + /** Invalidate devicesModule queries */ devicesModule: { + /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: devicesModuleKeys.all, + }), + /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: devicesModuleKeys.lists(), + }), + /** Invalidate a specific devicesModule */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: devicesModuleKeys.detail(id), + }), + }, + /** Invalidate nodeTypeRegistry queries */ nodeTypeRegistry: { + /** Invalidate all nodeTypeRegistry queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.all, + }), + /** Invalidate nodeTypeRegistry list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }), + /** Invalidate a specific nodeTypeRegistry */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }), + }, /** Invalidate appLimitDefault queries */ appLimitDefault: { /** Invalidate all appLimitDefault queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ @@ -1880,38 +2008,52 @@ export const invalidate = { queryKey: orgLimitDefaultKeys.detail(id), }), }, - /** Invalidate devicesModule queries */ devicesModule: { - /** Invalidate all devicesModule queries */ all: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount queries */ userConnectedAccount: { + /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.all, + queryKey: userConnectedAccountKeys.all, }), - /** Invalidate devicesModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.lists(), + queryKey: userConnectedAccountKeys.lists(), }), - /** Invalidate a specific devicesModule */ detail: ( + /** Invalidate a specific userConnectedAccount */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: devicesModuleKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }), }, - /** Invalidate userConnectedAccount queries */ userConnectedAccount: { - /** Invalidate all userConnectedAccount queries */ all: (queryClient: QueryClient) => + /** Invalidate commit queries */ commit: { + /** Invalidate all commit queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.all, + queryKey: commitKeys.all, }), - /** Invalidate userConnectedAccount list queries */ lists: (queryClient: QueryClient) => + /** Invalidate commit list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.lists(), + queryKey: commitKeys.lists(), }), - /** Invalidate a specific userConnectedAccount */ detail: ( + /** Invalidate a specific commit */ detail: (queryClient: QueryClient, id: string | number) => + queryClient.invalidateQueries({ + queryKey: commitKeys.detail(id), + }), + }, + /** Invalidate rateLimitsModule queries */ rateLimitsModule: { + /** Invalidate all rateLimitsModule queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitsModuleKeys.all, + }), + /** Invalidate rateLimitsModule list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: rateLimitsModuleKeys.lists(), + }), + /** Invalidate a specific rateLimitsModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: rateLimitsModuleKeys.detail(id), }), }, /** Invalidate appMembershipDefault queries */ appMembershipDefault: { @@ -1948,52 +2090,55 @@ export const invalidate = { queryKey: orgMembershipDefaultKeys.detail(id), }), }, - /** Invalidate commit queries */ commit: { - /** Invalidate all commit queries */ all: (queryClient: QueryClient) => + /** Invalidate appLimitEvent queries */ appLimitEvent: { + /** Invalidate all appLimitEvent queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: commitKeys.all, + queryKey: appLimitEventKeys.all, }), - /** Invalidate commit list queries */ lists: (queryClient: QueryClient) => + /** Invalidate appLimitEvent list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: commitKeys.lists(), + queryKey: appLimitEventKeys.lists(), }), - /** Invalidate a specific commit */ detail: (queryClient: QueryClient, id: string | number) => + /** Invalidate a specific appLimitEvent */ detail: ( + queryClient: QueryClient, + id: string | number + ) => queryClient.invalidateQueries({ - queryKey: commitKeys.detail(id), + queryKey: appLimitEventKeys.detail(id), }), }, - /** Invalidate rateLimitsModule queries */ rateLimitsModule: { - /** Invalidate all rateLimitsModule queries */ all: (queryClient: QueryClient) => + /** Invalidate orgLimitEvent queries */ orgLimitEvent: { + /** Invalidate all orgLimitEvent queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.all, + queryKey: orgLimitEventKeys.all, }), - /** Invalidate rateLimitsModule list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgLimitEvent list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.lists(), + queryKey: orgLimitEventKeys.lists(), }), - /** Invalidate a specific rateLimitsModule */ detail: ( + /** Invalidate a specific orgLimitEvent */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: rateLimitsModuleKeys.detail(id), + queryKey: orgLimitEventKeys.detail(id), }), }, - /** Invalidate membershipType queries */ membershipType: { - /** Invalidate all membershipType queries */ all: (queryClient: QueryClient) => + /** Invalidate plansModule queries */ plansModule: { + /** Invalidate all plansModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.all, + queryKey: plansModuleKeys.all, }), - /** Invalidate membershipType list queries */ lists: (queryClient: QueryClient) => + /** Invalidate plansModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.lists(), + queryKey: plansModuleKeys.lists(), }), - /** Invalidate a specific membershipType */ detail: ( + /** Invalidate a specific plansModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }), }, /** Invalidate rlsModule queries */ rlsModule: { @@ -2030,21 +2175,38 @@ export const invalidate = { queryKey: sqlActionKeys.detail(id), }), }, - /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { - /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => + /** Invalidate billingModule queries */ billingModule: { + /** Invalidate all billingModule queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.all, + queryKey: billingModuleKeys.all, }), - /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => + /** Invalidate billingModule list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.lists(), + queryKey: billingModuleKeys.lists(), }), - /** Invalidate a specific orgMembershipSetting */ detail: ( + /** Invalidate a specific billingModule */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: billingModuleKeys.detail(id), + }), + }, + /** Invalidate astMigration queries */ astMigration: { + /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.all, + }), + /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.lists(), + }), + /** Invalidate a specific astMigration */ detail: ( + queryClient: QueryClient, + id: string | number + ) => + queryClient.invalidateQueries({ + queryKey: astMigrationKeys.detail(id), }), }, /** Invalidate user queries */ user: { @@ -2061,21 +2223,21 @@ export const invalidate = { queryKey: userKeys.detail(id), }), }, - /** Invalidate astMigration queries */ astMigration: { - /** Invalidate all astMigration queries */ all: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting queries */ orgMembershipSetting: { + /** Invalidate all orgMembershipSetting queries */ all: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.all, + queryKey: orgMembershipSettingKeys.all, }), - /** Invalidate astMigration list queries */ lists: (queryClient: QueryClient) => + /** Invalidate orgMembershipSetting list queries */ lists: (queryClient: QueryClient) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.lists(), + queryKey: orgMembershipSettingKeys.lists(), }), - /** Invalidate a specific astMigration */ detail: ( + /** Invalidate a specific orgMembershipSetting */ detail: ( queryClient: QueryClient, id: string | number ) => queryClient.invalidateQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }), }, /** Invalidate appMembership queries */ appMembership: { @@ -2149,11 +2311,6 @@ export const remove = { queryKey: getAllRecordKeys.detail(id), }); }, - /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { - queryClient.removeQueries({ - queryKey: objectKeys.detail(id), - }); - }, /** Remove appPermission from cache */ appPermission: ( queryClient: QueryClient, id: string | number @@ -2170,6 +2327,11 @@ export const remove = { queryKey: orgPermissionKeys.detail(id), }); }, + /** Remove object from cache */ object: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: objectKeys.detail(id), + }); + }, /** Remove appLevelRequirement from cache */ appLevelRequirement: ( queryClient: QueryClient, id: string | number @@ -2735,6 +2897,14 @@ export const remove = { queryKey: orgLimitKeys.detail(id), }); }, + /** Remove orgLimitAggregate from cache */ orgLimitAggregate: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: orgLimitAggregateKeys.detail(id), + }); + }, /** Remove appStep from cache */ appStep: (queryClient: QueryClient, id: string | number) => { queryClient.removeQueries({ queryKey: appStepKeys.detail(id), @@ -2813,12 +2983,30 @@ export const remove = { queryKey: auditLogKeys.detail(id), }); }, - /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + /** Remove agentThread from cache */ agentThread: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: appPermissionDefaultKeys.detail(id), + queryKey: agentThreadKeys.detail(id), + }); + }, + /** Remove agentMessage from cache */ agentMessage: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: agentMessageKeys.detail(id), + }); + }, + /** Remove agentTask from cache */ agentTask: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: agentTaskKeys.detail(id), + }); + }, + /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: roleTypeKeys.detail(id), }); }, /** Remove identityProvider from cache */ identityProvider: ( @@ -2839,9 +3027,20 @@ export const remove = { queryKey: storeKeys.detail(id), }); }, - /** Remove roleType from cache */ roleType: (queryClient: QueryClient, id: string | number) => { + /** Remove appPermissionDefault from cache */ appPermissionDefault: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: roleTypeKeys.detail(id), + queryKey: appPermissionDefaultKeys.detail(id), + }); + }, + /** Remove membershipType from cache */ membershipType: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: membershipTypeKeys.detail(id), }); }, /** Remove migrateFile from cache */ migrateFile: ( @@ -2852,6 +3051,22 @@ export const remove = { queryKey: migrateFileKeys.detail(id), }); }, + /** Remove devicesModule from cache */ devicesModule: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: devicesModuleKeys.detail(id), + }); + }, + /** Remove nodeTypeRegistry from cache */ nodeTypeRegistry: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: nodeTypeRegistryKeys.detail(id), + }); + }, /** Remove appLimitDefault from cache */ appLimitDefault: ( queryClient: QueryClient, id: string | number @@ -2868,20 +3083,25 @@ export const remove = { queryKey: orgLimitDefaultKeys.detail(id), }); }, - /** Remove devicesModule from cache */ devicesModule: ( + /** Remove userConnectedAccount from cache */ userConnectedAccount: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: devicesModuleKeys.detail(id), + queryKey: userConnectedAccountKeys.detail(id), }); }, - /** Remove userConnectedAccount from cache */ userConnectedAccount: ( + /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { + queryClient.removeQueries({ + queryKey: commitKeys.detail(id), + }); + }, + /** Remove rateLimitsModule from cache */ rateLimitsModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: userConnectedAccountKeys.detail(id), + queryKey: rateLimitsModuleKeys.detail(id), }); }, /** Remove appMembershipDefault from cache */ appMembershipDefault: ( @@ -2900,25 +3120,28 @@ export const remove = { queryKey: orgMembershipDefaultKeys.detail(id), }); }, - /** Remove commit from cache */ commit: (queryClient: QueryClient, id: string | number) => { + /** Remove appLimitEvent from cache */ appLimitEvent: ( + queryClient: QueryClient, + id: string | number + ) => { queryClient.removeQueries({ - queryKey: commitKeys.detail(id), + queryKey: appLimitEventKeys.detail(id), }); }, - /** Remove rateLimitsModule from cache */ rateLimitsModule: ( + /** Remove orgLimitEvent from cache */ orgLimitEvent: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: rateLimitsModuleKeys.detail(id), + queryKey: orgLimitEventKeys.detail(id), }); }, - /** Remove membershipType from cache */ membershipType: ( + /** Remove plansModule from cache */ plansModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: membershipTypeKeys.detail(id), + queryKey: plansModuleKeys.detail(id), }); }, /** Remove rlsModule from cache */ rlsModule: (queryClient: QueryClient, id: string | number) => { @@ -2931,12 +3154,20 @@ export const remove = { queryKey: sqlActionKeys.detail(id), }); }, - /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( + /** Remove billingModule from cache */ billingModule: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: orgMembershipSettingKeys.detail(id), + queryKey: billingModuleKeys.detail(id), + }); + }, + /** Remove astMigration from cache */ astMigration: ( + queryClient: QueryClient, + id: string | number + ) => { + queryClient.removeQueries({ + queryKey: astMigrationKeys.detail(id), }); }, /** Remove user from cache */ user: (queryClient: QueryClient, id: string | number) => { @@ -2944,12 +3175,12 @@ export const remove = { queryKey: userKeys.detail(id), }); }, - /** Remove astMigration from cache */ astMigration: ( + /** Remove orgMembershipSetting from cache */ orgMembershipSetting: ( queryClient: QueryClient, id: string | number ) => { queryClient.removeQueries({ - queryKey: astMigrationKeys.detail(id), + queryKey: orgMembershipSettingKeys.detail(id), }); }, /** Remove appMembership from cache */ appMembership: ( diff --git a/sdk/constructive-react/src/public/hooks/mutation-keys.ts b/sdk/constructive-react/src/public/hooks/mutation-keys.ts index 85a0374fe..f1292673f 100644 --- a/sdk/constructive-react/src/public/hooks/mutation-keys.ts +++ b/sdk/constructive-react/src/public/hooks/mutation-keys.ts @@ -48,14 +48,6 @@ export const getAllRecordMutationKeys = { /** Delete getAllRecord mutation key */ delete: (id: string | number) => ['mutation', 'getallrecord', 'delete', id] as const, } as const; -export const objectMutationKeys = { - /** All object mutation keys */ all: ['mutation', 'object'] as const, - /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, - /** Update object mutation key */ update: (id: string | number) => - ['mutation', 'object', 'update', id] as const, - /** Delete object mutation key */ delete: (id: string | number) => - ['mutation', 'object', 'delete', id] as const, -} as const; export const appPermissionMutationKeys = { /** All appPermission mutation keys */ all: ['mutation', 'apppermission'] as const, /** Create appPermission mutation key */ create: () => @@ -74,6 +66,14 @@ export const orgPermissionMutationKeys = { /** Delete orgPermission mutation key */ delete: (id: string | number) => ['mutation', 'orgpermission', 'delete', id] as const, } as const; +export const objectMutationKeys = { + /** All object mutation keys */ all: ['mutation', 'object'] as const, + /** Create object mutation key */ create: () => ['mutation', 'object', 'create'] as const, + /** Update object mutation key */ update: (id: string | number) => + ['mutation', 'object', 'update', id] as const, + /** Delete object mutation key */ delete: (id: string | number) => + ['mutation', 'object', 'delete', id] as const, +} as const; export const appLevelRequirementMutationKeys = { /** All appLevelRequirement mutation keys */ all: ['mutation', 'applevelrequirement'] as const, /** Create appLevelRequirement mutation key */ create: () => @@ -794,6 +794,15 @@ export const orgLimitMutationKeys = { /** Delete orgLimit mutation key */ delete: (id: string | number) => ['mutation', 'orglimit', 'delete', id] as const, } as const; +export const orgLimitAggregateMutationKeys = { + /** All orgLimitAggregate mutation keys */ all: ['mutation', 'orglimitaggregate'] as const, + /** Create orgLimitAggregate mutation key */ create: () => + ['mutation', 'orglimitaggregate', 'create'] as const, + /** Update orgLimitAggregate mutation key */ update: (id: string | number) => + ['mutation', 'orglimitaggregate', 'update', id] as const, + /** Delete orgLimitAggregate mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitaggregate', 'delete', id] as const, +} as const; export const appStepMutationKeys = { /** All appStep mutation keys */ all: ['mutation', 'appstep'] as const, /** Create appStep mutation key */ create: () => ['mutation', 'appstep', 'create'] as const, @@ -896,14 +905,39 @@ export const auditLogMutationKeys = { /** Delete auditLog mutation key */ delete: (id: string | number) => ['mutation', 'auditlog', 'delete', id] as const, } as const; -export const appPermissionDefaultMutationKeys = { - /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, - /** Create appPermissionDefault mutation key */ create: () => - ['mutation', 'apppermissiondefault', 'create'] as const, - /** Update appPermissionDefault mutation key */ update: (id: string | number) => - ['mutation', 'apppermissiondefault', 'update', id] as const, - /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => - ['mutation', 'apppermissiondefault', 'delete', id] as const, +export const agentThreadMutationKeys = { + /** All agentThread mutation keys */ all: ['mutation', 'agentthread'] as const, + /** Create agentThread mutation key */ create: () => + ['mutation', 'agentthread', 'create'] as const, + /** Update agentThread mutation key */ update: (id: string | number) => + ['mutation', 'agentthread', 'update', id] as const, + /** Delete agentThread mutation key */ delete: (id: string | number) => + ['mutation', 'agentthread', 'delete', id] as const, +} as const; +export const agentMessageMutationKeys = { + /** All agentMessage mutation keys */ all: ['mutation', 'agentmessage'] as const, + /** Create agentMessage mutation key */ create: () => + ['mutation', 'agentmessage', 'create'] as const, + /** Update agentMessage mutation key */ update: (id: string | number) => + ['mutation', 'agentmessage', 'update', id] as const, + /** Delete agentMessage mutation key */ delete: (id: string | number) => + ['mutation', 'agentmessage', 'delete', id] as const, +} as const; +export const agentTaskMutationKeys = { + /** All agentTask mutation keys */ all: ['mutation', 'agenttask'] as const, + /** Create agentTask mutation key */ create: () => ['mutation', 'agenttask', 'create'] as const, + /** Update agentTask mutation key */ update: (id: string | number) => + ['mutation', 'agenttask', 'update', id] as const, + /** Delete agentTask mutation key */ delete: (id: string | number) => + ['mutation', 'agenttask', 'delete', id] as const, +} as const; +export const roleTypeMutationKeys = { + /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, + /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, + /** Update roleType mutation key */ update: (id: string | number) => + ['mutation', 'roletype', 'update', id] as const, + /** Delete roleType mutation key */ delete: (id: string | number) => + ['mutation', 'roletype', 'delete', id] as const, } as const; export const identityProviderMutationKeys = { /** All identityProvider mutation keys */ all: ['mutation', 'identityprovider'] as const, @@ -930,13 +964,23 @@ export const storeMutationKeys = { /** Delete store mutation key */ delete: (id: string | number) => ['mutation', 'store', 'delete', id] as const, } as const; -export const roleTypeMutationKeys = { - /** All roleType mutation keys */ all: ['mutation', 'roletype'] as const, - /** Create roleType mutation key */ create: () => ['mutation', 'roletype', 'create'] as const, - /** Update roleType mutation key */ update: (id: string | number) => - ['mutation', 'roletype', 'update', id] as const, - /** Delete roleType mutation key */ delete: (id: string | number) => - ['mutation', 'roletype', 'delete', id] as const, +export const appPermissionDefaultMutationKeys = { + /** All appPermissionDefault mutation keys */ all: ['mutation', 'apppermissiondefault'] as const, + /** Create appPermissionDefault mutation key */ create: () => + ['mutation', 'apppermissiondefault', 'create'] as const, + /** Update appPermissionDefault mutation key */ update: (id: string | number) => + ['mutation', 'apppermissiondefault', 'update', id] as const, + /** Delete appPermissionDefault mutation key */ delete: (id: string | number) => + ['mutation', 'apppermissiondefault', 'delete', id] as const, +} as const; +export const membershipTypeMutationKeys = { + /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, + /** Create membershipType mutation key */ create: () => + ['mutation', 'membershiptype', 'create'] as const, + /** Update membershipType mutation key */ update: (id: string | number) => + ['mutation', 'membershiptype', 'update', id] as const, + /** Delete membershipType mutation key */ delete: (id: string | number) => + ['mutation', 'membershiptype', 'delete', id] as const, } as const; export const migrateFileMutationKeys = { /** All migrateFile mutation keys */ all: ['mutation', 'migratefile'] as const, @@ -947,6 +991,24 @@ export const migrateFileMutationKeys = { /** Delete migrateFile mutation key */ delete: (id: string | number) => ['mutation', 'migratefile', 'delete', id] as const, } as const; +export const devicesModuleMutationKeys = { + /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, + /** Create devicesModule mutation key */ create: () => + ['mutation', 'devicesmodule', 'create'] as const, + /** Update devicesModule mutation key */ update: (id: string | number) => + ['mutation', 'devicesmodule', 'update', id] as const, + /** Delete devicesModule mutation key */ delete: (id: string | number) => + ['mutation', 'devicesmodule', 'delete', id] as const, +} as const; +export const nodeTypeRegistryMutationKeys = { + /** All nodeTypeRegistry mutation keys */ all: ['mutation', 'nodetyperegistry'] as const, + /** Create nodeTypeRegistry mutation key */ create: () => + ['mutation', 'nodetyperegistry', 'create'] as const, + /** Update nodeTypeRegistry mutation key */ update: (id: string | number) => + ['mutation', 'nodetyperegistry', 'update', id] as const, + /** Delete nodeTypeRegistry mutation key */ delete: (id: string | number) => + ['mutation', 'nodetyperegistry', 'delete', id] as const, +} as const; export const appLimitDefaultMutationKeys = { /** All appLimitDefault mutation keys */ all: ['mutation', 'applimitdefault'] as const, /** Create appLimitDefault mutation key */ create: () => @@ -965,15 +1027,6 @@ export const orgLimitDefaultMutationKeys = { /** Delete orgLimitDefault mutation key */ delete: (id: string | number) => ['mutation', 'orglimitdefault', 'delete', id] as const, } as const; -export const devicesModuleMutationKeys = { - /** All devicesModule mutation keys */ all: ['mutation', 'devicesmodule'] as const, - /** Create devicesModule mutation key */ create: () => - ['mutation', 'devicesmodule', 'create'] as const, - /** Update devicesModule mutation key */ update: (id: string | number) => - ['mutation', 'devicesmodule', 'update', id] as const, - /** Delete devicesModule mutation key */ delete: (id: string | number) => - ['mutation', 'devicesmodule', 'delete', id] as const, -} as const; export const userConnectedAccountMutationKeys = { /** All userConnectedAccount mutation keys */ all: ['mutation', 'userconnectedaccount'] as const, /** Create userConnectedAccount mutation key */ create: () => @@ -983,6 +1036,23 @@ export const userConnectedAccountMutationKeys = { /** Delete userConnectedAccount mutation key */ delete: (id: string | number) => ['mutation', 'userconnectedaccount', 'delete', id] as const, } as const; +export const commitMutationKeys = { + /** All commit mutation keys */ all: ['mutation', 'commit'] as const, + /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, + /** Update commit mutation key */ update: (id: string | number) => + ['mutation', 'commit', 'update', id] as const, + /** Delete commit mutation key */ delete: (id: string | number) => + ['mutation', 'commit', 'delete', id] as const, +} as const; +export const rateLimitsModuleMutationKeys = { + /** All rateLimitsModule mutation keys */ all: ['mutation', 'ratelimitsmodule'] as const, + /** Create rateLimitsModule mutation key */ create: () => + ['mutation', 'ratelimitsmodule', 'create'] as const, + /** Update rateLimitsModule mutation key */ update: (id: string | number) => + ['mutation', 'ratelimitsmodule', 'update', id] as const, + /** Delete rateLimitsModule mutation key */ delete: (id: string | number) => + ['mutation', 'ratelimitsmodule', 'delete', id] as const, +} as const; export const appMembershipDefaultMutationKeys = { /** All appMembershipDefault mutation keys */ all: ['mutation', 'appmembershipdefault'] as const, /** Create appMembershipDefault mutation key */ create: () => @@ -1001,31 +1071,32 @@ export const orgMembershipDefaultMutationKeys = { /** Delete orgMembershipDefault mutation key */ delete: (id: string | number) => ['mutation', 'orgmembershipdefault', 'delete', id] as const, } as const; -export const commitMutationKeys = { - /** All commit mutation keys */ all: ['mutation', 'commit'] as const, - /** Create commit mutation key */ create: () => ['mutation', 'commit', 'create'] as const, - /** Update commit mutation key */ update: (id: string | number) => - ['mutation', 'commit', 'update', id] as const, - /** Delete commit mutation key */ delete: (id: string | number) => - ['mutation', 'commit', 'delete', id] as const, -} as const; -export const rateLimitsModuleMutationKeys = { - /** All rateLimitsModule mutation keys */ all: ['mutation', 'ratelimitsmodule'] as const, - /** Create rateLimitsModule mutation key */ create: () => - ['mutation', 'ratelimitsmodule', 'create'] as const, - /** Update rateLimitsModule mutation key */ update: (id: string | number) => - ['mutation', 'ratelimitsmodule', 'update', id] as const, - /** Delete rateLimitsModule mutation key */ delete: (id: string | number) => - ['mutation', 'ratelimitsmodule', 'delete', id] as const, -} as const; -export const membershipTypeMutationKeys = { - /** All membershipType mutation keys */ all: ['mutation', 'membershiptype'] as const, - /** Create membershipType mutation key */ create: () => - ['mutation', 'membershiptype', 'create'] as const, - /** Update membershipType mutation key */ update: (id: string | number) => - ['mutation', 'membershiptype', 'update', id] as const, - /** Delete membershipType mutation key */ delete: (id: string | number) => - ['mutation', 'membershiptype', 'delete', id] as const, +export const appLimitEventMutationKeys = { + /** All appLimitEvent mutation keys */ all: ['mutation', 'applimitevent'] as const, + /** Create appLimitEvent mutation key */ create: () => + ['mutation', 'applimitevent', 'create'] as const, + /** Update appLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'applimitevent', 'update', id] as const, + /** Delete appLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'applimitevent', 'delete', id] as const, +} as const; +export const orgLimitEventMutationKeys = { + /** All orgLimitEvent mutation keys */ all: ['mutation', 'orglimitevent'] as const, + /** Create orgLimitEvent mutation key */ create: () => + ['mutation', 'orglimitevent', 'create'] as const, + /** Update orgLimitEvent mutation key */ update: (id: string | number) => + ['mutation', 'orglimitevent', 'update', id] as const, + /** Delete orgLimitEvent mutation key */ delete: (id: string | number) => + ['mutation', 'orglimitevent', 'delete', id] as const, +} as const; +export const plansModuleMutationKeys = { + /** All plansModule mutation keys */ all: ['mutation', 'plansmodule'] as const, + /** Create plansModule mutation key */ create: () => + ['mutation', 'plansmodule', 'create'] as const, + /** Update plansModule mutation key */ update: (id: string | number) => + ['mutation', 'plansmodule', 'update', id] as const, + /** Delete plansModule mutation key */ delete: (id: string | number) => + ['mutation', 'plansmodule', 'delete', id] as const, } as const; export const rlsModuleMutationKeys = { /** All rlsModule mutation keys */ all: ['mutation', 'rlsmodule'] as const, @@ -1043,22 +1114,14 @@ export const sqlActionMutationKeys = { /** Delete sqlAction mutation key */ delete: (id: string | number) => ['mutation', 'sqlaction', 'delete', id] as const, } as const; -export const orgMembershipSettingMutationKeys = { - /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, - /** Create orgMembershipSetting mutation key */ create: () => - ['mutation', 'orgmembershipsetting', 'create'] as const, - /** Update orgMembershipSetting mutation key */ update: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'update', id] as const, - /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => - ['mutation', 'orgmembershipsetting', 'delete', id] as const, -} as const; -export const userMutationKeys = { - /** All user mutation keys */ all: ['mutation', 'user'] as const, - /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, - /** Update user mutation key */ update: (id: string | number) => - ['mutation', 'user', 'update', id] as const, - /** Delete user mutation key */ delete: (id: string | number) => - ['mutation', 'user', 'delete', id] as const, +export const billingModuleMutationKeys = { + /** All billingModule mutation keys */ all: ['mutation', 'billingmodule'] as const, + /** Create billingModule mutation key */ create: () => + ['mutation', 'billingmodule', 'create'] as const, + /** Update billingModule mutation key */ update: (id: string | number) => + ['mutation', 'billingmodule', 'update', id] as const, + /** Delete billingModule mutation key */ delete: (id: string | number) => + ['mutation', 'billingmodule', 'delete', id] as const, } as const; export const astMigrationMutationKeys = { /** All astMigration mutation keys */ all: ['mutation', 'astmigration'] as const, @@ -1069,6 +1132,23 @@ export const astMigrationMutationKeys = { /** Delete astMigration mutation key */ delete: (id: string | number) => ['mutation', 'astmigration', 'delete', id] as const, } as const; +export const userMutationKeys = { + /** All user mutation keys */ all: ['mutation', 'user'] as const, + /** Create user mutation key */ create: () => ['mutation', 'user', 'create'] as const, + /** Update user mutation key */ update: (id: string | number) => + ['mutation', 'user', 'update', id] as const, + /** Delete user mutation key */ delete: (id: string | number) => + ['mutation', 'user', 'delete', id] as const, +} as const; +export const orgMembershipSettingMutationKeys = { + /** All orgMembershipSetting mutation keys */ all: ['mutation', 'orgmembershipsetting'] as const, + /** Create orgMembershipSetting mutation key */ create: () => + ['mutation', 'orgmembershipsetting', 'create'] as const, + /** Update orgMembershipSetting mutation key */ update: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'update', id] as const, + /** Delete orgMembershipSetting mutation key */ delete: (id: string | number) => + ['mutation', 'orgmembershipsetting', 'delete', id] as const, +} as const; export const appMembershipMutationKeys = { /** All appMembership mutation keys */ all: ['mutation', 'appmembership'] as const, /** Create appMembership mutation key */ create: () => @@ -1265,6 +1345,14 @@ export const customMutationKeys = { identifier ? (['mutation', 'createApiKey', identifier] as const) : (['mutation', 'createApiKey'] as const), + /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => + identifier + ? (['mutation', 'sendVerificationEmail', identifier] as const) + : (['mutation', 'sendVerificationEmail'] as const), + /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => + identifier + ? (['mutation', 'forgotPassword', identifier] as const) + : (['mutation', 'forgotPassword'] as const), /** Mutation key for signUp */ signUp: (identifier?: string) => identifier ? (['mutation', 'signUp', identifier] as const) : (['mutation', 'signUp'] as const), /** Mutation key for requestCrossOriginToken */ requestCrossOriginToken: (identifier?: string) => @@ -1277,22 +1365,10 @@ export const customMutationKeys = { identifier ? (['mutation', 'provisionTable', identifier] as const) : (['mutation', 'provisionTable'] as const), - /** Mutation key for sendVerificationEmail */ sendVerificationEmail: (identifier?: string) => - identifier - ? (['mutation', 'sendVerificationEmail', identifier] as const) - : (['mutation', 'sendVerificationEmail'] as const), - /** Mutation key for forgotPassword */ forgotPassword: (identifier?: string) => - identifier - ? (['mutation', 'forgotPassword', identifier] as const) - : (['mutation', 'forgotPassword'] as const), /** Mutation key for requestUploadUrl */ requestUploadUrl: (identifier?: string) => identifier ? (['mutation', 'requestUploadUrl', identifier] as const) : (['mutation', 'requestUploadUrl'] as const), - /** Mutation key for confirmUpload */ confirmUpload: (identifier?: string) => - identifier - ? (['mutation', 'confirmUpload', identifier] as const) - : (['mutation', 'confirmUpload'] as const), /** Mutation key for provisionBucket */ provisionBucket: (identifier?: string) => identifier ? (['mutation', 'provisionBucket', identifier] as const) @@ -1324,9 +1400,9 @@ export const mutationKeys = { orgGetManagersRecord: orgGetManagersRecordMutationKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordMutationKeys, getAllRecord: getAllRecordMutationKeys, - object: objectMutationKeys, appPermission: appPermissionMutationKeys, orgPermission: orgPermissionMutationKeys, + object: objectMutationKeys, appLevelRequirement: appLevelRequirementMutationKeys, database: databaseMutationKeys, schema: schemaMutationKeys, @@ -1407,6 +1483,7 @@ export const mutationKeys = { orgPermissionDefault: orgPermissionDefaultMutationKeys, appLimit: appLimitMutationKeys, orgLimit: orgLimitMutationKeys, + orgLimitAggregate: orgLimitAggregateMutationKeys, appStep: appStepMutationKeys, appAchievement: appAchievementMutationKeys, appLevel: appLevelMutationKeys, @@ -1419,26 +1496,34 @@ export const mutationKeys = { orgInvite: orgInviteMutationKeys, orgClaimedInvite: orgClaimedInviteMutationKeys, auditLog: auditLogMutationKeys, - appPermissionDefault: appPermissionDefaultMutationKeys, + agentThread: agentThreadMutationKeys, + agentMessage: agentMessageMutationKeys, + agentTask: agentTaskMutationKeys, + roleType: roleTypeMutationKeys, identityProvider: identityProviderMutationKeys, ref: refMutationKeys, store: storeMutationKeys, - roleType: roleTypeMutationKeys, + appPermissionDefault: appPermissionDefaultMutationKeys, + membershipType: membershipTypeMutationKeys, migrateFile: migrateFileMutationKeys, + devicesModule: devicesModuleMutationKeys, + nodeTypeRegistry: nodeTypeRegistryMutationKeys, appLimitDefault: appLimitDefaultMutationKeys, orgLimitDefault: orgLimitDefaultMutationKeys, - devicesModule: devicesModuleMutationKeys, userConnectedAccount: userConnectedAccountMutationKeys, - appMembershipDefault: appMembershipDefaultMutationKeys, - orgMembershipDefault: orgMembershipDefaultMutationKeys, commit: commitMutationKeys, rateLimitsModule: rateLimitsModuleMutationKeys, - membershipType: membershipTypeMutationKeys, + appMembershipDefault: appMembershipDefaultMutationKeys, + orgMembershipDefault: orgMembershipDefaultMutationKeys, + appLimitEvent: appLimitEventMutationKeys, + orgLimitEvent: orgLimitEventMutationKeys, + plansModule: plansModuleMutationKeys, rlsModule: rlsModuleMutationKeys, sqlAction: sqlActionMutationKeys, - orgMembershipSetting: orgMembershipSettingMutationKeys, - user: userMutationKeys, + billingModule: billingModuleMutationKeys, astMigration: astMigrationMutationKeys, + user: userMutationKeys, + orgMembershipSetting: orgMembershipSettingMutationKeys, appMembership: appMembershipMutationKeys, hierarchyModule: hierarchyModuleMutationKeys, custom: customMutationKeys, diff --git a/sdk/constructive-react/src/public/hooks/mutations/index.ts b/sdk/constructive-react/src/public/hooks/mutations/index.ts index 258061226..52dbd89ea 100644 --- a/sdk/constructive-react/src/public/hooks/mutations/index.ts +++ b/sdk/constructive-react/src/public/hooks/mutations/index.ts @@ -6,15 +6,15 @@ export * from './useCreateOrgGetManagersRecordMutation'; export * from './useCreateOrgGetSubordinatesRecordMutation'; export * from './useCreateGetAllRecordMutation'; -export * from './useCreateObjectMutation'; -export * from './useUpdateObjectMutation'; -export * from './useDeleteObjectMutation'; export * from './useCreateAppPermissionMutation'; export * from './useUpdateAppPermissionMutation'; export * from './useDeleteAppPermissionMutation'; export * from './useCreateOrgPermissionMutation'; export * from './useUpdateOrgPermissionMutation'; export * from './useDeleteOrgPermissionMutation'; +export * from './useCreateObjectMutation'; +export * from './useUpdateObjectMutation'; +export * from './useDeleteObjectMutation'; export * from './useCreateAppLevelRequirementMutation'; export * from './useUpdateAppLevelRequirementMutation'; export * from './useDeleteAppLevelRequirementMutation'; @@ -255,6 +255,9 @@ export * from './useDeleteAppLimitMutation'; export * from './useCreateOrgLimitMutation'; export * from './useUpdateOrgLimitMutation'; export * from './useDeleteOrgLimitMutation'; +export * from './useCreateOrgLimitAggregateMutation'; +export * from './useUpdateOrgLimitAggregateMutation'; +export * from './useDeleteOrgLimitAggregateMutation'; export * from './useCreateAppStepMutation'; export * from './useUpdateAppStepMutation'; export * from './useDeleteAppStepMutation'; @@ -291,9 +294,18 @@ export * from './useDeleteOrgClaimedInviteMutation'; export * from './useCreateAuditLogMutation'; export * from './useUpdateAuditLogMutation'; export * from './useDeleteAuditLogMutation'; -export * from './useCreateAppPermissionDefaultMutation'; -export * from './useUpdateAppPermissionDefaultMutation'; -export * from './useDeleteAppPermissionDefaultMutation'; +export * from './useCreateAgentThreadMutation'; +export * from './useUpdateAgentThreadMutation'; +export * from './useDeleteAgentThreadMutation'; +export * from './useCreateAgentMessageMutation'; +export * from './useUpdateAgentMessageMutation'; +export * from './useDeleteAgentMessageMutation'; +export * from './useCreateAgentTaskMutation'; +export * from './useUpdateAgentTaskMutation'; +export * from './useDeleteAgentTaskMutation'; +export * from './useCreateRoleTypeMutation'; +export * from './useUpdateRoleTypeMutation'; +export * from './useDeleteRoleTypeMutation'; export * from './useCreateIdentityProviderMutation'; export * from './useCreateRefMutation'; export * from './useUpdateRefMutation'; @@ -301,46 +313,57 @@ export * from './useDeleteRefMutation'; export * from './useCreateStoreMutation'; export * from './useUpdateStoreMutation'; export * from './useDeleteStoreMutation'; -export * from './useCreateRoleTypeMutation'; -export * from './useUpdateRoleTypeMutation'; -export * from './useDeleteRoleTypeMutation'; +export * from './useCreateAppPermissionDefaultMutation'; +export * from './useUpdateAppPermissionDefaultMutation'; +export * from './useDeleteAppPermissionDefaultMutation'; +export * from './useCreateMembershipTypeMutation'; +export * from './useUpdateMembershipTypeMutation'; +export * from './useDeleteMembershipTypeMutation'; export * from './useCreateMigrateFileMutation'; +export * from './useCreateDevicesModuleMutation'; +export * from './useUpdateDevicesModuleMutation'; +export * from './useDeleteDevicesModuleMutation'; +export * from './useCreateNodeTypeRegistryMutation'; +export * from './useUpdateNodeTypeRegistryMutation'; +export * from './useDeleteNodeTypeRegistryMutation'; export * from './useCreateAppLimitDefaultMutation'; export * from './useUpdateAppLimitDefaultMutation'; export * from './useDeleteAppLimitDefaultMutation'; export * from './useCreateOrgLimitDefaultMutation'; export * from './useUpdateOrgLimitDefaultMutation'; export * from './useDeleteOrgLimitDefaultMutation'; -export * from './useCreateDevicesModuleMutation'; -export * from './useUpdateDevicesModuleMutation'; -export * from './useDeleteDevicesModuleMutation'; export * from './useCreateUserConnectedAccountMutation'; -export * from './useCreateAppMembershipDefaultMutation'; -export * from './useUpdateAppMembershipDefaultMutation'; -export * from './useDeleteAppMembershipDefaultMutation'; -export * from './useCreateOrgMembershipDefaultMutation'; -export * from './useUpdateOrgMembershipDefaultMutation'; -export * from './useDeleteOrgMembershipDefaultMutation'; export * from './useCreateCommitMutation'; export * from './useUpdateCommitMutation'; export * from './useDeleteCommitMutation'; export * from './useCreateRateLimitsModuleMutation'; export * from './useUpdateRateLimitsModuleMutation'; export * from './useDeleteRateLimitsModuleMutation'; -export * from './useCreateMembershipTypeMutation'; -export * from './useUpdateMembershipTypeMutation'; -export * from './useDeleteMembershipTypeMutation'; +export * from './useCreateAppMembershipDefaultMutation'; +export * from './useUpdateAppMembershipDefaultMutation'; +export * from './useDeleteAppMembershipDefaultMutation'; +export * from './useCreateOrgMembershipDefaultMutation'; +export * from './useUpdateOrgMembershipDefaultMutation'; +export * from './useDeleteOrgMembershipDefaultMutation'; +export * from './useCreateAppLimitEventMutation'; +export * from './useCreateOrgLimitEventMutation'; +export * from './useCreatePlansModuleMutation'; +export * from './useUpdatePlansModuleMutation'; +export * from './useDeletePlansModuleMutation'; export * from './useCreateRlsModuleMutation'; export * from './useUpdateRlsModuleMutation'; export * from './useDeleteRlsModuleMutation'; export * from './useCreateSqlActionMutation'; -export * from './useCreateOrgMembershipSettingMutation'; -export * from './useUpdateOrgMembershipSettingMutation'; -export * from './useDeleteOrgMembershipSettingMutation'; +export * from './useCreateBillingModuleMutation'; +export * from './useUpdateBillingModuleMutation'; +export * from './useDeleteBillingModuleMutation'; +export * from './useCreateAstMigrationMutation'; export * from './useCreateUserMutation'; export * from './useUpdateUserMutation'; export * from './useDeleteUserMutation'; -export * from './useCreateAstMigrationMutation'; +export * from './useCreateOrgMembershipSettingMutation'; +export * from './useUpdateOrgMembershipSettingMutation'; +export * from './useDeleteOrgMembershipSettingMutation'; export * from './useCreateAppMembershipMutation'; export * from './useUpdateAppMembershipMutation'; export * from './useDeleteAppMembershipMutation'; @@ -388,12 +411,11 @@ export * from './useSignInCrossOriginMutation'; export * from './useCreateUserDatabaseMutation'; export * from './useExtendTokenExpiresMutation'; export * from './useCreateApiKeyMutation'; +export * from './useSendVerificationEmailMutation'; +export * from './useForgotPasswordMutation'; export * from './useSignUpMutation'; export * from './useRequestCrossOriginTokenMutation'; export * from './useSignInMutation'; export * from './useProvisionTableMutation'; -export * from './useSendVerificationEmailMutation'; -export * from './useForgotPasswordMutation'; export * from './useRequestUploadUrlMutation'; -export * from './useConfirmUploadMutation'; export * from './useProvisionBucketMutation'; diff --git a/sdk/constructive-react/src/public/hooks/mutations/useConfirmUploadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useConfirmUploadMutation.ts deleted file mode 100644 index 30caee165..000000000 --- a/sdk/constructive-react/src/public/hooks/mutations/useConfirmUploadMutation.ts +++ /dev/null @@ -1,55 +0,0 @@ -/** - * Custom mutation hook for confirmUpload - * @generated by @constructive-io/graphql-codegen - * DO NOT EDIT - changes will be overwritten - */ - -import { useMutation } from '@tanstack/react-query'; -import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; -import { getClient } from '../client'; -import { buildSelectionArgs } from '../selection'; -import type { SelectionConfig } from '../selection'; -import { customMutationKeys } from '../mutation-keys'; -import type { ConfirmUploadVariables } from '../../orm/mutation'; -import type { ConfirmUploadPayloadSelect, ConfirmUploadPayload } from '../../orm/input-types'; -import type { InferSelectResult, HookStrictSelect, StrictSelect } from '../../orm/select-types'; -export type { ConfirmUploadVariables } from '../../orm/mutation'; -export type { ConfirmUploadPayloadSelect } from '../../orm/input-types'; -export function useConfirmUploadMutation( - params: { - selection: { - fields: S & ConfirmUploadPayloadSelect; - } & HookStrictSelect, ConfirmUploadPayloadSelect>; - } & Omit< - UseMutationOptions< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables - >, - 'mutationFn' - > -): UseMutationResult< - { - confirmUpload: InferSelectResult | null; - }, - Error, - ConfirmUploadVariables -> { - const args = buildSelectionArgs(params.selection); - const { selection: _selection, ...mutationOptions } = params ?? {}; - void _selection; - return useMutation({ - mutationKey: customMutationKeys.confirmUpload(), - mutationFn: (variables: ConfirmUploadVariables) => - getClient() - .mutation.confirmUpload(variables, { - select: args.select, - } as { - select: S; - } & StrictSelect) - .unwrap(), - ...mutationOptions, - }); -} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts new file mode 100644 index 000000000..e18f3054b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentMessageMutation.ts @@ -0,0 +1,88 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + CreateAgentMessageInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + CreateAgentMessageInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + CreateAgentMessageInput['agentMessage'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + CreateAgentMessageInput['agentMessage'] +>; +export function useCreateAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.create(), + mutationFn: (data: CreateAgentMessageInput['agentMessage']) => + getClient() + .agentMessage.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts new file mode 100644 index 000000000..e685c639f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentTaskMutation.ts @@ -0,0 +1,88 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + CreateAgentTaskInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + CreateAgentTaskInput, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + createAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + CreateAgentTaskInput['agentTask'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + CreateAgentTaskInput['agentTask'] +>; +export function useCreateAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.create(), + mutationFn: (data: CreateAgentTaskInput['agentTask']) => + getClient() + .agentTask.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts new file mode 100644 index 000000000..ca9a0d115 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAgentThreadMutation.ts @@ -0,0 +1,88 @@ +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + CreateAgentThreadInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + CreateAgentThreadInput, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + createAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + CreateAgentThreadInput['agentThread'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + CreateAgentThreadInput['agentThread'] +>; +export function useCreateAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.create(), + mutationFn: (data: CreateAgentThreadInput['agentThread']) => + getClient() + .agentThread.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts new file mode 100644 index 000000000..b34aef46f --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateAppLimitEventMutation.ts @@ -0,0 +1,88 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import { appLimitEventMutationKeys } from '../mutation-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + CreateAppLimitEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + CreateAppLimitEventInput, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateAppLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateAppLimitEventMutation( + params: { + selection: { + fields: S & AppLimitEventSelect; + } & HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + CreateAppLimitEventInput['appLimitEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }, + Error, + CreateAppLimitEventInput['appLimitEvent'] +>; +export function useCreateAppLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: appLimitEventMutationKeys.create(), + mutationFn: (data: CreateAppLimitEventInput['appLimitEvent']) => + getClient() + .appLimitEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: appLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts new file mode 100644 index 000000000..1b8f496ff --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateBillingModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { billingModuleKeys } from '../query-keys'; +import { billingModuleMutationKeys } from '../mutation-keys'; +import type { + BillingModuleSelect, + BillingModuleWithRelations, + CreateBillingModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BillingModuleSelect, + BillingModuleWithRelations, + CreateBillingModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a BillingModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateBillingModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateBillingModuleMutation( + params: { + selection: { + fields: S & BillingModuleSelect; + } & HookStrictSelect, BillingModuleSelect>; + } & Omit< + UseMutationOptions< + { + createBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + CreateBillingModuleInput['billingModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + CreateBillingModuleInput['billingModule'] +>; +export function useCreateBillingModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: billingModuleMutationKeys.create(), + mutationFn: (data: CreateBillingModuleInput['billingModule']) => + getClient() + .billingModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..584e4c995 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateNodeTypeRegistryMutation.ts @@ -0,0 +1,91 @@ +/** + * Create mutation hook for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + CreateNodeTypeRegistryInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + CreateNodeTypeRegistryInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a NodeTypeRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateNodeTypeRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + CreateNodeTypeRegistryInput['nodeTypeRegistry'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + CreateNodeTypeRegistryInput['nodeTypeRegistry'] +>; +export function useCreateNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.create(), + mutationFn: (data: CreateNodeTypeRegistryInput['nodeTypeRegistry']) => + getClient() + .nodeTypeRegistry.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..c3f671b70 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitAggregateMutation.ts @@ -0,0 +1,91 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + CreateOrgLimitAggregateInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + CreateOrgLimitAggregateInput, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitAggregateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + CreateOrgLimitAggregateInput['orgLimitAggregate'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + CreateOrgLimitAggregateInput['orgLimitAggregate'] +>; +export function useCreateOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.create(), + mutationFn: (data: CreateOrgLimitAggregateInput['orgLimitAggregate']) => + getClient() + .orgLimitAggregate.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts new file mode 100644 index 000000000..48f74d4a9 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreateOrgLimitEventMutation.ts @@ -0,0 +1,88 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import { orgLimitEventMutationKeys } from '../mutation-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + CreateOrgLimitEventInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + CreateOrgLimitEventInput, +} from '../../orm/input-types'; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { mutate, isPending } = useCreateOrgLimitEventMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreateOrgLimitEventMutation( + params: { + selection: { + fields: S & OrgLimitEventSelect; + } & HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseMutationOptions< + { + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + CreateOrgLimitEventInput['orgLimitEvent'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }, + Error, + CreateOrgLimitEventInput['orgLimitEvent'] +>; +export function useCreateOrgLimitEventMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitEventMutationKeys.create(), + mutationFn: (data: CreateOrgLimitEventInput['orgLimitEvent']) => + getClient() + .orgLimitEvent.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: orgLimitEventKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts new file mode 100644 index 000000000..d109b989b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useCreatePlansModuleMutation.ts @@ -0,0 +1,88 @@ +/** + * Create mutation hook for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { plansModuleKeys } from '../query-keys'; +import { plansModuleMutationKeys } from '../mutation-keys'; +import type { + PlansModuleSelect, + PlansModuleWithRelations, + CreatePlansModuleInput, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlansModuleSelect, + PlansModuleWithRelations, + CreatePlansModuleInput, +} from '../../orm/input-types'; +/** + * Mutation hook for creating a PlansModule + * + * @example + * ```tsx + * const { mutate, isPending } = useCreatePlansModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'New item' }); + * ``` + */ +export function useCreatePlansModuleMutation( + params: { + selection: { + fields: S & PlansModuleSelect; + } & HookStrictSelect, PlansModuleSelect>; + } & Omit< + UseMutationOptions< + { + createPlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + CreatePlansModuleInput['plansModule'] + >, + 'mutationFn' + > +): UseMutationResult< + { + createPlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + CreatePlansModuleInput['plansModule'] +>; +export function useCreatePlansModuleMutation( + params: { + selection: SelectionConfig; + } & Omit, 'mutationFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: plansModuleMutationKeys.create(), + mutationFn: (data: CreatePlansModuleInput['plansModule']) => + getClient() + .plansModule.create({ + data, + select: args.select, + }) + .unwrap(), + onSuccess: () => { + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts new file mode 100644 index 000000000..d86415ae8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentMessageMutation.ts @@ -0,0 +1,98 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentMessageMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentMessage.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts new file mode 100644 index 000000000..27102854d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentTaskMutation.ts @@ -0,0 +1,98 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentTaskMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentTask.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts new file mode 100644 index 000000000..0e2a735c8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteAgentThreadMutation.ts @@ -0,0 +1,98 @@ +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteAgentThreadMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .agentThread.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: agentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts new file mode 100644 index 000000000..bf31120cb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteBillingModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { billingModuleKeys } from '../query-keys'; +import { billingModuleMutationKeys } from '../mutation-keys'; +import type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a BillingModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteBillingModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteBillingModuleMutation( + params: { + selection: { + fields: S & BillingModuleSelect; + } & HookStrictSelect, BillingModuleSelect>; + } & Omit< + UseMutationOptions< + { + deleteBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteBillingModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: billingModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .billingModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: billingModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..a7a6c2ece --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteNodeTypeRegistryMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a NodeTypeRegistry with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteNodeTypeRegistryMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ name: 'value-to-delete' }); + * ``` + */ +export function useDeleteNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + } +>; +export function useDeleteNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + name: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.all, + mutationFn: ({ name }: { name: string }) => + getClient() + .nodeTypeRegistry.delete({ + where: { + name, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: nodeTypeRegistryKeys.detail(variables.name), + }); + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..a946d49de --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeleteOrgLimitAggregateMutation.ts @@ -0,0 +1,104 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useDeleteOrgLimitAggregateMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeleteOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeleteOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .orgLimitAggregate.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: orgLimitAggregateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts new file mode 100644 index 000000000..880e7d1cf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useDeletePlansModuleMutation.ts @@ -0,0 +1,98 @@ +/** + * Delete mutation hook for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { plansModuleKeys } from '../query-keys'; +import { plansModuleMutationKeys } from '../mutation-keys'; +import type { PlansModuleSelect, PlansModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlansModuleSelect, PlansModuleWithRelations } from '../../orm/input-types'; +/** + * Mutation hook for deleting a PlansModule with typed selection + * + * @example + * ```tsx + * const { mutate, isPending } = useDeletePlansModuleMutation({ + * selection: { fields: { id: true } }, + * }); + * + * mutate({ id: 'value-to-delete' }); + * ``` + */ +export function useDeletePlansModuleMutation( + params: { + selection: { + fields: S & PlansModuleSelect; + } & HookStrictSelect, PlansModuleSelect>; + } & Omit< + UseMutationOptions< + { + deletePlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + deletePlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + { + id: string; + } +>; +export function useDeletePlansModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: plansModuleMutationKeys.all, + mutationFn: ({ id }: { id: string }) => + getClient() + .plansModule.delete({ + where: { + id, + }, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.removeQueries({ + queryKey: plansModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts new file mode 100644 index 000000000..bb5b91999 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentMessageMutation.ts @@ -0,0 +1,110 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import { agentMessageMutationKeys } from '../mutation-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessagePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessagePatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentMessageMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentMessagePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentMessageMutation( + params: { + selection: { + fields: S & AgentMessageSelect; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } +>; +export function useUpdateAgentMessageMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentMessagePatch: AgentMessagePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentMessageMutationKeys.all, + mutationFn: ({ id, agentMessagePatch }: { id: string; agentMessagePatch: AgentMessagePatch }) => + getClient() + .agentMessage.update({ + where: { + id, + }, + data: agentMessagePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentMessageKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts new file mode 100644 index 000000000..a52684732 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentTaskMutation.ts @@ -0,0 +1,110 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import { agentTaskMutationKeys } from '../mutation-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskPatch, +} from '../../orm/input-types'; +/** + * 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. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentTaskMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentTaskPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentTaskMutation( + params: { + selection: { + fields: S & AgentTaskSelect; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentTask: { + agentTask: InferSelectResult; + }; + }, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } +>; +export function useUpdateAgentTaskMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentTaskPatch: AgentTaskPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentTaskMutationKeys.all, + mutationFn: ({ id, agentTaskPatch }: { id: string; agentTaskPatch: AgentTaskPatch }) => + getClient() + .agentTask.update({ + where: { + id, + }, + data: agentTaskPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentTaskKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts new file mode 100644 index 000000000..a616adb32 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateAgentThreadMutation.ts @@ -0,0 +1,110 @@ +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import { agentThreadMutationKeys } from '../mutation-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadPatch, +} from '../../orm/input-types'; +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateAgentThreadMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', agentThreadPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateAgentThreadMutation( + params: { + selection: { + fields: S & AgentThreadSelect; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseMutationOptions< + { + updateAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateAgentThread: { + agentThread: InferSelectResult; + }; + }, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } +>; +export function useUpdateAgentThreadMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + agentThreadPatch: AgentThreadPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: agentThreadMutationKeys.all, + mutationFn: ({ id, agentThreadPatch }: { id: string; agentThreadPatch: AgentThreadPatch }) => + getClient() + .agentThread.update({ + where: { + id, + }, + data: agentThreadPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: agentThreadKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts new file mode 100644 index 000000000..def9a7e31 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateBillingModuleMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { billingModuleKeys } from '../query-keys'; +import { billingModuleMutationKeys } from '../mutation-keys'; +import type { + BillingModuleSelect, + BillingModuleWithRelations, + BillingModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + BillingModuleSelect, + BillingModuleWithRelations, + BillingModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a BillingModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateBillingModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', billingModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateBillingModuleMutation( + params: { + selection: { + fields: S & BillingModuleSelect; + } & HookStrictSelect, BillingModuleSelect>; + } & Omit< + UseMutationOptions< + { + updateBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + { + id: string; + billingModulePatch: BillingModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateBillingModule: { + billingModule: InferSelectResult; + }; + }, + Error, + { + id: string; + billingModulePatch: BillingModulePatch; + } +>; +export function useUpdateBillingModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + billingModulePatch: BillingModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: billingModuleMutationKeys.all, + mutationFn: ({ + id, + billingModulePatch, + }: { + id: string; + billingModulePatch: BillingModulePatch; + }) => + getClient() + .billingModule.update({ + where: { + id, + }, + data: billingModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: billingModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts new file mode 100644 index 000000000..86d619ebb --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateNodeTypeRegistryMutation.ts @@ -0,0 +1,116 @@ +/** + * Update mutation hook for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { nodeTypeRegistryKeys } from '../query-keys'; +import { nodeTypeRegistryMutationKeys } from '../mutation-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryPatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryPatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a NodeTypeRegistry + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateNodeTypeRegistryMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ name: 'value-here', nodeTypeRegistryPatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateNodeTypeRegistryMutation( + params: { + selection: { + fields: S & NodeTypeRegistrySelect; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseMutationOptions< + { + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } +>; +export function useUpdateNodeTypeRegistryMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: nodeTypeRegistryMutationKeys.all, + mutationFn: ({ + name, + nodeTypeRegistryPatch, + }: { + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; + }) => + getClient() + .nodeTypeRegistry.update({ + where: { + name, + }, + data: nodeTypeRegistryPatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.detail(variables.name), + }); + queryClient.invalidateQueries({ + queryKey: nodeTypeRegistryKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts new file mode 100644 index 000000000..1c24df7ca --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdateOrgLimitAggregateMutation.ts @@ -0,0 +1,116 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import { orgLimitAggregateMutationKeys } from '../mutation-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregatePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregatePatch, +} from '../../orm/input-types'; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdateOrgLimitAggregateMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', orgLimitAggregatePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdateOrgLimitAggregateMutation( + params: { + selection: { + fields: S & OrgLimitAggregateSelect; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseMutationOptions< + { + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } +>; +export function useUpdateOrgLimitAggregateMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: orgLimitAggregateMutationKeys.all, + mutationFn: ({ + id, + orgLimitAggregatePatch, + }: { + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; + }) => + getClient() + .orgLimitAggregate.update({ + where: { + id, + }, + data: orgLimitAggregatePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: orgLimitAggregateKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts new file mode 100644 index 000000000..1d6f585d8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/mutations/useUpdatePlansModuleMutation.ts @@ -0,0 +1,110 @@ +/** + * Update mutation hook for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useMutation, useQueryClient } from '@tanstack/react-query'; +import type { UseMutationOptions, UseMutationResult } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { plansModuleKeys } from '../query-keys'; +import { plansModuleMutationKeys } from '../mutation-keys'; +import type { + PlansModuleSelect, + PlansModuleWithRelations, + PlansModulePatch, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + PlansModuleSelect, + PlansModuleWithRelations, + PlansModulePatch, +} from '../../orm/input-types'; +/** + * Mutation hook for updating a PlansModule + * + * @example + * ```tsx + * const { mutate, isPending } = useUpdatePlansModuleMutation({ + * selection: { fields: { id: true, name: true } }, + * }); + * + * mutate({ id: 'value-here', plansModulePatch: { name: 'Updated' } }); + * ``` + */ +export function useUpdatePlansModuleMutation( + params: { + selection: { + fields: S & PlansModuleSelect; + } & HookStrictSelect, PlansModuleSelect>; + } & Omit< + UseMutationOptions< + { + updatePlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + { + id: string; + plansModulePatch: PlansModulePatch; + } + >, + 'mutationFn' + > +): UseMutationResult< + { + updatePlansModule: { + plansModule: InferSelectResult; + }; + }, + Error, + { + id: string; + plansModulePatch: PlansModulePatch; + } +>; +export function useUpdatePlansModuleMutation( + params: { + selection: SelectionConfig; + } & Omit< + UseMutationOptions< + any, + Error, + { + id: string; + plansModulePatch: PlansModulePatch; + } + >, + 'mutationFn' + > +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...mutationOptions } = params ?? {}; + void _selection; + const queryClient = useQueryClient(); + return useMutation({ + mutationKey: plansModuleMutationKeys.all, + mutationFn: ({ id, plansModulePatch }: { id: string; plansModulePatch: PlansModulePatch }) => + getClient() + .plansModule.update({ + where: { + id, + }, + data: plansModulePatch, + select: args.select, + }) + .unwrap(), + onSuccess: (_, variables) => { + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.detail(variables.id), + }); + queryClient.invalidateQueries({ + queryKey: plansModuleKeys.lists(), + }); + }, + ...mutationOptions, + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/index.ts b/sdk/constructive-react/src/public/hooks/queries/index.ts index f42ddc46e..c82372532 100644 --- a/sdk/constructive-react/src/public/hooks/queries/index.ts +++ b/sdk/constructive-react/src/public/hooks/queries/index.ts @@ -6,12 +6,12 @@ export * from './useOrgGetManagersQuery'; export * from './useOrgGetSubordinatesQuery'; export * from './useGetAllQuery'; -export * from './useObjectsQuery'; -export * from './useObjectQuery'; export * from './useAppPermissionsQuery'; export * from './useAppPermissionQuery'; export * from './useOrgPermissionsQuery'; export * from './useOrgPermissionQuery'; +export * from './useObjectsQuery'; +export * from './useObjectQuery'; export * from './useAppLevelRequirementsQuery'; export * from './useAppLevelRequirementQuery'; export * from './useDatabasesQuery'; @@ -172,6 +172,8 @@ export * from './useAppLimitsQuery'; export * from './useAppLimitQuery'; export * from './useOrgLimitsQuery'; export * from './useOrgLimitQuery'; +export * from './useOrgLimitAggregatesQuery'; +export * from './useOrgLimitAggregateQuery'; export * from './useAppStepsQuery'; export * from './useAppStepQuery'; export * from './useAppAchievementsQuery'; @@ -196,45 +198,59 @@ export * from './useOrgClaimedInvitesQuery'; export * from './useOrgClaimedInviteQuery'; export * from './useAuditLogsQuery'; export * from './useAuditLogQuery'; -export * from './useAppPermissionDefaultsQuery'; -export * from './useAppPermissionDefaultQuery'; +export * from './useAgentThreadsQuery'; +export * from './useAgentThreadQuery'; +export * from './useAgentMessagesQuery'; +export * from './useAgentMessageQuery'; +export * from './useAgentTasksQuery'; +export * from './useAgentTaskQuery'; +export * from './useRoleTypesQuery'; +export * from './useRoleTypeQuery'; export * from './useIdentityProvidersQuery'; export * from './useRefsQuery'; export * from './useRefQuery'; export * from './useStoresQuery'; export * from './useStoreQuery'; -export * from './useRoleTypesQuery'; -export * from './useRoleTypeQuery'; +export * from './useAppPermissionDefaultsQuery'; +export * from './useAppPermissionDefaultQuery'; +export * from './useMembershipTypesQuery'; +export * from './useMembershipTypeQuery'; export * from './useMigrateFilesQuery'; export * from './useMigrateFileQuery'; +export * from './useDevicesModulesQuery'; +export * from './useDevicesModuleQuery'; +export * from './useNodeTypeRegistriesQuery'; +export * from './useNodeTypeRegistryQuery'; export * from './useAppLimitDefaultsQuery'; export * from './useAppLimitDefaultQuery'; export * from './useOrgLimitDefaultsQuery'; export * from './useOrgLimitDefaultQuery'; -export * from './useDevicesModulesQuery'; -export * from './useDevicesModuleQuery'; export * from './useUserConnectedAccountsQuery'; export * from './useUserConnectedAccountQuery'; -export * from './useAppMembershipDefaultsQuery'; -export * from './useAppMembershipDefaultQuery'; -export * from './useOrgMembershipDefaultsQuery'; -export * from './useOrgMembershipDefaultQuery'; export * from './useCommitsQuery'; export * from './useCommitQuery'; export * from './useRateLimitsModulesQuery'; export * from './useRateLimitsModuleQuery'; -export * from './useMembershipTypesQuery'; -export * from './useMembershipTypeQuery'; +export * from './useAppMembershipDefaultsQuery'; +export * from './useAppMembershipDefaultQuery'; +export * from './useOrgMembershipDefaultsQuery'; +export * from './useOrgMembershipDefaultQuery'; +export * from './useAppLimitEventsQuery'; +export * from './useOrgLimitEventsQuery'; +export * from './usePlansModulesQuery'; +export * from './usePlansModuleQuery'; export * from './useRlsModulesQuery'; export * from './useRlsModuleQuery'; export * from './useSqlActionsQuery'; export * from './useSqlActionQuery'; -export * from './useOrgMembershipSettingsQuery'; -export * from './useOrgMembershipSettingQuery'; -export * from './useUsersQuery'; -export * from './useUserQuery'; +export * from './useBillingModulesQuery'; +export * from './useBillingModuleQuery'; export * from './useAstMigrationsQuery'; export * from './useAstMigrationQuery'; +export * from './useUsersQuery'; +export * from './useUserQuery'; +export * from './useOrgMembershipSettingsQuery'; +export * from './useOrgMembershipSettingQuery'; export * from './useAppMembershipsQuery'; export * from './useAppMembershipQuery'; export * from './useHierarchyModulesQuery'; @@ -254,10 +270,10 @@ export * from './useOrgPermissionsGetMaskQuery'; export * from './useResolveBlueprintTableQuery'; export * from './useAppPermissionsGetMaskByNamesQuery'; export * from './useOrgPermissionsGetMaskByNamesQuery'; +export * from './useAppPermissionsGetByMaskQuery'; +export * from './useOrgPermissionsGetByMaskQuery'; export * from './useGetAllObjectsFromRootQuery'; export * from './useGetPathObjectsFromRootQuery'; export * from './useGetObjectAtPathQuery'; -export * from './useAppPermissionsGetByMaskQuery'; -export * from './useOrgPermissionsGetByMaskQuery'; export * from './useStepsRequiredQuery'; export * from './useCurrentUserQuery'; diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts new file mode 100644 index 000000000..43b045d23 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentMessageQuery.ts @@ -0,0 +1,138 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentMessageSelect, AgentMessageWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentMessageQueryKey = agentMessageKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentMessageQuery< + S extends AgentMessageSelect, + TData = { + agentMessage: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + agentMessage: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentMessageQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchAgentMessageQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentMessageQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; +}): Promise<{ + agentMessage: InferSelectResult | null; +}>; +export async function fetchAgentMessageQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchAgentMessageQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentMessageSelect>; + } +): Promise; +export async function prefetchAgentMessageQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentMessageKeys.detail(params.id), + queryFn: () => + getClient() + .agentMessage.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts new file mode 100644 index 000000000..dd84a5d24 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentMessagesQuery.ts @@ -0,0 +1,145 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentMessageKeys } from '../query-keys'; +import type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentMessageSelect, + AgentMessageWithRelations, + AgentMessageFilter, + AgentMessageOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentMessagesQueryKey = agentMessageKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentMessagesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentMessagesQuery< + S extends AgentMessageSelect, + TData = { + agentMessages: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; + } & Omit< + UseQueryOptions< + { + agentMessages: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentMessagesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentMessageKeys.list(args), + queryFn: () => getClient().agentMessage.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchAgentMessagesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentMessagesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; +}): Promise<{ + agentMessages: ConnectionResult>; +}>; +export async function fetchAgentMessagesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentMessage.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchAgentMessagesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentMessageSelect>; + } +): Promise; +export async function prefetchAgentMessagesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentMessageKeys.list(args), + queryFn: () => getClient().agentMessage.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts new file mode 100644 index 000000000..d75722785 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentTaskQuery.ts @@ -0,0 +1,138 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentTaskSelect, AgentTaskWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentTaskQueryKey = agentTaskKeys.detail; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentTaskQuery< + S extends AgentTaskSelect, + TData = { + agentTask: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + agentTask: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentTaskQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchAgentTaskQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentTaskQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; +}): Promise<{ + agentTask: InferSelectResult | null; +}>; +export async function fetchAgentTaskQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchAgentTaskQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentTaskSelect>; + } +): Promise; +export async function prefetchAgentTaskQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentTaskKeys.detail(params.id), + queryFn: () => + getClient() + .agentTask.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts new file mode 100644 index 000000000..caf663456 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentTasksQuery.ts @@ -0,0 +1,145 @@ +/** + * 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. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentTaskKeys } from '../query-keys'; +import type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentTaskSelect, + AgentTaskWithRelations, + AgentTaskFilter, + AgentTaskOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentTasksQueryKey = agentTaskKeys.list; +/** + * 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. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentTasksQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentTasksQuery< + S extends AgentTaskSelect, + TData = { + agentTasks: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; + } & Omit< + UseQueryOptions< + { + agentTasks: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentTasksQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentTaskKeys.list(args), + queryFn: () => getClient().agentTask.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * 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. + * + * @example + * ```ts + * const data = await fetchAgentTasksQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentTasksQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; +}): Promise<{ + agentTasks: ConnectionResult>; +}>; +export async function fetchAgentTasksQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentTask.findMany(args).unwrap(); +} +/** + * 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. + * + * @example + * ```ts + * await prefetchAgentTasksQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentTaskSelect>; + } +): Promise; +export async function prefetchAgentTasksQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentTaskKeys.list(args), + queryFn: () => getClient().agentTask.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts new file mode 100644 index 000000000..d044abf8d --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadQuery.ts @@ -0,0 +1,138 @@ +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { AgentThreadSelect, AgentThreadWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentThreadQueryKey = agentThreadKeys.detail; +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useAgentThreadQuery< + S extends AgentThreadSelect, + TData = { + agentThread: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + agentThread: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentThreadQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```ts + * const data = await fetchAgentThreadQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchAgentThreadQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; +}): Promise<{ + agentThread: InferSelectResult | null; +}>; +export async function fetchAgentThreadQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```ts + * await prefetchAgentThreadQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, AgentThreadSelect>; + } +): Promise; +export async function prefetchAgentThreadQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: agentThreadKeys.detail(params.id), + queryFn: () => + getClient() + .agentThread.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts new file mode 100644 index 000000000..030fcedb1 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAgentThreadsQuery.ts @@ -0,0 +1,145 @@ +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { agentThreadKeys } from '../query-keys'; +import type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AgentThreadSelect, + AgentThreadWithRelations, + AgentThreadFilter, + AgentThreadOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const agentThreadsQueryKey = agentThreadKeys.list; +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```tsx + * const { data, isLoading } = useAgentThreadsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAgentThreadsQuery< + S extends AgentThreadSelect, + TData = { + agentThreads: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; + } & Omit< + UseQueryOptions< + { + agentThreads: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAgentThreadsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: agentThreadKeys.list(args), + queryFn: () => getClient().agentThread.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```ts + * const data = await fetchAgentThreadsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAgentThreadsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; +}): Promise<{ + agentThreads: ConnectionResult>; +}>; +export async function fetchAgentThreadsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().agentThread.findMany(args).unwrap(); +} +/** + * Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. + * + * @example + * ```ts + * await prefetchAgentThreadsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AgentThreadSelect>; + } +): Promise; +export async function prefetchAgentThreadsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: agentThreadKeys.list(args), + queryFn: () => getClient().agentThread.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts new file mode 100644 index 000000000..034cba89c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useAppLimitEventsQuery.ts @@ -0,0 +1,151 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { appLimitEventKeys } from '../query-keys'; +import type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + AppLimitEventSelect, + AppLimitEventWithRelations, + AppLimitEventFilter, + AppLimitEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const appLimitEventsQueryKey = appLimitEventKeys.list; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useAppLimitEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useAppLimitEventsQuery< + S extends AppLimitEventSelect, + TData = { + appLimitEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + appLimitEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useAppLimitEventsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: appLimitEventKeys.list(args), + queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchAppLimitEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchAppLimitEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; +}): Promise<{ + appLimitEvents: ConnectionResult>; +}>; +export async function fetchAppLimitEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + return getClient().appLimitEvent.findMany(args).unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchAppLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchAppLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, AppLimitEventSelect>; + } +): Promise; +export async function prefetchAppLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: appLimitEventKeys.list(args), + queryFn: () => getClient().appLimitEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts new file mode 100644 index 000000000..3a1aa4c11 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBillingModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { billingModuleKeys } from '../query-keys'; +import type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { BillingModuleSelect, BillingModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const billingModuleQueryKey = billingModuleKeys.detail; +/** + * Query hook for fetching a single BillingModule + * + * @example + * ```tsx + * const { data, isLoading } = useBillingModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useBillingModuleQuery< + S extends BillingModuleSelect, + TData = { + billingModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BillingModuleSelect>; + } & Omit< + UseQueryOptions< + { + billingModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBillingModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: billingModuleKeys.detail(params.id), + queryFn: () => + getClient() + .billingModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single BillingModule without React hooks + * + * @example + * ```ts + * const data = await fetchBillingModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchBillingModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BillingModuleSelect>; +}): Promise<{ + billingModule: InferSelectResult | null; +}>; +export async function fetchBillingModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .billingModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single BillingModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchBillingModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchBillingModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, BillingModuleSelect>; + } +): Promise; +export async function prefetchBillingModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: billingModuleKeys.detail(params.id), + queryFn: () => + getClient() + .billingModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts new file mode 100644 index 000000000..15f0707ab --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useBillingModulesQuery.ts @@ -0,0 +1,151 @@ +/** + * List query hook for BillingModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { billingModuleKeys } from '../query-keys'; +import type { + BillingModuleSelect, + BillingModuleWithRelations, + BillingModuleFilter, + BillingModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + BillingModuleSelect, + BillingModuleWithRelations, + BillingModuleFilter, + BillingModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const billingModulesQueryKey = billingModuleKeys.list; +/** + * Query hook for fetching BillingModule list + * + * @example + * ```tsx + * const { data, isLoading } = useBillingModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useBillingModulesQuery< + S extends BillingModuleSelect, + TData = { + billingModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BillingModuleSelect>; + } & Omit< + UseQueryOptions< + { + billingModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useBillingModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: billingModuleKeys.list(args), + queryFn: () => getClient().billingModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch BillingModule list without React hooks + * + * @example + * ```ts + * const data = await fetchBillingModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchBillingModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BillingModuleSelect>; +}): Promise<{ + billingModules: ConnectionResult>; +}>; +export async function fetchBillingModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy + >(params.selection); + return getClient().billingModule.findMany(args).unwrap(); +} +/** + * Prefetch BillingModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchBillingModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchBillingModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, BillingModuleSelect>; + } +): Promise; +export async function prefetchBillingModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: billingModuleKeys.list(args), + queryFn: () => getClient().billingModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts new file mode 100644 index 000000000..1a6d70d89 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistriesQuery.ts @@ -0,0 +1,163 @@ +/** + * List query hook for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { nodeTypeRegistryKeys } from '../query-keys'; +import type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + NodeTypeRegistrySelect, + NodeTypeRegistryWithRelations, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const nodeTypeRegistriesQueryKey = nodeTypeRegistryKeys.list; +/** + * Query hook for fetching NodeTypeRegistry list + * + * @example + * ```tsx + * const { data, isLoading } = useNodeTypeRegistriesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useNodeTypeRegistriesQuery< + S extends NodeTypeRegistrySelect, + TData = { + nodeTypeRegistries: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseQueryOptions< + { + nodeTypeRegistries: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNodeTypeRegistriesQuery( + params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: nodeTypeRegistryKeys.list(args), + queryFn: () => getClient().nodeTypeRegistry.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch NodeTypeRegistry list without React hooks + * + * @example + * ```ts + * const data = await fetchNodeTypeRegistriesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchNodeTypeRegistriesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; +}): Promise<{ + nodeTypeRegistries: ConnectionResult>; +}>; +export async function fetchNodeTypeRegistriesQuery(params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; +}) { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + return getClient().nodeTypeRegistry.findMany(args).unwrap(); +} +/** + * Prefetch NodeTypeRegistry list for SSR or cache warming + * + * @example + * ```ts + * await prefetchNodeTypeRegistriesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchNodeTypeRegistriesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, NodeTypeRegistrySelect>; + } +): Promise; +export async function prefetchNodeTypeRegistriesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: nodeTypeRegistryKeys.list(args), + queryFn: () => getClient().nodeTypeRegistry.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts new file mode 100644 index 000000000..ed4f7659b --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useNodeTypeRegistryQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for NodeTypeRegistry + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { nodeTypeRegistryKeys } from '../query-keys'; +import type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { NodeTypeRegistrySelect, NodeTypeRegistryWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const nodeTypeRegistryQueryKey = nodeTypeRegistryKeys.detail; +/** + * Query hook for fetching a single NodeTypeRegistry + * + * @example + * ```tsx + * const { data, isLoading } = useNodeTypeRegistryQuery({ + * name: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useNodeTypeRegistryQuery< + S extends NodeTypeRegistrySelect, + TData = { + nodeTypeRegistry: InferSelectResult | null; + }, +>( + params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } & Omit< + UseQueryOptions< + { + nodeTypeRegistry: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useNodeTypeRegistryQuery( + params: { + name: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: nodeTypeRegistryKeys.detail(params.name), + queryFn: () => + getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single NodeTypeRegistry without React hooks + * + * @example + * ```ts + * const data = await fetchNodeTypeRegistryQuery({ + * name: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchNodeTypeRegistryQuery(params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; +}): Promise<{ + nodeTypeRegistry: InferSelectResult | null; +}>; +export async function fetchNodeTypeRegistryQuery(params: { + name: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single NodeTypeRegistry for SSR or cache warming + * + * @example + * ```ts + * await prefetchNodeTypeRegistryQuery(queryClient, { name: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchNodeTypeRegistryQuery( + queryClient: QueryClient, + params: { + name: string; + selection: { + fields: S; + } & HookStrictSelect, NodeTypeRegistrySelect>; + } +): Promise; +export async function prefetchNodeTypeRegistryQuery( + queryClient: QueryClient, + params: { + name: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: nodeTypeRegistryKeys.detail(params.name), + queryFn: () => + getClient() + .nodeTypeRegistry.findOne({ + name: params.name, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts new file mode 100644 index 000000000..c2b56b3d0 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregateQuery.ts @@ -0,0 +1,144 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitAggregateQueryKey = orgLimitAggregateKeys.detail; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitAggregateQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function useOrgLimitAggregateQuery< + S extends OrgLimitAggregateSelect, + TData = { + orgLimitAggregate: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitAggregate: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitAggregateQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitAggregateKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * const data = await fetchOrgLimitAggregateQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchOrgLimitAggregateQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; +}): Promise<{ + orgLimitAggregate: InferSelectResult | null; +}>; +export async function fetchOrgLimitAggregateQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * await prefetchOrgLimitAggregateQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchOrgLimitAggregateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, OrgLimitAggregateSelect>; + } +): Promise; +export async function prefetchOrgLimitAggregateQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitAggregateKeys.detail(params.id), + queryFn: () => + getClient() + .orgLimitAggregate.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts new file mode 100644 index 000000000..9f0caf3f3 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitAggregatesQuery.ts @@ -0,0 +1,163 @@ +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgLimitAggregateKeys } from '../query-keys'; +import type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitAggregateSelect, + OrgLimitAggregateWithRelations, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitAggregatesQueryKey = orgLimitAggregateKeys.list; +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitAggregatesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitAggregatesQuery< + S extends OrgLimitAggregateSelect, + TData = { + orgLimitAggregates: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitAggregates: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitAggregatesQuery( + params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitAggregateKeys.list(args), + queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * const data = await fetchOrgLimitAggregatesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitAggregatesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; +}): Promise<{ + orgLimitAggregates: ConnectionResult>; +}>; +export async function fetchOrgLimitAggregatesQuery(params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; +}) { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + return getClient().orgLimitAggregate.findMany(args).unwrap(); +} +/** + * Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) + * + * @example + * ```ts + * await prefetchOrgLimitAggregatesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitAggregatesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitAggregateSelect>; + } +): Promise; +export async function prefetchOrgLimitAggregatesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitAggregateKeys.list(args), + queryFn: () => getClient().orgLimitAggregate.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts new file mode 100644 index 000000000..66ba8768c --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/useOrgLimitEventsQuery.ts @@ -0,0 +1,151 @@ +/** + * Append-only log of limit events for historical reporting and audit + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { orgLimitEventKeys } from '../query-keys'; +import type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + OrgLimitEventSelect, + OrgLimitEventWithRelations, + OrgLimitEventFilter, + OrgLimitEventOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const orgLimitEventsQueryKey = orgLimitEventKeys.list; +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```tsx + * const { data, isLoading } = useOrgLimitEventsQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function useOrgLimitEventsQuery< + S extends OrgLimitEventSelect, + TData = { + orgLimitEvents: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; + } & Omit< + UseQueryOptions< + { + orgLimitEvents: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function useOrgLimitEventsQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: orgLimitEventKeys.list(args), + queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * const data = await fetchOrgLimitEventsQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchOrgLimitEventsQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; +}): Promise<{ + orgLimitEvents: ConnectionResult>; +}>; +export async function fetchOrgLimitEventsQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + return getClient().orgLimitEvent.findMany(args).unwrap(); +} +/** + * Append-only log of limit events for historical reporting and audit + * + * @example + * ```ts + * await prefetchOrgLimitEventsQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchOrgLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, OrgLimitEventSelect>; + } +): Promise; +export async function prefetchOrgLimitEventsQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs< + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy + >(params.selection); + await queryClient.prefetchQuery({ + queryKey: orgLimitEventKeys.list(args), + queryFn: () => getClient().orgLimitEvent.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts new file mode 100644 index 000000000..7c3f926e8 --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePlansModuleQuery.ts @@ -0,0 +1,138 @@ +/** + * Single item query hook for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildSelectionArgs } from '../selection'; +import type { SelectionConfig } from '../selection'; +import { plansModuleKeys } from '../query-keys'; +import type { PlansModuleSelect, PlansModuleWithRelations } from '../../orm/input-types'; +import type { InferSelectResult, HookStrictSelect } from '../../orm/select-types'; +export type { PlansModuleSelect, PlansModuleWithRelations } from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const plansModuleQueryKey = plansModuleKeys.detail; +/** + * Query hook for fetching a single PlansModule + * + * @example + * ```tsx + * const { data, isLoading } = usePlansModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true, name: true } }, + * }); + * ``` + */ +export function usePlansModuleQuery< + S extends PlansModuleSelect, + TData = { + plansModule: InferSelectResult | null; + }, +>( + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlansModuleSelect>; + } & Omit< + UseQueryOptions< + { + plansModule: InferSelectResult | null; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlansModuleQuery( + params: { + id: string; + selection: SelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildSelectionArgs(params.selection); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: plansModuleKeys.detail(params.id), + queryFn: () => + getClient() + .plansModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + ...queryOptions, + }); +} +/** + * Fetch a single PlansModule without React hooks + * + * @example + * ```ts + * const data = await fetchPlansModuleQuery({ + * id: 'some-id', + * selection: { fields: { id: true } }, + * }); + * ``` + */ +export async function fetchPlansModuleQuery(params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlansModuleSelect>; +}): Promise<{ + plansModule: InferSelectResult | null; +}>; +export async function fetchPlansModuleQuery(params: { + id: string; + selection: SelectionConfig; +}) { + const args = buildSelectionArgs(params.selection); + return getClient() + .plansModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(); +} +/** + * Prefetch a single PlansModule for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlansModuleQuery(queryClient, { id: 'some-id', selection: { fields: { id: true } } }); + * ``` + */ +export async function prefetchPlansModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: { + fields: S; + } & HookStrictSelect, PlansModuleSelect>; + } +): Promise; +export async function prefetchPlansModuleQuery( + queryClient: QueryClient, + params: { + id: string; + selection: SelectionConfig; + } +): Promise { + const args = buildSelectionArgs(params.selection); + await queryClient.prefetchQuery({ + queryKey: plansModuleKeys.detail(params.id), + queryFn: () => + getClient() + .plansModule.findOne({ + id: params.id, + select: args.select, + }) + .unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts b/sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts new file mode 100644 index 000000000..ac940aedf --- /dev/null +++ b/sdk/constructive-react/src/public/hooks/queries/usePlansModulesQuery.ts @@ -0,0 +1,145 @@ +/** + * List query hook for PlansModule + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ + +import { useQuery } from '@tanstack/react-query'; +import type { UseQueryOptions, UseQueryResult, QueryClient } from '@tanstack/react-query'; +import { getClient } from '../client'; +import { buildListSelectionArgs } from '../selection'; +import type { ListSelectionConfig } from '../selection'; +import { plansModuleKeys } from '../query-keys'; +import type { + PlansModuleSelect, + PlansModuleWithRelations, + PlansModuleFilter, + PlansModuleOrderBy, +} from '../../orm/input-types'; +import type { + FindManyArgs, + InferSelectResult, + ConnectionResult, + HookStrictSelect, +} from '../../orm/select-types'; +export type { + PlansModuleSelect, + PlansModuleWithRelations, + PlansModuleFilter, + PlansModuleOrderBy, +} from '../../orm/input-types'; +/** Query key factory - re-exported from query-keys.ts */ +export const plansModulesQueryKey = plansModuleKeys.list; +/** + * Query hook for fetching PlansModule list + * + * @example + * ```tsx + * const { data, isLoading } = usePlansModulesQuery({ + * selection: { + * fields: { id: true, name: true }, + * where: { name: { equalTo: "example" } }, + * orderBy: ['CREATED_AT_DESC'], + * first: 10, + * }, + * }); + * ``` + */ +export function usePlansModulesQuery< + S extends PlansModuleSelect, + TData = { + plansModules: ConnectionResult>; + }, +>( + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlansModuleSelect>; + } & Omit< + UseQueryOptions< + { + plansModules: ConnectionResult>; + }, + Error, + TData + >, + 'queryKey' | 'queryFn' + > +): UseQueryResult; +export function usePlansModulesQuery( + params: { + selection: ListSelectionConfig; + } & Omit, 'queryKey' | 'queryFn'> +) { + const args = buildListSelectionArgs( + params.selection + ); + const { selection: _selection, ...queryOptions } = params ?? {}; + void _selection; + return useQuery({ + queryKey: plansModuleKeys.list(args), + queryFn: () => getClient().plansModule.findMany(args).unwrap(), + ...queryOptions, + }); +} +/** + * Fetch PlansModule list without React hooks + * + * @example + * ```ts + * const data = await fetchPlansModulesQuery({ + * selection: { + * fields: { id: true }, + * first: 10, + * }, + * }); + * ``` + */ +export async function fetchPlansModulesQuery(params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlansModuleSelect>; +}): Promise<{ + plansModules: ConnectionResult>; +}>; +export async function fetchPlansModulesQuery(params: { + selection: ListSelectionConfig; +}) { + const args = buildListSelectionArgs( + params.selection + ); + return getClient().plansModule.findMany(args).unwrap(); +} +/** + * Prefetch PlansModule list for SSR or cache warming + * + * @example + * ```ts + * await prefetchPlansModulesQuery(queryClient, { selection: { fields: { id: true }, first: 10 } }); + * ``` + */ +export async function prefetchPlansModulesQuery( + queryClient: QueryClient, + params: { + selection: { + fields: S; + } & Omit, 'fields'> & + HookStrictSelect, PlansModuleSelect>; + } +): Promise; +export async function prefetchPlansModulesQuery( + queryClient: QueryClient, + params: { + selection: ListSelectionConfig; + } +): Promise { + const args = buildListSelectionArgs( + params.selection + ); + await queryClient.prefetchQuery({ + queryKey: plansModuleKeys.list(args), + queryFn: () => getClient().plansModule.findMany(args).unwrap(), + }); +} diff --git a/sdk/constructive-react/src/public/hooks/query-keys.ts b/sdk/constructive-react/src/public/hooks/query-keys.ts index 0639782e1..c942401a5 100644 --- a/sdk/constructive-react/src/public/hooks/query-keys.ts +++ b/sdk/constructive-react/src/public/hooks/query-keys.ts @@ -46,15 +46,6 @@ export const getAllRecordKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...getAllRecordKeys.details(), id] as const, } as const; -export const objectKeys = { - /** All object queries */ all: ['object'] as const, - /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...objectKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...objectKeys.details(), id] as const, -} as const; export const appPermissionKeys = { /** All appPermission queries */ all: ['apppermission'] as const, /** List query keys */ lists: () => [...appPermissionKeys.all, 'list'] as const, @@ -73,6 +64,15 @@ export const orgPermissionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgPermissionKeys.details(), id] as const, } as const; +export const objectKeys = { + /** All object queries */ all: ['object'] as const, + /** List query keys */ lists: () => [...objectKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...objectKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...objectKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...objectKeys.details(), id] as const, +} as const; export const appLevelRequirementKeys = { /** All appLevelRequirement queries */ all: ['applevelrequirement'] as const, /** List query keys */ lists: () => [...appLevelRequirementKeys.all, 'list'] as const, @@ -793,6 +793,15 @@ export const orgLimitKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitKeys.details(), id] as const, } as const; +export const orgLimitAggregateKeys = { + /** All orgLimitAggregate queries */ all: ['orglimitaggregate'] as const, + /** List query keys */ lists: () => [...orgLimitAggregateKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...orgLimitAggregateKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitAggregateKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...orgLimitAggregateKeys.details(), id] as const, +} as const; export const appStepKeys = { /** All appStep queries */ all: ['appstep'] as const, /** List query keys */ lists: () => [...appStepKeys.all, 'list'] as const, @@ -901,14 +910,41 @@ export const auditLogKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...auditLogKeys.details(), id] as const, } as const; -export const appPermissionDefaultKeys = { - /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, - /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, +export const agentThreadKeys = { + /** All agentThread queries */ all: ['agentthread'] as const, + /** List query keys */ lists: () => [...agentThreadKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...appPermissionDefaultKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, + [...agentThreadKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentThreadKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...appPermissionDefaultKeys.details(), id] as const, + [...agentThreadKeys.details(), id] as const, +} as const; +export const agentMessageKeys = { + /** All agentMessage queries */ all: ['agentmessage'] as const, + /** List query keys */ lists: () => [...agentMessageKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentMessageKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentMessageKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentMessageKeys.details(), id] as const, +} as const; +export const agentTaskKeys = { + /** All agentTask queries */ all: ['agenttask'] as const, + /** List query keys */ lists: () => [...agentTaskKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...agentTaskKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...agentTaskKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...agentTaskKeys.details(), id] as const, +} as const; +export const roleTypeKeys = { + /** All roleType queries */ all: ['roletype'] as const, + /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...roleTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...roleTypeKeys.details(), id] as const, } as const; export const identityProviderKeys = { /** All identityProvider queries */ all: ['identityprovider'] as const, @@ -937,14 +973,23 @@ export const storeKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...storeKeys.details(), id] as const, } as const; -export const roleTypeKeys = { - /** All roleType queries */ all: ['roletype'] as const, - /** List query keys */ lists: () => [...roleTypeKeys.all, 'list'] as const, +export const appPermissionDefaultKeys = { + /** All appPermissionDefault queries */ all: ['apppermissiondefault'] as const, + /** List query keys */ lists: () => [...appPermissionDefaultKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...roleTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...roleTypeKeys.all, 'detail'] as const, + [...appPermissionDefaultKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appPermissionDefaultKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...roleTypeKeys.details(), id] as const, + [...appPermissionDefaultKeys.details(), id] as const, +} as const; +export const membershipTypeKeys = { + /** All membershipType queries */ all: ['membershiptype'] as const, + /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...membershipTypeKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...membershipTypeKeys.details(), id] as const, } as const; export const migrateFileKeys = { /** All migrateFile queries */ all: ['migratefile'] as const, @@ -955,6 +1000,24 @@ export const migrateFileKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...migrateFileKeys.details(), id] as const, } as const; +export const devicesModuleKeys = { + /** All devicesModule queries */ all: ['devicesmodule'] as const, + /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...devicesModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...devicesModuleKeys.details(), id] as const, +} as const; +export const nodeTypeRegistryKeys = { + /** All nodeTypeRegistry queries */ all: ['nodetyperegistry'] as const, + /** List query keys */ lists: () => [...nodeTypeRegistryKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...nodeTypeRegistryKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...nodeTypeRegistryKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...nodeTypeRegistryKeys.details(), id] as const, +} as const; export const appLimitDefaultKeys = { /** All appLimitDefault queries */ all: ['applimitdefault'] as const, /** List query keys */ lists: () => [...appLimitDefaultKeys.all, 'list'] as const, @@ -973,15 +1036,6 @@ export const orgLimitDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgLimitDefaultKeys.details(), id] as const, } as const; -export const devicesModuleKeys = { - /** All devicesModule queries */ all: ['devicesmodule'] as const, - /** List query keys */ lists: () => [...devicesModuleKeys.all, 'list'] as const, - /** List query key with variables */ list: (variables?: object) => - [...devicesModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...devicesModuleKeys.all, 'detail'] as const, - /** Detail query key for specific item */ detail: (id: string | number) => - [...devicesModuleKeys.details(), id] as const, -} as const; export const userConnectedAccountKeys = { /** All userConnectedAccount queries */ all: ['userconnectedaccount'] as const, /** List query keys */ lists: () => [...userConnectedAccountKeys.all, 'list'] as const, @@ -991,6 +1045,24 @@ export const userConnectedAccountKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userConnectedAccountKeys.details(), id] as const, } as const; +export const commitKeys = { + /** All commit queries */ all: ['commit'] as const, + /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...commitKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...commitKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...commitKeys.details(), id] as const, +} as const; +export const rateLimitsModuleKeys = { + /** All rateLimitsModule queries */ all: ['ratelimitsmodule'] as const, + /** List query keys */ lists: () => [...rateLimitsModuleKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...rateLimitsModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...rateLimitsModuleKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...rateLimitsModuleKeys.details(), id] as const, +} as const; export const appMembershipDefaultKeys = { /** All appMembershipDefault queries */ all: ['appmembershipdefault'] as const, /** List query keys */ lists: () => [...appMembershipDefaultKeys.all, 'list'] as const, @@ -1009,32 +1081,32 @@ export const orgMembershipDefaultKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...orgMembershipDefaultKeys.details(), id] as const, } as const; -export const commitKeys = { - /** All commit queries */ all: ['commit'] as const, - /** List query keys */ lists: () => [...commitKeys.all, 'list'] as const, +export const appLimitEventKeys = { + /** All appLimitEvent queries */ all: ['applimitevent'] as const, + /** List query keys */ lists: () => [...appLimitEventKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...commitKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...commitKeys.all, 'detail'] as const, + [...appLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...appLimitEventKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...commitKeys.details(), id] as const, + [...appLimitEventKeys.details(), id] as const, } as const; -export const rateLimitsModuleKeys = { - /** All rateLimitsModule queries */ all: ['ratelimitsmodule'] as const, - /** List query keys */ lists: () => [...rateLimitsModuleKeys.all, 'list'] as const, +export const orgLimitEventKeys = { + /** All orgLimitEvent queries */ all: ['orglimitevent'] as const, + /** List query keys */ lists: () => [...orgLimitEventKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...rateLimitsModuleKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...rateLimitsModuleKeys.all, 'detail'] as const, + [...orgLimitEventKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgLimitEventKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...rateLimitsModuleKeys.details(), id] as const, + [...orgLimitEventKeys.details(), id] as const, } as const; -export const membershipTypeKeys = { - /** All membershipType queries */ all: ['membershiptype'] as const, - /** List query keys */ lists: () => [...membershipTypeKeys.all, 'list'] as const, +export const plansModuleKeys = { + /** All plansModule queries */ all: ['plansmodule'] as const, + /** List query keys */ lists: () => [...plansModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...membershipTypeKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...membershipTypeKeys.all, 'detail'] as const, + [...plansModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...plansModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...membershipTypeKeys.details(), id] as const, + [...plansModuleKeys.details(), id] as const, } as const; export const rlsModuleKeys = { /** All rlsModule queries */ all: ['rlsmodule'] as const, @@ -1054,14 +1126,23 @@ export const sqlActionKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...sqlActionKeys.details(), id] as const, } as const; -export const orgMembershipSettingKeys = { - /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, - /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, +export const billingModuleKeys = { + /** All billingModule queries */ all: ['billingmodule'] as const, + /** List query keys */ lists: () => [...billingModuleKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...orgMembershipSettingKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, + [...billingModuleKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...billingModuleKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...orgMembershipSettingKeys.details(), id] as const, + [...billingModuleKeys.details(), id] as const, +} as const; +export const astMigrationKeys = { + /** All astMigration queries */ all: ['astmigration'] as const, + /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, + /** List query key with variables */ list: (variables?: object) => + [...astMigrationKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + /** Detail query key for specific item */ detail: (id: string | number) => + [...astMigrationKeys.details(), id] as const, } as const; export const userKeys = { /** All user queries */ all: ['user'] as const, @@ -1072,14 +1153,14 @@ export const userKeys = { /** Detail query key for specific item */ detail: (id: string | number) => [...userKeys.details(), id] as const, } as const; -export const astMigrationKeys = { - /** All astMigration queries */ all: ['astmigration'] as const, - /** List query keys */ lists: () => [...astMigrationKeys.all, 'list'] as const, +export const orgMembershipSettingKeys = { + /** All orgMembershipSetting queries */ all: ['orgmembershipsetting'] as const, + /** List query keys */ lists: () => [...orgMembershipSettingKeys.all, 'list'] as const, /** List query key with variables */ list: (variables?: object) => - [...astMigrationKeys.lists(), variables] as const, - /** Detail query keys */ details: () => [...astMigrationKeys.all, 'detail'] as const, + [...orgMembershipSettingKeys.lists(), variables] as const, + /** Detail query keys */ details: () => [...orgMembershipSettingKeys.all, 'detail'] as const, /** Detail query key for specific item */ detail: (id: string | number) => - [...astMigrationKeys.details(), id] as const, + [...orgMembershipSettingKeys.details(), id] as const, } as const; export const appMembershipKeys = { /** All appMembership queries */ all: ['appmembership'] as const, @@ -1135,16 +1216,16 @@ export const customQueryKeys = { /** Query key for orgPermissionsGetMaskByNames */ orgPermissionsGetMaskByNames: ( variables?: object ) => ['orgPermissionsGetMaskByNames', variables] as const, + /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => + ['appPermissionsGetByMask', variables] as const, + /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => + ['orgPermissionsGetByMask', variables] as const, /** Query key for getAllObjectsFromRoot */ getAllObjectsFromRoot: (variables?: object) => ['getAllObjectsFromRoot', variables] as const, /** Query key for getPathObjectsFromRoot */ getPathObjectsFromRoot: (variables?: object) => ['getPathObjectsFromRoot', variables] as const, /** Query key for getObjectAtPath */ getObjectAtPath: (variables?: object) => ['getObjectAtPath', variables] as const, - /** Query key for appPermissionsGetByMask */ appPermissionsGetByMask: (variables?: object) => - ['appPermissionsGetByMask', variables] as const, - /** Query key for orgPermissionsGetByMask */ orgPermissionsGetByMask: (variables?: object) => - ['orgPermissionsGetByMask', variables] as const, /** Query key for stepsRequired */ stepsRequired: (variables?: object) => ['stepsRequired', variables] as const, /** Query key for currentUser */ currentUser: () => ['currentUser'] as const, @@ -1175,9 +1256,9 @@ export const queryKeys = { orgGetManagersRecord: orgGetManagersRecordKeys, orgGetSubordinatesRecord: orgGetSubordinatesRecordKeys, getAllRecord: getAllRecordKeys, - object: objectKeys, appPermission: appPermissionKeys, orgPermission: orgPermissionKeys, + object: objectKeys, appLevelRequirement: appLevelRequirementKeys, database: databaseKeys, schema: schemaKeys, @@ -1258,6 +1339,7 @@ export const queryKeys = { orgPermissionDefault: orgPermissionDefaultKeys, appLimit: appLimitKeys, orgLimit: orgLimitKeys, + orgLimitAggregate: orgLimitAggregateKeys, appStep: appStepKeys, appAchievement: appAchievementKeys, appLevel: appLevelKeys, @@ -1270,26 +1352,34 @@ export const queryKeys = { orgInvite: orgInviteKeys, orgClaimedInvite: orgClaimedInviteKeys, auditLog: auditLogKeys, - appPermissionDefault: appPermissionDefaultKeys, + agentThread: agentThreadKeys, + agentMessage: agentMessageKeys, + agentTask: agentTaskKeys, + roleType: roleTypeKeys, identityProvider: identityProviderKeys, ref: refKeys, store: storeKeys, - roleType: roleTypeKeys, + appPermissionDefault: appPermissionDefaultKeys, + membershipType: membershipTypeKeys, migrateFile: migrateFileKeys, + devicesModule: devicesModuleKeys, + nodeTypeRegistry: nodeTypeRegistryKeys, appLimitDefault: appLimitDefaultKeys, orgLimitDefault: orgLimitDefaultKeys, - devicesModule: devicesModuleKeys, userConnectedAccount: userConnectedAccountKeys, - appMembershipDefault: appMembershipDefaultKeys, - orgMembershipDefault: orgMembershipDefaultKeys, commit: commitKeys, rateLimitsModule: rateLimitsModuleKeys, - membershipType: membershipTypeKeys, + appMembershipDefault: appMembershipDefaultKeys, + orgMembershipDefault: orgMembershipDefaultKeys, + appLimitEvent: appLimitEventKeys, + orgLimitEvent: orgLimitEventKeys, + plansModule: plansModuleKeys, rlsModule: rlsModuleKeys, sqlAction: sqlActionKeys, - orgMembershipSetting: orgMembershipSettingKeys, - user: userKeys, + billingModule: billingModuleKeys, astMigration: astMigrationKeys, + user: userKeys, + orgMembershipSetting: orgMembershipSettingKeys, appMembership: appMembershipKeys, hierarchyModule: hierarchyModuleKeys, custom: customQueryKeys, diff --git a/sdk/constructive-react/src/public/orm/README.md b/sdk/constructive-react/src/public/orm/README.md index 9d3f602c4..910f95827 100644 --- a/sdk/constructive-react/src/public/orm/README.md +++ b/sdk/constructive-react/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | @@ -107,6 +107,7 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | @@ -119,26 +120,34 @@ const db = createClient({ | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -234,45 +243,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.appPermission` -CRUD operations for Object records. +CRUD operations for AppPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.orgPermission` -CRUD operations for AppPermission records. +CRUD operations for OrgPermission records. **Fields:** @@ -287,53 +293,56 @@ CRUD operations for AppPermission records. **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.object` -CRUD operations for OrgPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `databaseId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -2181,6 +2190,7 @@ CRUD operations for LimitsModule records. | `limitDecrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | | `limitCheckFunction` | String | Yes | +| `aggregateTableId` | UUID | Yes | | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | @@ -2190,13 +2200,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2400,6 +2410,8 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2411,13 +2423,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2728,10 +2740,8 @@ CRUD operations for StorageModule records. | `privateSchemaId` | UUID | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | -| `uploadRequestsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | -| `uploadRequestsTableName` | String | Yes | | `membershipType` | Int | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | @@ -2740,6 +2750,7 @@ CRUD operations for StorageModule records. | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | | `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | | `uploadUrlExpirySeconds` | Int | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `defaultMaxFileSize` | BigInt | Yes | @@ -2750,13 +2761,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3424,20 +3435,23 @@ CRUD operations for AppLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | **Operations:** ```typescript // List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); // Update const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3457,21 +3471,24 @@ CRUD operations for OrgLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | **Operations:** ```typescript // List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3480,6 +3497,42 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.appStep` CRUD operations for AppStep records. @@ -3751,6 +3804,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3759,13 +3813,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3826,6 +3880,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3835,13 +3890,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3921,133 +3976,116 @@ const updated = await db.auditLog.update({ where: { id: '' }, data: { even const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.agentThread` -CRUD operations for AppPermissionDefault records. +CRUD operations for AgentThread records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | | `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all agentThread records +const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.agentMessage` -CRUD operations for Ref records. +CRUD operations for AgentMessage records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `authorRole` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.agentTask` -CRUD operations for Store records. +CRUD operations for AgentTask records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all agentTask records +const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -4080,40 +4118,42 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.identityProvider` -CRUD operations for MigrateFile records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.ref` -CRUD operations for AppLimitDefault records. +CRUD operations for Ref records. **Fields:** @@ -4121,30 +4161,32 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.store` -CRUD operations for OrgLimitDefault records. +CRUD operations for Store records. **Fields:** @@ -4152,38 +4194,135 @@ CRUD operations for OrgLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appPermissionDefault` -CRUD operations for DevicesModule records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.devicesModule` + +CRUD operations for DevicesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `userDevicesTableId` | UUID | Yes | | `deviceSettingsTableId` | UUID | Yes | | `userDevicesTable` | String | Yes | @@ -4208,6 +4347,105 @@ const updated = await db.devicesModule.update({ where: { id: '' }, data: { const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.userConnectedAccount` CRUD operations for UserConnectedAccount records. @@ -4244,6 +4482,80 @@ const updated = await db.userConnectedAccount.update({ where: { id: '' }, const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` +### `db.commit` + +CRUD operations for Commit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all commit records +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembershipDefault` CRUD operations for AppMembershipDefault records. @@ -4314,112 +4626,117 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.commit` +### `db.appLimitEvent` -CRUD operations for Commit records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitsModule` +### `db.orgLimitEvent` -CRUD operations for RateLimitsModule records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.plansModule` -CRUD operations for MembershipType records. +CRUD operations for PlansModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | | `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -4502,44 +4819,87 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.billingModule` -CRUD operations for OrgMembershipSetting records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Get one by id +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4584,45 +4944,46 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.astMigration` +### `db.orgMembershipSetting` -CRUD operations for AstMigration records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4643,7 +5004,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -4655,13 +5015,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -4945,97 +5305,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.orgPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.getAllObjectsFromRoot` -getObjectAtPath +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `OrgPermission`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -5699,94 +6059,94 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.signUp` +### `db.mutation.sendVerificationEmail` -signUp +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.forgotPassword` -requestCrossOriginToken +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.signUp` -signIn +signUp - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.requestCrossOriginToken` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.signIn` -sendVerificationEmail +signIn - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); +const result = await db.mutation.signIn({ input: '' }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.provisionTable` -forgotPassword +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` ### `db.mutation.requestUploadUrl` @@ -5807,23 +6167,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-react/src/public/orm/index.ts b/sdk/constructive-react/src/public/orm/index.ts index 8fd468297..4dca904e1 100644 --- a/sdk/constructive-react/src/public/orm/index.ts +++ b/sdk/constructive-react/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; +import { ObjectModel } from './models/object'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; @@ -91,6 +91,7 @@ import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; import { AppLevelModel } from './models/appLevel'; @@ -103,26 +104,34 @@ import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { AuditLogModel } from './models/auditLog'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; -import { RoleTypeModel } from './models/roleType'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { DevicesModuleModel } from './models/devicesModule'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { CommitModel } from './models/commit'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { PlansModuleModel } from './models/plansModule'; import { RlsModuleModel } from './models/rlsModule'; import { SqlActionModel } from './models/sqlAction'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { UserModel } from './models/user'; +import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; +import { UserModel } from './models/user'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -163,9 +172,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), + object: new ObjectModel(client), appLevelRequirement: new AppLevelRequirementModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), @@ -246,6 +255,7 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), appLevel: new AppLevelModel(client), @@ -258,26 +268,34 @@ export function createClient(config: OrmClientConfig) { orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), auditLog: new AuditLogModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), + agentThread: new AgentThreadModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), - roleType: new RoleTypeModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), + membershipType: new MembershipTypeModel(client), migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - devicesModule: new DevicesModuleModel(client), userConnectedAccount: new UserConnectedAccountModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), commit: new CommitModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + plansModule: new PlansModuleModel(client), rlsModule: new RlsModuleModel(client), sqlAction: new SqlActionModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - user: new UserModel(client), + billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), + user: new UserModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-react/src/public/orm/input-types.ts b/sdk/constructive-react/src/public/orm/input-types.ts index 6f3337645..923a0d41d 100644 --- a/sdk/constructive-react/src/public/orm/input-types.ts +++ b/sdk/constructive-react/src/public/orm/input-types.ts @@ -254,16 +254,6 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -288,6 +278,16 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +export interface Object { + hashUuid?: string | null; + id: string; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; @@ -1101,6 +1101,7 @@ export interface LimitsModule { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -1190,6 +1191,8 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1356,10 +1359,8 @@ export interface StorageModule { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -1368,6 +1369,7 @@ export interface StorageModule { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -1447,7 +1449,7 @@ export interface EntityTypeProvision { hasLevels?: boolean | null; /** * Whether to provision storage_module for this type. Defaults to false. - * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + * When true, creates {prefix}_buckets and {prefix}_files tables * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. * Storage tables get owner_id FK to the entity table, so files are owned by the entity. */ @@ -1480,7 +1482,7 @@ export interface EntityTypeProvision { * - allowed_origins (text[]) per-bucket CORS override * - provisions (jsonb object) optional: customize storage tables * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets", "upload_requests". + * Keyed by table role: "files", "buckets". * Each value uses the same shape as table_provision: * { nodes, fields, grants, use_rls, policies }. Fanned out * to secure_table_provision targeting the corresponding table. @@ -1838,9 +1840,15 @@ export interface AppLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { @@ -1850,10 +1858,34 @@ export interface OrgLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + entityId?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { @@ -1984,6 +2016,8 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2022,6 +2056,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2059,11 +2095,71 @@ export interface AuditLog { /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { +/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ +export interface AgentThread { + /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ + title?: string | null; + /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ + mode?: string | null; + /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ + model?: string | null; + /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ + systemPrompt?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record within the entity */ + ownerId?: string | null; + /** Entity this record belongs to */ + entityId?: string | null; + /** Current status of this record */ + status?: string | null; +} +/** 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. */ +export interface AgentMessage { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ + entityId?: string | null; + /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ + authorRole?: string | null; id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** JSON metadata for extensible key-value storage */ + parts?: Record | null; +} +/** 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. */ +export interface AgentTask { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ + entityId?: string | null; + /** Natural-language description of the work to do. Required. */ + description?: string | null; + /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ + source?: string | null; + /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ + error?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** Current status of this record */ + status?: string | null; +} +export interface RoleType { + id: number; + name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2094,22 +2190,59 @@ export interface Store { hash?: string | null; createdAt?: string | null; } -export interface RoleType { +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; databaseId?: string | null; upload?: ConstructiveInternalTypeUpload | null; } +export interface DevicesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { @@ -2117,16 +2250,9 @@ export interface OrgLimitDefault { /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } export interface UserConnectedAccount { id: string; @@ -2138,30 +2264,6 @@ export interface UserConnectedAccount { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -2192,20 +2294,84 @@ export interface RateLimitsModule { ipRateLimitsTable?: string | null; rateLimitsTable?: string | null; } -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface RlsModule { id: string; @@ -2235,6 +2401,53 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; +} +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ + displayNameTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2254,39 +2467,12 @@ export interface OrgMembershipSetting { createChildCascadeMembers?: boolean | null; /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ populateMemberEmail?: boolean | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2305,8 +2491,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -2357,9 +2541,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} +export interface ObjectRelations {} export interface AppLevelRequirementRelations {} export interface DatabaseRelations { owner?: User | null; @@ -2367,6 +2551,8 @@ export interface DatabaseRelations { hierarchyModule?: HierarchyModule | null; rateLimitsModule?: RateLimitsModule | null; devicesModule?: DevicesModule | null; + plansModule?: PlansModule | null; + billingModule?: BillingModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2697,6 +2883,7 @@ export interface LevelsModuleRelations { } export interface LimitsModuleRelations { actorTable?: Table | null; + aggregateTable?: Table | null; database?: Database | null; defaultTable?: Table | null; entityTable?: Table | null; @@ -2753,6 +2940,7 @@ export interface ProfilesModuleRelations { profileDefinitionGrantsTable?: Table | null; profileGrantsTable?: Table | null; profilePermissionsTable?: Table | null; + profileTemplatesTable?: Table | null; schema?: Schema | null; table?: Table | null; } @@ -2806,7 +2994,6 @@ export interface StorageModuleRelations { filesTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; - uploadRequestsTable?: Table | null; } export interface EntityTypeProvisionRelations { database?: Database | null; @@ -2906,6 +3093,9 @@ export interface OrgLimitRelations { actor?: User | null; entity?: User | null; } +export interface OrgLimitAggregateRelations { + entity?: User | null; +} export interface AppStepRelations { actor?: User | null; } @@ -2947,25 +3137,37 @@ export interface OrgClaimedInviteRelations { export interface AuditLogRelations { actor?: User | null; } -export interface AppPermissionDefaultRelations {} +export interface AgentThreadRelations { + entity?: User | null; + owner?: User | null; + agentMessagesByThreadId?: ConnectionResult; + agentTasksByThreadId?: ConnectionResult; +} +export interface AgentMessageRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} -export interface RoleTypeRelations {} +export interface AppPermissionDefaultRelations {} +export interface MembershipTypeRelations {} export interface MigrateFileRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface NodeTypeRegistryRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface UserConnectedAccountRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} export interface CommitRelations {} export interface RateLimitsModuleRelations { database?: Database | null; @@ -2974,7 +3176,19 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface MembershipTypeRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface PlansModuleRelations { + database?: Database | null; + planLimitsTable?: Table | null; + plansTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; +} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -2984,9 +3198,16 @@ export interface RlsModuleRelations { usersTable?: Table | null; } export interface SqlActionRelations {} -export interface OrgMembershipSettingRelations { - entity?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } +export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3025,6 +3246,7 @@ export interface UserRelations { appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; + orgLimitAggregatesByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; ownedAppLevels?: ConnectionResult; @@ -3042,8 +3264,14 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; auditLogsByActorId?: ConnectionResult; + agentThreadsByEntityId?: ConnectionResult; + ownedAgentThreads?: ConnectionResult; + ownedAgentMessages?: ConnectionResult; + ownedAgentTasks?: ConnectionResult; +} +export interface OrgMembershipSettingRelations { + entity?: User | null; } -export interface AstMigrationRelations {} export interface AppMembershipRelations { actor?: User | null; } @@ -3063,9 +3291,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -3160,6 +3388,7 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; @@ -3172,31 +3401,39 @@ export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteR export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type CommitWithRelations = Commit & CommitRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type CommitWithRelations = Commit & CommitRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ @@ -3212,16 +3449,6 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -3236,6 +3463,16 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppLevelRequirementSelect = { id?: boolean; name?: boolean; @@ -3270,6 +3507,12 @@ export type DatabaseSelect = { devicesModule?: { select: DevicesModuleSelect; }; + plansModule?: { + select: PlansModuleSelect; + }; + billingModule?: { + select: BillingModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4893,6 +5136,7 @@ export type LimitsModuleSelect = { limitDecrementTrigger?: boolean; limitUpdateTrigger?: boolean; limitCheckFunction?: boolean; + aggregateTableId?: boolean; prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; @@ -4900,6 +5144,9 @@ export type LimitsModuleSelect = { actorTable?: { select: TableSelect; }; + aggregateTable?: { + select: TableSelect; + }; database?: { select: DatabaseSelect; }; @@ -5096,6 +5343,8 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -5129,6 +5378,9 @@ export type ProfilesModuleSelect = { profilePermissionsTable?: { select: TableSelect; }; + profileTemplatesTable?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -5345,10 +5597,8 @@ export type StorageModuleSelect = { privateSchemaId?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; - uploadRequestsTableId?: boolean; bucketsTableName?: boolean; filesTableName?: boolean; - uploadRequestsTableName?: boolean; membershipType?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; @@ -5357,6 +5607,7 @@ export type StorageModuleSelect = { publicUrlPrefix?: boolean; provider?: boolean; allowedOrigins?: boolean; + restrictReads?: boolean; uploadUrlExpirySeconds?: boolean; downloadUrlExpirySeconds?: boolean; defaultMaxFileSize?: boolean; @@ -5380,9 +5631,6 @@ export type StorageModuleSelect = { schema?: { select: SchemaSelect; }; - uploadRequestsTable?: { - select: TableSelect; - }; }; export type EntityTypeProvisionSelect = { id?: boolean; @@ -5767,6 +6015,9 @@ export type AppLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; actor?: { select: UserSelect; }; @@ -5777,6 +6028,9 @@ export type OrgLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; actor?: { select: UserSelect; @@ -5785,6 +6039,19 @@ export type OrgLimitSelect = { select: UserSelect; }; }; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppStepSelect = { id?: boolean; actorId?: boolean; @@ -5888,6 +6155,7 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5920,6 +6188,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5965,9 +6234,73 @@ export type AuditLogSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { +export type AgentThreadSelect = { + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; id?: boolean; - permissions?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + entityId?: boolean; + status?: boolean; + entity?: { + select: UserSelect; + }; + owner?: { + select: UserSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentTasksByThreadId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + threadId?: boolean; + entityId?: boolean; + authorRole?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + threadId?: boolean; + entityId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type RoleTypeSelect = { + id?: boolean; + name?: boolean; }; export type IdentityProviderSelect = { slug?: boolean; @@ -5990,25 +6323,23 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; -export type RoleTypeSelect = { +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; +export type MembershipTypeSelect = { id?: boolean; name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; databaseId?: boolean; upload?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -6030,6 +6361,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -6040,27 +6392,6 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -6098,13 +6429,76 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type MembershipTypeSelect = { +export type AppMembershipDefaultSelect = { id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; +export type AppLimitEventSelect = { name?: boolean; - description?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + database?: { + select: DatabaseSelect; + }; + planLimitsTable?: { + select: TableSelect; + }; + plansTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; }; export type RlsModuleSelect = { id?: boolean; @@ -6152,23 +6546,58 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; -export type OrgMembershipSettingSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - entity?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; }; -}; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -6391,6 +6820,12 @@ export type UserSelect = { filter?: OrgLimitFilter; orderBy?: OrgLimitOrderBy[]; }; + orgLimitAggregatesByEntityId?: { + select: OrgLimitAggregateSelect; + first?: number; + filter?: OrgLimitAggregateFilter; + orderBy?: OrgLimitAggregateOrderBy[]; + }; appStepsByActorId?: { select: AppStepSelect; first?: number; @@ -6493,21 +6928,49 @@ export type UserSelect = { filter?: AuditLogFilter; orderBy?: AuditLogOrderBy[]; }; + agentThreadsByEntityId?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentThreads?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + ownedAgentTasks?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; }; -export type AstMigrationSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; }; export type AppMembershipSelect = { id?: boolean; @@ -6520,7 +6983,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -6599,28 +7061,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6657,6 +7097,28 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppLevelRequirementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6968,6 +7430,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8796,6 +9266,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -8812,6 +9284,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -9080,6 +9556,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -9118,6 +9598,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -9444,14 +9926,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -9468,6 +9946,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -9498,8 +9978,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ @@ -10135,9 +10613,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -10155,9 +10639,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -10171,6 +10661,32 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10376,6 +10892,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10436,6 +10954,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10517,17 +11037,117 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } -export interface AppPermissionDefaultFilter { +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; + and?: AgentThreadFilter[]; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; + or?: AgentThreadFilter[]; /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; } export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ @@ -10583,17 +11203,37 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } -export interface RoleTypeFilter { +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: RoleTypeFilter; + not?: MembershipTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -10609,34 +11249,6 @@ export interface MigrateFileFilter { /** Negates the expression. */ not?: MigrateFileFilter; } -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10667,7 +11279,61 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } -export interface UserConnectedAccountFilter { +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; +} +export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ownerId` field. */ @@ -10691,52 +11357,6 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10799,25 +11419,143 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface MembershipTypeFilter { +export interface AppMembershipDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} +export interface AppLimitEventFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ @@ -10893,39 +11631,89 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface OrgMembershipSettingFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -11096,6 +11884,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -11164,6 +11956,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -11176,39 +11984,43 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface AstMigrationFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ @@ -11231,8 +12043,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -11343,24 +12153,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -11389,6 +12181,24 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -12623,6 +13433,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_UPDATE_TRIGGER_DESC' | 'LIMIT_CHECK_FUNCTION_ASC' | 'LIMIT_CHECK_FUNCTION_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'MEMBERSHIP_TYPE_ASC' @@ -12801,6 +13613,10 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_TEMPLATES_TABLE_ID_ASC' + | 'PROFILE_TEMPLATES_TABLE_ID_DESC' + | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' + | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -13041,14 +13857,10 @@ export type StorageModuleOrderBy = | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' - | 'UPLOAD_REQUESTS_TABLE_ID_ASC' - | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' - | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' - | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'POLICIES_ASC' @@ -13065,6 +13877,8 @@ export type StorageModuleOrderBy = | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' @@ -13500,7 +14314,13 @@ export type AppLimitOrderBy = | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' - | 'MAX_DESC'; + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13515,8 +14335,34 @@ export type OrgLimitOrderBy = | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13683,6 +14529,8 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13729,6 +14577,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13775,14 +14625,82 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type AppPermissionDefaultOrderBy = +export type AgentThreadOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -13823,14 +14741,30 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type RoleTypeOrderBy = +export type AppPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC'; + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13839,17 +14773,43 @@ export type MigrateFileOrderBy = | 'DATABASE_ID_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC'; -export type AppLimitDefaultOrderBy = +export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13858,25 +14818,21 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC'; -export type DevicesModuleOrderBy = + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13895,65 +14851,29 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type RateLimitsModuleOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type RateLimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13975,22 +14895,108 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type PlansModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'PREFIX_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14045,34 +15051,66 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; -export type OrgMembershipSettingOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14099,34 +15137,38 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type AstMigrationOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14151,8 +15193,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -14270,32 +15310,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -14344,6 +15358,32 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLevelRequirementInput { clientMutationId?: string; appLevelRequirement: { @@ -15962,6 +17002,7 @@ export interface CreateLimitsModuleInput { limitDecrementTrigger?: string; limitUpdateTrigger?: string; limitCheckFunction?: string; + aggregateTableId?: string; prefix?: string; membershipType: number; entityTableId?: string; @@ -15982,6 +17023,7 @@ export interface LimitsModulePatch { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -16192,6 +17234,8 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -16212,6 +17256,8 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -16506,10 +17552,8 @@ export interface CreateStorageModuleInput { privateSchemaId?: string; bucketsTableId?: string; filesTableId?: string; - uploadRequestsTableId?: string; bucketsTableName?: string; filesTableName?: string; - uploadRequestsTableName?: string; membershipType?: number; policies?: Record; skipDefaultPolicyTables?: string[]; @@ -16518,6 +17562,7 @@ export interface CreateStorageModuleInput { publicUrlPrefix?: string; provider?: string; allowedOrigins?: string[]; + restrictReads?: boolean; uploadUrlExpirySeconds?: number; downloadUrlExpirySeconds?: number; defaultMaxFileSize?: string; @@ -16531,10 +17576,8 @@ export interface StorageModulePatch { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -16543,6 +17586,7 @@ export interface StorageModulePatch { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -17104,15 +18148,21 @@ export interface CreateAppLimitInput { appLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; }; } export interface AppLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; } export interface UpdateAppLimitInput { clientMutationId?: string; @@ -17128,16 +18178,22 @@ export interface CreateOrgLimitInput { orgLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; }; } export interface OrgLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; } export interface UpdateOrgLimitInput { @@ -17149,6 +18205,36 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} export interface CreateAppStepInput { clientMutationId?: string; appStep: { @@ -17347,6 +18433,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -17359,6 +18446,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -17404,6 +18492,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -17418,6 +18507,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -17482,23 +18572,109 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { +export interface CreateAgentThreadInput { clientMutationId?: string; - appPermissionDefault: { - permissions?: string; + agentThread: { + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + ownerId?: string; + entityId: string; + status?: string; }; } -export interface AppPermissionDefaultPatch { - permissions?: string | null; +export interface AgentThreadPatch { + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + ownerId?: string | null; + entityId?: string | null; + status?: string | null; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateAgentThreadInput { clientMutationId?: string; id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; + agentThreadPatch: AgentThreadPatch; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + threadId: string; + entityId: string; + authorRole: string; + ownerId?: string; + parts?: Record; + }; +} +export interface AgentMessagePatch { + threadId?: string | null; + entityId?: string | null; + authorRole?: string | null; + ownerId?: string | null; + parts?: Record | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + threadId: string; + entityId: string; + description: string; + source?: string; + error?: string; + ownerId?: string; + status?: string; + }; +} +export interface AgentTaskPatch { + threadId?: string | null; + entityId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + ownerId?: string | null; + status?: string | null; +} +export interface UpdateAgentTaskInput { clientMutationId?: string; id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: { + name: string; + }; +} +export interface RoleTypePatch { + name?: string | null; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; } export interface CreateIdentityProviderInput { clientMutationId?: string; @@ -17572,21 +18748,47 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - roleType: { + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + membershipType: { name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface RoleTypePatch { +export interface MembershipTypePatch { name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateRoleTypeInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; id: number; - roleTypePatch: RoleTypePatch; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteRoleTypeInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } @@ -17610,16 +18812,76 @@ export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface AppLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateAppLimitDefaultInput { clientMutationId?: string; @@ -17634,12 +18896,14 @@ export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface OrgLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; @@ -17650,34 +18914,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -17704,54 +18940,6 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -17816,31 +19004,157 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MembershipTypePatch { +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { name?: string | null; - description?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + prefix?: string; + }; +} +export interface PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; } -export interface UpdateMembershipTypeInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + plansModulePatch: PlansModulePatch; } -export interface DeleteMembershipTypeInput { +export interface DeletePlansModuleInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateRlsModuleInput { clientMutationId?: string; @@ -17916,62 +19230,45 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateUserInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - userPatch: UserPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteUserInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -18013,6 +19310,69 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -18023,7 +19383,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -18040,7 +19399,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -18237,6 +19595,10 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentTasksByThreadId: 'AgentTask', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -18271,6 +19633,7 @@ export const connectionFieldsMap = { appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', + orgLimitAggregatesByEntityId: 'OrgLimitAggregate', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', ownedAppLevels: 'AppLevel', @@ -18288,6 +19651,10 @@ export const connectionFieldsMap = { orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', auditLogsByActorId: 'AuditLog', + agentThreadsByEntityId: 'AgentThread', + ownedAgentThreads: 'AgentThread', + ownedAgentMessages: 'AgentMessage', + ownedAgentTasks: 'AgentTask', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -18548,6 +19915,14 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -18588,14 +19963,6 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} export interface RequestUploadUrlInput { /** Bucket key (e.g., "public", "private") */ bucketKey: string; @@ -18615,10 +19982,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -20072,6 +21435,24 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -20323,6 +21704,15 @@ export interface UserToManyOrgLimitFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitFilter; } +/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgLimitAggregateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitAggregateFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitAggregateFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitAggregateFilter; +} /** A filter to be used against many `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAppStepFilter { /** Filters to entities where at least one related entity matches. */ @@ -20431,12 +21821,39 @@ export interface UserToManyAuditLogFilter { /** Filters to entities where no related entity matches. */ none?: AuditLogFilter; } -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentThreadFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; } /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { @@ -22147,6 +23564,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -22163,6 +23582,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -22436,6 +23859,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -22474,6 +23901,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -22847,14 +24276,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -22871,6 +24296,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -22901,8 +24328,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } /** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ export interface EntityTypeProvisionFilter { @@ -23309,6 +24734,68 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -23597,6 +25084,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -23989,9 +25484,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -24010,9 +25511,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -24026,6 +25533,33 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} /** A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface AppStepFilter { /** Filter by the object’s `id` field. */ @@ -24239,6 +25773,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24301,6 +25837,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24384,6 +25922,47 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24894,6 +26473,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -24962,6 +26545,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -25150,6 +26749,98 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlansModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PlansModuleFilter[]; + /** Negates the expression. */ + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25264,8 +26955,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -25336,8 +27025,12 @@ export interface OrgMembershipSettingFilter { createChildCascadeMembers?: BooleanFilter; /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; /** Filter by the object’s `populateMemberEmail` field. */ populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ @@ -25347,27 +27040,8 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `Object` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; /** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -25405,6 +27079,25 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { nodes: AppLevelRequirement[]; @@ -25750,6 +27443,20 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendVerificationEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -25788,20 +27495,6 @@ export type ProvisionTablePayloadSelect = { select: ProvisionTableRecordSelect; }; }; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface RequestUploadUrlPayload { /** Presigned PUT URL (null if file was deduplicated) */ uploadUrl?: string | null; @@ -25813,8 +27506,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -25822,20 +27513,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -25859,51 +27536,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -25994,6 +27626,51 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; /** The `AppLevelRequirement` that was created by this mutation. */ @@ -29594,6 +31271,51 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; export interface CreateAppStepPayload { clientMutationId?: string | null; /** The `AppStep` that was created by this mutation. */ @@ -30134,49 +31856,184 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { +export interface CreateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type CreateAppPermissionDefaultPayloadSelect = { +export type CreateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type UpdateAppPermissionDefaultPayloadSelect = { +export type UpdateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type DeleteAppPermissionDefaultPayloadSelect = { +export type DeleteAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -30280,74 +32137,209 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateMigrateFilePayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateMigrateFilePayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitDefaultEdge?: { + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type DeleteMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { select: AppLimitDefaultEdgeSelect; }; }; @@ -30426,60 +32418,105 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserConnectedAccountPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; export interface CreateAppMembershipDefaultPayload { @@ -30572,139 +32609,71 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateCommitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was created by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; } -export type CreateCommitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; }; -export interface UpdateCommitPayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was updated by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; } -export type UpdateCommitPayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; }; -export interface DeleteCommitPayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `Commit` that was deleted by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteCommitPayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; + plansModule?: { + select: PlansModuleSelect; }; - commitEdge?: { - select: CommitEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + plansModule?: { + select: PlansModuleSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateRlsModulePayload { @@ -30763,49 +32732,60 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateUserPayload { @@ -30853,15 +32833,49 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; export interface CreateAppMembershipPayload { @@ -30954,16 +32968,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; } -export type ObjectEdgeSelect = { +export type AppPermissionEdgeSelect = { cursor?: boolean; node?: { - select: ObjectSelect; + select: AppPermissionSelect; }; }; /** Information about pagination in a connection. */ @@ -30983,18 +32997,6 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -31007,6 +33009,18 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { cursor?: string | null; @@ -32087,6 +34101,18 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `AppStep` edge in the connection. */ export interface AppStepEdge { cursor?: string | null; @@ -32231,40 +34257,40 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AgentThreadEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AgentThreadSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; } -export type RefEdgeSelect = { +export type AgentMessageEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: AgentMessageSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; } -export type StoreEdgeSelect = { +export type AgentTaskEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AgentTaskSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -32279,28 +34305,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AppLimitDefaultEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: RefSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type OrgLimitDefaultEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: StoreSelect; + }; +}; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +export type MembershipTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypeSelect; }; }; /** A `DevicesModule` edge in the connection. */ @@ -32315,28 +34365,40 @@ export type DevicesModuleEdgeSelect = { select: DevicesModuleSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppMembershipDefaultEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: NodeTypeRegistrySelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; }; }; /** A `Commit` edge in the connection. */ @@ -32363,16 +34425,40 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; }; }; /** A `RlsModule` edge in the connection. */ @@ -32387,16 +34473,16 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type OrgMembershipSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: BillingModuleSelect; }; }; /** A `User` edge in the connection. */ @@ -32411,6 +34497,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/orm/models/agentMessage.ts b/sdk/constructive-react/src/public/orm/models/agentMessage.ts new file mode 100644 index 000000000..dd3434345 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/agentMessage.ts @@ -0,0 +1,237 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + }, + 'AgentMessageFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/agentTask.ts b/sdk/constructive-react/src/public/orm/models/agentTask.ts new file mode 100644 index 000000000..7f837b699 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/agentTask.ts @@ -0,0 +1,237 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + }, + 'AgentTaskFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/agentThread.ts b/sdk/constructive-react/src/public/orm/models/agentThread.ts new file mode 100644 index 000000000..beb795fd1 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/agentThread.ts @@ -0,0 +1,237 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + }, + 'AgentThreadFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/billingModule.ts b/sdk/constructive-react/src/public/orm/models/billingModule.ts new file mode 100644 index 000000000..73e7928ed --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/billingModule.ts @@ -0,0 +1,237 @@ +/** + * BillingModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BillingModule, + BillingModuleWithRelations, + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy, + CreateBillingModuleInput, + UpdateBillingModuleInput, + BillingModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BillingModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + }, + 'BillingModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModule', + document, + variables, + transform: (data: { + billingModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + billingModule: data.billingModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BillingModule', + 'createBillingModule', + 'billingModule', + args.select, + args.data, + 'CreateBillingModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'createBillingModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BillingModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BillingModule', + 'updateBillingModule', + 'billingModule', + args.select, + args.where.id, + args.data, + 'UpdateBillingModuleInput', + 'id', + 'billingModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'updateBillingModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BillingModule', + 'deleteBillingModule', + 'billingModule', + { + id: args.where.id, + }, + 'DeleteBillingModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'deleteBillingModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/index.ts b/sdk/constructive-react/src/public/orm/models/index.ts index 960017329..aa7f94162 100644 --- a/sdk/constructive-react/src/public/orm/models/index.ts +++ b/sdk/constructive-react/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; +export { ObjectModel } from './object'; export { AppLevelRequirementModel } from './appLevelRequirement'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; @@ -89,6 +89,7 @@ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; export { AppLevelModel } from './appLevel'; @@ -101,25 +102,33 @@ export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { AuditLogModel } from './auditLog'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { AgentThreadModel } from './agentThread'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; -export { RoleTypeModel } from './roleType'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { MembershipTypeModel } from './membershipType'; export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { DevicesModuleModel } from './devicesModule'; export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { CommitModel } from './commit'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { PlansModuleModel } from './plansModule'; export { RlsModuleModel } from './rlsModule'; export { SqlActionModel } from './sqlAction'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { UserModel } from './user'; +export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; +export { UserModel } from './user'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts new file mode 100644 index 000000000..6e640c1c6 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/nodeTypeRegistry.ts @@ -0,0 +1,237 @@ +/** + * NodeTypeRegistry model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NodeTypeRegistry, + NodeTypeRegistryWithRelations, + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, + CreateNodeTypeRegistryInput, + UpdateNodeTypeRegistryInput, + NodeTypeRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NodeTypeRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + }, + 'NodeTypeRegistryFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findOne( + args: { + name: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: { + name: { + equalTo: args.name, + }, + }, + first: 1, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistry', + document, + variables, + transform: (data: { + nodeTypeRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NodeTypeRegistry', + 'createNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.data, + 'CreateNodeTypeRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'createNodeTypeRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + name: string; + }, + NodeTypeRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NodeTypeRegistry', + 'updateNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.where.name, + args.data, + 'UpdateNodeTypeRegistryInput', + 'name', + 'nodeTypeRegistryPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'updateNodeTypeRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + name: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NodeTypeRegistry', + 'deleteNodeTypeRegistry', + 'nodeTypeRegistry', + { + name: args.where.name, + }, + 'DeleteNodeTypeRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'deleteNodeTypeRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/models/plansModule.ts b/sdk/constructive-react/src/public/orm/models/plansModule.ts new file mode 100644 index 000000000..e310fa581 --- /dev/null +++ b/sdk/constructive-react/src/public/orm/models/plansModule.ts @@ -0,0 +1,237 @@ +/** + * PlansModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlansModule, + PlansModuleWithRelations, + PlansModuleSelect, + PlansModuleFilter, + PlansModuleOrderBy, + CreatePlansModuleInput, + UpdatePlansModuleInput, + PlansModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlansModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + }, + 'PlansModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModule', + document, + variables, + transform: (data: { + plansModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + plansModule: data.plansModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlansModule', + 'createPlansModule', + 'plansModule', + args.select, + args.data, + 'CreatePlansModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'createPlansModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlansModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlansModule', + 'updatePlansModule', + 'plansModule', + args.select, + args.where.id, + args.data, + 'UpdatePlansModuleInput', + 'id', + 'plansModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'updatePlansModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlansModule', + 'deletePlansModule', + 'plansModule', + { + id: args.where.id, + }, + 'DeletePlansModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'deletePlansModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-react/src/public/orm/mutation/index.ts b/sdk/constructive-react/src/public/orm/mutation/index.ts index ea6ba6a40..3ca6964aa 100644 --- a/sdk/constructive-react/src/public/orm/mutation/index.ts +++ b/sdk/constructive-react/src/public/orm/mutation/index.ts @@ -48,14 +48,13 @@ import type { CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, + SendVerificationEmailInput, + ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -98,14 +97,13 @@ import type { CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -148,14 +146,13 @@ import type { CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -329,6 +326,12 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface SignUpVariables { input: SignUpInput; } @@ -345,12 +348,6 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} /** * Variables for requestUploadUrl * Request a presigned URL for uploading a file directly to S3. @@ -361,15 +358,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1571,6 +1559,64 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + sendVerificationEmail: ( + args: SendVerificationEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendVerificationEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', + ...buildCustomDocument( + 'mutation', + 'SendVerificationEmail', + 'sendVerificationEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendVerificationEmailInput!', + }, + ], + connectionFieldsMap, + 'SendVerificationEmailPayload' + ), + }), + forgotPassword: ( + args: ForgotPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + forgotPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', + ...buildCustomDocument( + 'mutation', + 'ForgotPassword', + 'forgotPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ForgotPasswordInput!', + }, + ], + connectionFieldsMap, + 'ForgotPasswordPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -1687,64 +1733,6 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionTablePayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), requestUploadUrl: ( args: RequestUploadUrlVariables, options: { @@ -1774,35 +1762,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-react/src/public/orm/query/index.ts b/sdk/constructive-react/src/public/orm/query/index.ts index d79ab541d..ffbd13b23 100644 --- a/sdk/constructive-react/src/public/orm/query/index.ts +++ b/sdk/constructive-react/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, - ObjectConnection, AppPermissionConnection, OrgPermissionConnection, + ObjectConnection, AppLevelRequirementConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -73,9 +73,8 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -86,10 +85,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -100,14 +97,9 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -118,8 +110,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -130,6 +124,12 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} export interface StepsRequiredVariables { level?: string; roleId?: string; @@ -598,33 +598,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -643,37 +639,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -692,70 +680,82 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', + options?.select, args, [ { - name: 'dbId', + name: 'databaseId', type: 'UUID', }, { - name: 'storeId', + name: 'id', type: 'UUID', }, { - name: 'path', - type: '[String]', + name: 'first', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -774,45 +774,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'dbId', + type: 'UUID', }, { - name: 'first', - type: 'Int', + name: 'storeId', + type: 'UUID', }, { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), stepsRequired: ( diff --git a/sdk/constructive-react/src/public/schema-types.ts b/sdk/constructive-react/src/public/schema-types.ts index a808414e0..952ba1e1d 100644 --- a/sdk/constructive-react/src/public/schema-types.ts +++ b/sdk/constructive-react/src/public/schema-types.ts @@ -5,6 +5,9 @@ */ import type { + AgentMessage, + AgentTask, + AgentThread, Api, ApiModule, ApiSchema, @@ -18,6 +21,7 @@ import type { AppLevelRequirement, AppLimit, AppLimitDefault, + AppLimitEvent, AppMembership, AppMembershipDefault, AppOwnerGrant, @@ -26,6 +30,7 @@ import type { AppStep, AstMigration, AuditLog, + BillingModule, Blueprint, BlueprintConstruction, BlueprintTemplate, @@ -64,6 +69,7 @@ import type { MembershipTypesModule, MembershipsModule, MigrateFile, + NodeTypeRegistry, NotificationsModule, Object, OrgAdminGrant, @@ -75,7 +81,9 @@ import type { OrgGrant, OrgInvite, OrgLimit, + OrgLimitAggregate, OrgLimitDefault, + OrgLimitEvent, OrgMember, OrgMemberProfile, OrgMembership, @@ -87,6 +95,7 @@ import type { PermissionsModule, PhoneNumber, PhoneNumbersModule, + PlansModule, Policy, PrimaryKeyConstraint, ProfilesModule, @@ -1392,6 +1401,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_UPDATE_TRIGGER_DESC' | 'LIMIT_CHECK_FUNCTION_ASC' | 'LIMIT_CHECK_FUNCTION_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'MEMBERSHIP_TYPE_ASC' @@ -1575,6 +1586,10 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_TEMPLATES_TABLE_ID_ASC' + | 'PROFILE_TEMPLATES_TABLE_ID_DESC' + | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' + | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -1823,14 +1838,10 @@ export type StorageModuleOrderBy = | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' - | 'UPLOAD_REQUESTS_TABLE_ID_ASC' - | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' - | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' - | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'POLICIES_ASC' @@ -1847,6 +1858,8 @@ export type StorageModuleOrderBy = | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' @@ -2321,7 +2334,13 @@ export type AppLimitOrderBy = | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' - | 'MAX_DESC'; + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; /** Methods to use when ordering `OrgLimit`. */ export type OrgLimitOrderBy = | 'NATURAL' @@ -2337,8 +2356,35 @@ export type OrgLimitOrderBy = | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `OrgLimitAggregate`. */ +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; /** Methods to use when ordering `AppStep`. */ export type AppStepOrderBy = | 'NATURAL' @@ -2513,6 +2559,8 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2561,6 +2609,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2609,15 +2659,86 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `AppPermissionDefault`. */ -export type AppPermissionDefaultOrderBy = +/** Methods to use when ordering `AgentMessage`. */ +export type AgentMessageOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC'; +/** Methods to use when ordering `AgentTask`. */ +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +/** Methods to use when ordering `AgentThread`. */ +export type AgentThreadOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +/** Methods to use when ordering `RoleType`. */ +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; /** Methods to use when ordering `IdentityProvider`. */ export type IdentityProviderOrderBy = | 'NATURAL' @@ -2661,26 +2782,32 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `RoleType`. */ -export type RoleTypeOrderBy = +/** Methods to use when ordering `AppPermissionDefault`. */ +export type AppPermissionDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC'; -/** Methods to use when ordering `MigrateFile`. */ -export type MigrateFileOrderBy = + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; +/** Methods to use when ordering `AppPermission`. */ +export type AppPermissionOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'UPLOAD_ASC' - | 'UPLOAD_DESC'; -/** Methods to use when ordering `AppLimitDefault`. */ -export type AppLimitDefaultOrderBy = + | 'NAME_ASC' + | 'NAME_DESC' + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `OrgPermission`. */ +export type OrgPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2688,10 +2815,14 @@ export type AppLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -/** Methods to use when ordering `OrgLimitDefault`. */ -export type OrgLimitDefaultOrderBy = + | 'BITNUM_ASC' + | 'BITNUM_DESC' + | 'BITSTR_ASC' + | 'BITSTR_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC'; +/** Methods to use when ordering `MembershipType`. */ +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2699,8 +2830,23 @@ export type OrgLimitDefaultOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +/** Methods to use when ordering `MigrateFile`. */ +export type MigrateFileOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'UPLOAD_ASC' + | 'UPLOAD_DESC'; /** Methods to use when ordering `DevicesModule`. */ export type DevicesModuleOrderBy = | 'NATURAL' @@ -2720,6 +2866,51 @@ export type DevicesModuleOrderBy = | 'USER_DEVICES_TABLE_DESC' | 'DEVICE_SETTINGS_TABLE_ASC' | 'DEVICE_SETTINGS_TABLE_DESC'; +/** Methods to use when ordering `NodeTypeRegistry`. */ +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +/** Methods to use when ordering `AppLimitDefault`. */ +export type AppLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +/** Methods to use when ordering `OrgLimitDefault`. */ +export type OrgLimitDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; /** Methods to use when ordering `UserConnectedAccount`. */ export type UserConnectedAccountOrderBy = | 'NATURAL' @@ -2758,23 +2949,8 @@ export type ObjectOrderBy = | 'FRZN_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -/** Methods to use when ordering `AppPermission`. */ -export type AppPermissionOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `OrgPermission`. */ -export type OrgPermissionOrderBy = +/** Methods to use when ordering `AppLevelRequirement`. */ +export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2782,50 +2958,18 @@ export type OrgPermissionOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'BITNUM_ASC' - | 'BITNUM_DESC' - | 'BITSTR_ASC' - | 'BITSTR_DESC' + | 'LEVEL_ASC' + | 'LEVEL_DESC' | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC'; -/** Methods to use when ordering `AppMembershipDefault`. */ -export type AppMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -/** Methods to use when ordering `OrgMembershipDefault`. */ -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' + | 'DESCRIPTION_DESC' + | 'REQUIRED_COUNT_ASC' + | 'REQUIRED_COUNT_DESC' + | 'PRIORITY_ASC' + | 'PRIORITY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; + | 'UPDATED_AT_DESC'; /** Methods to use when ordering `Commit`. */ export type CommitOrderBy = | 'NATURAL' @@ -2872,31 +3016,121 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -/** Methods to use when ordering `MembershipType`. */ -export type MembershipTypeOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; -/** Methods to use when ordering `RlsModule`. */ -export type RlsModuleOrderBy = +/** Methods to use when ordering `AppMembershipDefault`. */ +export type AppMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +/** Methods to use when ordering `OrgMembershipDefault`. */ +export type OrgMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +/** Methods to use when ordering `AppLimitEvent`. */ +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `OrgLimitEvent`. */ +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +/** Methods to use when ordering `PlansModule`. */ +export type PlansModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `RlsModule`. */ +export type RlsModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' | 'DATABASE_ID_DESC' | 'SCHEMA_ID_ASC' | 'SCHEMA_ID_DESC' @@ -2916,27 +3150,6 @@ export type RlsModuleOrderBy = | 'CURRENT_ROLE_DESC' | 'CURRENT_ROLE_ID_ASC' | 'CURRENT_ROLE_ID_DESC'; -/** Methods to use when ordering `AppLevelRequirement`. */ -export type AppLevelRequirementOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'LEVEL_ASC' - | 'LEVEL_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'REQUIRED_COUNT_ASC' - | 'REQUIRED_COUNT_DESC' - | 'PRIORITY_ASC' - | 'PRIORITY_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; /** Methods to use when ordering `SqlAction`. */ export type SqlActionOrderBy = | 'NATURAL' @@ -2966,35 +3179,68 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; -/** Methods to use when ordering `OrgMembershipSetting`. */ -export type OrgMembershipSettingOrderBy = +/** Methods to use when ordering `BillingModule`. */ +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +/** Methods to use when ordering `AstMigration`. */ +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; /** Methods to use when ordering `User`. */ export type UserOrderBy = | 'NATURAL' @@ -3022,35 +3268,39 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -/** Methods to use when ordering `AstMigration`. */ -export type AstMigrationOrderBy = +/** Methods to use when ordering `OrgMembershipSetting`. */ +export type OrgMembershipSettingOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; /** Methods to use when ordering `AppMembership`. */ export type AppMembershipOrderBy = | 'NATURAL' @@ -3076,8 +3326,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -3489,6 +3737,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -3664,6 +3920,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -3732,6 +3992,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -3911,8 +4187,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -4192,8 +4466,12 @@ export interface OrgMembershipSettingFilter { createChildCascadeMembers?: BooleanFilter; /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; /** Filter by the object’s `populateMemberEmail` field. */ populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ @@ -4498,9 +4776,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -4510,6 +4794,50 @@ export interface AppLimitFilter { /** Filter by the object’s `actor` relation. */ actor?: UserFilter; } +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} /** A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyOrgLimitFilter { /** Filters to entities where at least one related entity matches. */ @@ -4528,9 +4856,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -4544,6 +4878,42 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgLimitAggregateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitAggregateFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitAggregateFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitAggregateFilter; +} +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} /** A filter to be used against many `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAppStepFilter { /** Filters to entities where at least one related entity matches. */ @@ -4923,6 +5293,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -5003,6 +5375,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -5181,6 +5555,154 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentThreadFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; +} +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} /** A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManySchemaFilter { /** Filters to entities where at least one related entity matches. */ @@ -7981,6 +8503,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -7997,6 +8521,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -8315,6 +8843,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -8353,6 +8885,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -8487,50 +9021,6 @@ export interface SessionsModuleFilter { /** Filter by the object’s `usersTable` relation. */ usersTable?: TableFilter; } -/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ -export interface IntervalFilter { - /** Is null (if `true` is specified) or is not null (if `false` is specified). */ - isNull?: boolean; - /** Equal to the specified value. */ - equalTo?: IntervalInput; - /** Not equal to the specified value. */ - notEqualTo?: IntervalInput; - /** Not equal to the specified value, treating null like an ordinary value. */ - distinctFrom?: IntervalInput; - /** Equal to the specified value, treating null like an ordinary value. */ - notDistinctFrom?: IntervalInput; - /** Included in the specified list. */ - in?: IntervalInput[]; - /** Not included in the specified list. */ - notIn?: IntervalInput[]; - /** Less than the specified value. */ - lessThan?: IntervalInput; - /** Less than or equal to the specified value. */ - lessThanOrEqualTo?: IntervalInput; - /** Greater than the specified value. */ - greaterThan?: IntervalInput; - /** Greater than or equal to the specified value. */ - greaterThanOrEqualTo?: IntervalInput; -} -/** An interval of time that has passed where the smallest distinct unit is a second. */ -export interface IntervalInput { - /** - * A quantity of seconds. This is the only non-integer field, as all the other - * fields will dump their overflow into a smaller unit of time. Intervals don’t - * have a smaller unit than seconds. - */ - seconds?: number; - /** A quantity of minutes. */ - minutes?: number; - /** A quantity of hours. */ - hours?: number; - /** A quantity of days. */ - days?: number; - /** A quantity of months. */ - months?: number; - /** A quantity of years. */ - years?: number; -} /** A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyUserAuthModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -8947,14 +9437,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -8971,6 +9457,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -9001,8 +9489,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } /** A filter to be used against many `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyEntityTypeProvisionFilter { @@ -9350,6 +9836,98 @@ export interface NotificationsModuleFilter { /** A related `userSettingsTableByUserSettingsTableId` exists. */ userSettingsTableByUserSettingsTableIdExists?: boolean; } +/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlansModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PlansModuleFilter[]; + /** Negates the expression. */ + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseToManyDatabaseProvisionModuleFilter { /** Filters to entities where at least one related entity matches. */ @@ -9400,19 +9978,6 @@ export interface DatabaseProvisionModuleFilter { /** A related `database` exists. */ databaseExists?: boolean; } -/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; - /** Negates the expression. */ - not?: AppPermissionDefaultFilter; -} /** A filter to be used against `IdentityProvider` object types. All fields are combined with a logical ‘and.’ */ export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ @@ -9470,6 +10035,78 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } +/** A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} +/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface AppPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionFilter[]; + /** Negates the expression. */ + not?: AppPermissionFilter; +} +/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgPermissionFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `bitnum` field. */ + bitnum?: IntFilter; + /** Filter by the object’s `bitstr` field. */ + bitstr?: BitStringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgPermissionFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgPermissionFilter[]; + /** Negates the expression. */ + not?: OrgPermissionFilter; +} +/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ +export interface MembershipTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: MembershipTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: MembershipTypeFilter[]; + /** Negates the expression. */ + not?: MembershipTypeFilter; +} /** A filter to be used against `MigrateFile` object types. All fields are combined with a logical ‘and.’ */ export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -9520,14 +10157,39 @@ export interface ConstructiveInternalTypeUploadFilter { /** Contained by the specified JSON. */ containedBy?: ConstructiveInternalTypeUpload; } -/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; +/** A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ */ +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +/** A filter to be used against `AppLimitDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ @@ -9542,7 +10204,9 @@ export interface OrgLimitDefaultFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ @@ -9598,66 +10262,30 @@ export interface ObjectFilter { /** Negates the expression. */ not?: ObjectFilter; } -/** A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface AppPermissionFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: AppPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: AppPermissionFilter[]; - /** Negates the expression. */ - not?: AppPermissionFilter; -} -/** A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ */ -export interface OrgPermissionFilter { +/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLevelRequirementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `bitnum` field. */ - bitnum?: IntFilter; - /** Filter by the object’s `bitstr` field. */ - bitstr?: BitStringFilter; + /** Filter by the object’s `level` field. */ + level?: StringFilter; /** Filter by the object’s `description` field. */ description?: StringFilter; - /** Checks for all expressions in this list. */ - and?: OrgPermissionFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgPermissionFilter[]; - /** Negates the expression. */ - not?: OrgPermissionFilter; -} -/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + /** Filter by the object’s `requiredCount` field. */ + requiredCount?: IntFilter; + /** Filter by the object’s `priority` field. */ + priority?: IntFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; /** Filter by the object’s `updatedAt` field. */ updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; + and?: AppLevelRequirementFilter[]; /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; + or?: AppLevelRequirementFilter[]; /** Negates the expression. */ - not?: AppMembershipDefaultFilter; + not?: AppLevelRequirementFilter; } /** A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ */ export interface CommitFilter { @@ -9686,51 +10314,82 @@ export interface CommitFilter { /** Negates the expression. */ not?: CommitFilter; } -/** A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ */ -export interface MembershipTypeFilter { +/** A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ */ +export interface AppMembershipDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +/** A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface AppLimitEventFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppLimitEventFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppLimitEventFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppLimitEventFilter; } -/** A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ */ -export interface AppLevelRequirementFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; +/** A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitEventFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `level` field. */ - level?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `requiredCount` field. */ - requiredCount?: IntFilter; - /** Filter by the object’s `priority` field. */ - priority?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppLevelRequirementFilter[]; + and?: OrgLimitEventFilter[]; /** Checks for any expressions in this list. */ - or?: AppLevelRequirementFilter[]; + or?: OrgLimitEventFilter[]; /** Negates the expression. */ - not?: AppLevelRequirementFilter; + not?: OrgLimitEventFilter; } /** A filter to be used against `SqlAction` object types. All fields are combined with a logical ‘and.’ */ export interface SqlActionFilter { @@ -10057,6 +10716,14 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -10097,14 +10764,6 @@ export interface ProvisionTableInput { uniqueConstraints?: unknown; description?: string; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} export interface CreateDefaultIdsModuleInput { clientMutationId?: string; /** The `DefaultIdsModule` to be created by this mutation. */ @@ -10115,6 +10774,16 @@ export interface DefaultIdsModuleInput { id?: string; databaseId: string; } +export interface CreateRoleTypeInput { + clientMutationId?: string; + /** The `RoleType` to be created by this mutation. */ + roleType: RoleTypeInput; +} +/** An input for mutations affecting `RoleType` */ +export interface RoleTypeInput { + id: number; + name: string; +} export interface CreateViewTableInput { clientMutationId?: string; /** The `ViewTable` to be created by this mutation. */ @@ -10143,22 +10812,6 @@ export interface ApiSchemaInput { /** API that exposes this schema */ apiId: string; } -export interface CreateSiteThemeInput { - clientMutationId?: string; - /** The `SiteTheme` to be created by this mutation. */ - siteTheme: SiteThemeInput; -} -/** An input for mutations affecting `SiteTheme` */ -export interface SiteThemeInput { - /** Unique identifier for this theme record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this theme belongs to */ - siteId: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme: unknown; -} export interface CreateOrgMemberInput { clientMutationId?: string; /** The `OrgMember` to be created by this mutation. */ @@ -10174,16 +10827,21 @@ export interface OrgMemberInput { /** References the entity (org or group) this member belongs to */ entityId: string; } -export interface CreateAppPermissionDefaultInput { +export interface CreateSiteThemeInput { clientMutationId?: string; - /** The `AppPermissionDefault` to be created by this mutation. */ - appPermissionDefault: AppPermissionDefaultInput; + /** The `SiteTheme` to be created by this mutation. */ + siteTheme: SiteThemeInput; } -/** An input for mutations affecting `AppPermissionDefault` */ -export interface AppPermissionDefaultInput { +/** An input for mutations affecting `SiteTheme` */ +export interface SiteThemeInput { + /** Unique identifier for this theme record */ id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this theme belongs to */ + siteId: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme: unknown; } export interface CreateIdentityProviderInput { clientMutationId?: string; @@ -10230,42 +10888,6 @@ export interface StoreInput { hash?: string; createdAt?: string; } -export interface CreateApiModuleInput { - clientMutationId?: string; - /** The `ApiModule` to be created by this mutation. */ - apiModule: ApiModuleInput; -} -/** An input for mutations affecting `ApiModule` */ -export interface ApiModuleInput { - /** Unique identifier for this API module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** API this module configuration belongs to */ - apiId: string; - /** Module name (e.g. auth, uploads, webhooks) */ - name: string; - /** JSON configuration data for this module */ - data: unknown; -} -export interface CreateSiteModuleInput { - clientMutationId?: string; - /** The `SiteModule` to be created by this mutation. */ - siteModule: SiteModuleInput; -} -/** An input for mutations affecting `SiteModule` */ -export interface SiteModuleInput { - /** Unique identifier for this site module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId: string; - /** Site this module configuration belongs to */ - siteId: string; - /** Module name (e.g. user_auth_module, analytics) */ - name: string; - /** JSON configuration data for this module */ - data: unknown; -} export interface CreateEncryptedSecretsModuleInput { clientMutationId?: string; /** The `EncryptedSecretsModule` to be created by this mutation. */ @@ -10305,28 +10927,52 @@ export interface SecretsModuleInput { tableId?: string; tableName?: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - /** The `RoleType` to be created by this mutation. */ - roleType: RoleTypeInput; + /** The `AppPermissionDefault` to be created by this mutation. */ + appPermissionDefault: AppPermissionDefaultInput; } -/** An input for mutations affecting `RoleType` */ -export interface RoleTypeInput { - id: number; - name: string; +/** An input for mutations affecting `AppPermissionDefault` */ +export interface AppPermissionDefaultInput { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; } -export interface CreateOrgPermissionDefaultInput { +export interface CreateApiModuleInput { clientMutationId?: string; - /** The `OrgPermissionDefault` to be created by this mutation. */ - orgPermissionDefault: OrgPermissionDefaultInput; + /** The `ApiModule` to be created by this mutation. */ + apiModule: ApiModuleInput; } -/** An input for mutations affecting `OrgPermissionDefault` */ -export interface OrgPermissionDefaultInput { +/** An input for mutations affecting `ApiModule` */ +export interface ApiModuleInput { + /** Unique identifier for this API module record */ id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; - /** References the entity these default permissions apply to */ - entityId: string; + /** Reference to the metaschema database */ + databaseId: string; + /** API this module configuration belongs to */ + apiId: string; + /** Module name (e.g. auth, uploads, webhooks) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; +} +export interface CreateSiteModuleInput { + clientMutationId?: string; + /** The `SiteModule` to be created by this mutation. */ + siteModule: SiteModuleInput; +} +/** An input for mutations affecting `SiteModule` */ +export interface SiteModuleInput { + /** Unique identifier for this site module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId: string; + /** Site this module configuration belongs to */ + siteId: string; + /** Module name (e.g. user_auth_module, analytics) */ + name: string; + /** JSON configuration data for this module */ + data: unknown; } export interface CreateSchemaGrantInput { clientMutationId?: string; @@ -10434,42 +11080,115 @@ export interface AppOwnerGrantInput { createdAt?: string; updatedAt?: string; } -export interface CreateMigrateFileInput { +export interface CreateAppAchievementInput { clientMutationId?: string; - /** The `MigrateFile` to be created by this mutation. */ - migrateFile: MigrateFileInput; + /** The `AppAchievement` to be created by this mutation. */ + appAchievement: AppAchievementInput; } -/** An input for mutations affecting `MigrateFile` */ -export interface MigrateFileInput { +/** An input for mutations affecting `AppAchievement` */ +export interface AppAchievementInput { id?: string; - databaseId?: string; - upload?: ConstructiveInternalTypeUpload; + actorId?: string; + /** Name identifier of the level requirement being tracked */ + name: string; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppStepInput { clientMutationId?: string; - /** The `AppLimitDefault` to be created by this mutation. */ - appLimitDefault: AppLimitDefaultInput; + /** The `AppStep` to be created by this mutation. */ + appStep: AppStepInput; } -/** An input for mutations affecting `AppLimitDefault` */ -export interface AppLimitDefaultInput { +/** An input for mutations affecting `AppStep` */ +export interface AppStepInput { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Number of units completed in this step action */ + count?: number; + createdAt?: string; + updatedAt?: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateOrgPermissionDefaultInput { clientMutationId?: string; - /** The `OrgLimitDefault` to be created by this mutation. */ - orgLimitDefault: OrgLimitDefaultInput; + /** The `OrgPermissionDefault` to be created by this mutation. */ + orgPermissionDefault: OrgPermissionDefaultInput; } -/** An input for mutations affecting `OrgLimitDefault` */ -export interface OrgLimitDefaultInput { +/** An input for mutations affecting `OrgPermissionDefault` */ +export interface OrgPermissionDefaultInput { id?: string; - /** Name identifier of the limit this default applies to */ + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId: string; +} +export interface CreateAppPermissionInput { + clientMutationId?: string; + /** The `AppPermission` to be created by this mutation. */ + appPermission: AppPermissionInput; +} +/** An input for mutations affecting `AppPermission` */ +export interface AppPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateOrgPermissionInput { + clientMutationId?: string; + /** The `OrgPermission` to be created by this mutation. */ + orgPermission: OrgPermissionInput; +} +/** An input for mutations affecting `OrgPermission` */ +export interface OrgPermissionInput { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + /** The `MembershipType` to be created by this mutation. */ + membershipType: MembershipTypeInput; +} +/** An input for mutations affecting `MembershipType` */ +export interface MembershipTypeInput { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ name: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Description of what this membership type represents */ + description: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; +} +export interface CreateMigrateFileInput { + clientMutationId?: string; + /** The `MigrateFile` to be created by this mutation. */ + migrateFile: MigrateFileInput; +} +/** An input for mutations affecting `MigrateFile` */ +export interface MigrateFileInput { + id?: string; + databaseId?: string; + upload?: ConstructiveInternalTypeUpload; } export interface CreateDefaultPrivilegeInput { clientMutationId?: string; @@ -10650,6 +11369,51 @@ export interface OrgOwnerGrantInput { createdAt?: string; updatedAt?: string; } +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + /** The `NodeTypeRegistry` to be created by this mutation. */ + nodeTypeRegistry: NodeTypeRegistryInput; +} +/** An input for mutations affecting `NodeTypeRegistry` */ +export interface NodeTypeRegistryInput { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; +} +export interface CreateAppLimitDefaultInput { + clientMutationId?: string; + /** The `AppLimitDefault` to be created by this mutation. */ + appLimitDefault: AppLimitDefaultInput; +} +/** An input for mutations affecting `AppLimitDefault` */ +export interface AppLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface CreateOrgLimitDefaultInput { + clientMutationId?: string; + /** The `OrgLimitDefault` to be created by this mutation. */ + orgLimitDefault: OrgLimitDefaultInput; +} +/** An input for mutations affecting `OrgLimitDefault` */ +export interface OrgLimitDefaultInput { + id?: string; + /** Name identifier of the limit this default applies to */ + name: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} export interface CreateUserConnectedAccountInput { clientMutationId?: string; /** The `UserConnectedAccount` to be created by this mutation. */ @@ -10666,21 +11430,6 @@ export interface UserConnectedAccountInput { createdAt?: string; updatedAt?: string; } -export interface CreateObjectInput { - clientMutationId?: string; - /** The `Object` to be created by this mutation. */ - object: ObjectInput; -} -/** An input for mutations affecting `Object` */ -export interface ObjectInput { - id: string; - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; -} export interface CreateDatabaseInput { clientMutationId?: string; /** The `Database` to be created by this mutation. */ @@ -10733,97 +11482,52 @@ export interface CryptoAddressInput { createdAt?: string; updatedAt?: string; } -export interface CreateAppPermissionInput { +export interface CreateAgentMessageInput { clientMutationId?: string; - /** The `AppPermission` to be created by this mutation. */ - appPermission: AppPermissionInput; + /** The `AgentMessage` to be created by this mutation. */ + agentMessage: AgentMessageInput; } -/** An input for mutations affecting `AppPermission` */ -export interface AppPermissionInput { +/** An input for mutations affecting `AgentMessage` */ +export interface AgentMessageInput { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId: string; + /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ + entityId: string; + /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ + authorRole: string; id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record */ + ownerId?: string; + /** JSON metadata for extensible key-value storage */ + parts?: unknown; } -export interface CreateOrgPermissionInput { +export interface CreateObjectInput { clientMutationId?: string; - /** The `OrgPermission` to be created by this mutation. */ - orgPermission: OrgPermissionInput; + /** The `Object` to be created by this mutation. */ + object: ObjectInput; } -/** An input for mutations affecting `OrgPermission` */ -export interface OrgPermissionInput { - id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; +/** An input for mutations affecting `Object` */ +export interface ObjectInput { + id: string; + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; } -export interface CreateAppLimitInput { +export interface CreateSiteMetadatumInput { clientMutationId?: string; - /** The `AppLimit` to be created by this mutation. */ - appLimit: AppLimitInput; + /** The `SiteMetadatum` to be created by this mutation. */ + siteMetadatum: SiteMetadatumInput; } -/** An input for mutations affecting `AppLimit` */ -export interface AppLimitInput { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; -} -export interface CreateAppAchievementInput { - clientMutationId?: string; - /** The `AppAchievement` to be created by this mutation. */ - appAchievement: AppAchievementInput; -} -/** An input for mutations affecting `AppAchievement` */ -export interface AppAchievementInput { - id?: string; - actorId?: string; - /** Name identifier of the level requirement being tracked */ - name: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppStepInput { - clientMutationId?: string; - /** The `AppStep` to be created by this mutation. */ - appStep: AppStepInput; -} -/** An input for mutations affecting `AppStep` */ -export interface AppStepInput { - id?: string; - actorId?: string; - /** Name identifier of the level requirement this step fulfills */ - name: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface CreateSiteMetadatumInput { - clientMutationId?: string; - /** The `SiteMetadatum` to be created by this mutation. */ - siteMetadatum: SiteMetadatumInput; -} -/** An input for mutations affecting `SiteMetadatum` */ -export interface SiteMetadatumInput { - /** Unique identifier for this metadata record */ +/** An input for mutations affecting `SiteMetadatum` */ +export interface SiteMetadatumInput { + /** Unique identifier for this metadata record */ id?: string; /** Reference to the metaschema database */ databaseId: string; @@ -10836,56 +11540,26 @@ export interface SiteMetadatumInput { /** Open Graph image for social media previews */ ogImage?: ConstructiveInternalTypeImage; } -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - /** The `AppClaimedInvite` to be created by this mutation. */ - appClaimedInvite: AppClaimedInviteInput; -} -/** An input for mutations affecting `AppClaimedInvite` */ -export interface AppClaimedInviteInput { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - /** The `AppMembershipDefault` to be created by this mutation. */ - appMembershipDefault: AppMembershipDefaultInput; -} -/** An input for mutations affecting `AppMembershipDefault` */ -export interface AppMembershipDefaultInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface CreateOrgMembershipDefaultInput { +export interface CreateAppLevelRequirementInput { clientMutationId?: string; - /** The `OrgMembershipDefault` to be created by this mutation. */ - orgMembershipDefault: OrgMembershipDefaultInput; + /** The `AppLevelRequirement` to be created by this mutation. */ + appLevelRequirement: AppLevelRequirementInput; } -/** An input for mutations affecting `OrgMembershipDefault` */ -export interface OrgMembershipDefaultInput { +/** An input for mutations affecting `AppLevelRequirement` */ +export interface AppLevelRequirementInput { id?: string; + /** Name identifier of the requirement (matches step names) */ + name: string; + /** Name of the level this requirement belongs to */ + level: string; + /** Human-readable description of what this requirement entails */ + description?: string; + /** Number of steps needed to satisfy this requirement */ + requiredCount?: number; + /** Display ordering priority; lower values appear first */ + priority?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId: string; } export interface CreateFullTextSearchInput { clientMutationId?: string; @@ -11009,43 +11683,79 @@ export interface PhoneNumberInput { createdAt?: string; updatedAt?: string; } -export interface CreateOrgLimitInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - /** The `OrgLimit` to be created by this mutation. */ - orgLimit: OrgLimitInput; + /** The `AppClaimedInvite` to be created by this mutation. */ + appClaimedInvite: AppClaimedInviteInput; } -/** An input for mutations affecting `OrgLimit` */ -export interface OrgLimitInput { +/** An input for mutations affecting `AppClaimedInvite` */ +export interface AppClaimedInviteInput { id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: unknown; + /** User ID of the original invitation sender */ + senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateAppMembershipDefaultInput { + clientMutationId?: string; + /** The `AppMembershipDefault` to be created by this mutation. */ + appMembershipDefault: AppMembershipDefaultInput; +} +/** An input for mutations affecting `AppMembershipDefault` */ +export interface AppMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + /** The `OrgMembershipDefault` to be created by this mutation. */ + orgMembershipDefault: OrgMembershipDefaultInput; +} +/** An input for mutations affecting `OrgMembershipDefault` */ +export interface OrgMembershipDefaultInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId: string; } -export interface CreateMembershipTypeInput { +export interface CreateAuditLogInput { clientMutationId?: string; - /** The `MembershipType` to be created by this mutation. */ - membershipType: MembershipTypeInput; + /** The `AuditLog` to be created by this mutation. */ + auditLog: AuditLogInput; } -/** An input for mutations affecting `MembershipType` */ -export interface MembershipTypeInput { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name: string; - /** Description of what this membership type represents */ - description: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; +/** An input for mutations affecting `AuditLog` */ +export interface AuditLogInput { + id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event: string; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ + userAgent?: string; + /** IP address of the client that initiated the auth event */ + ipAddress?: string; + /** Whether the authentication attempt succeeded */ + success: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; } export interface CreateDomainInput { clientMutationId?: string; @@ -11067,6 +11777,80 @@ export interface DomainInput { /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname; } +export interface CreateAgentTaskInput { + clientMutationId?: string; + /** The `AgentTask` to be created by this mutation. */ + agentTask: AgentTaskInput; +} +/** An input for mutations affecting `AgentTask` */ +export interface AgentTaskInput { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId: string; + /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ + entityId: string; + /** Natural-language description of the work to do. Required. */ + description: string; + /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ + source?: string; + /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ + error?: string; + id?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record */ + ownerId?: string; + /** Current status of this record */ + status?: string; +} +export interface CreateAgentThreadInput { + clientMutationId?: string; + /** The `AgentThread` to be created by this mutation. */ + agentThread: AgentThreadInput; +} +/** An input for mutations affecting `AgentThread` */ +export interface AgentThreadInput { + /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ + title?: string; + /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ + mode?: string; + /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ + model?: string; + /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ + systemPrompt?: string; + id?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record within the entity */ + ownerId?: string; + /** Entity this record belongs to */ + entityId: string; + /** Current status of this record */ + status?: string; +} +export interface CreateEmailInput { + clientMutationId?: string; + /** The `Email` to be created by this mutation. */ + email: EmailInput; +} +/** An input for mutations affecting `Email` */ +export interface EmailInput { + id?: string; + ownerId?: string; + /** The email address */ + email: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateAppGrantInput { clientMutationId?: string; /** The `AppGrant` to be created by this mutation. */ @@ -11103,6 +11887,58 @@ export interface OrgClaimedInviteInput { updatedAt?: string; entityId: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + /** The `AppLimitEvent` to be created by this mutation. */ + appLimitEvent: AppLimitEventInput; +} +/** An input for mutations affecting `AppLimitEvent` */ +export interface AppLimitEventInput { + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + /** The `OrgLimitEvent` to be created by this mutation. */ + orgLimitEvent: OrgLimitEventInput; +} +/** An input for mutations affecting `OrgLimitEvent` */ +export interface OrgLimitEventInput { + /** Limit name this event applies to */ + name?: string; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string; + /** Change amount: positive for increment, negative for decrement */ + delta?: string; + /** Usage count before this event */ + numBefore?: string; + /** Usage count after this event */ + numAfter?: string; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string; +} export interface CreateOrgChartEdgeInput { clientMutationId?: string; /** The `OrgChartEdge` to be created by this mutation. */ @@ -11124,25 +11960,51 @@ export interface OrgChartEdgeInput { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number; } -export interface CreateOrgGrantInput { +export interface CreateAppLimitInput { clientMutationId?: string; - /** The `OrgGrant` to be created by this mutation. */ - orgGrant: OrgGrantInput; + /** The `AppLimit` to be created by this mutation. */ + appLimit: AppLimitInput; } -/** An input for mutations affecting `OrgGrant` */ -export interface OrgGrantInput { +/** An input for mutations affecting `AppLimit` */ +export interface AppLimitInput { id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ actorId: string; - /** The entity (org or group) this permission grant applies to */ + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + /** The `OrgLimitAggregate` to be created by this mutation. */ + orgLimitAggregate: OrgLimitAggregateInput; +} +/** An input for mutations affecting `OrgLimitAggregate` */ +export interface OrgLimitAggregateInput { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ entityId: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; } export interface CreateBlueprintConstructionInput { clientMutationId?: string; @@ -11174,6 +12036,25 @@ export interface BlueprintConstructionInput { /** Timestamp when this construction attempt was last modified. */ updatedAt?: string; } +export interface CreatePlansModuleInput { + clientMutationId?: string; + /** The `PlansModule` to be created by this mutation. */ + plansModule: PlansModuleInput; +} +/** An input for mutations affecting `PlansModule` */ +export interface PlansModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + prefix?: string; +} export interface CreateRlsModuleInput { clientMutationId?: string; /** The `RlsModule` to be created by this mutation. */ @@ -11212,50 +12093,26 @@ export interface SessionsModuleInput { sessionCredentialsTable?: string; authSettingsTable?: string; } -export interface CreateAppLevelRequirementInput { +export interface CreateOrgGrantInput { clientMutationId?: string; - /** The `AppLevelRequirement` to be created by this mutation. */ - appLevelRequirement: AppLevelRequirementInput; + /** The `OrgGrant` to be created by this mutation. */ + orgGrant: OrgGrantInput; } -/** An input for mutations affecting `AppLevelRequirement` */ -export interface AppLevelRequirementInput { +/** An input for mutations affecting `OrgGrant` */ +export interface OrgGrantInput { id?: string; - /** Name identifier of the requirement (matches step names) */ - name: string; - /** Name of the level this requirement belongs to */ - level: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - /** Display ordering priority; lower values appear first */ - priority?: number; + /** Bitmask of permissions being granted or revoked */ + permissions?: string; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean; + /** The member receiving or losing the permission grant */ + actorId: string; + /** The entity (org or group) this permission grant applies to */ + entityId: string; + grantorId?: string; createdAt?: string; updatedAt?: string; } -export interface CreateAuditLogInput { - clientMutationId?: string; - /** The `AuditLog` to be created by this mutation. */ - auditLog: AuditLogInput; -} -/** An input for mutations affecting `AuditLog` */ -export interface AuditLogInput { - id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event: string; - /** User who performed the authentication action; NULL if user was deleted */ - actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success: boolean; - /** Timestamp when the audit event was recorded */ - createdAt?: string; -} export interface CreateAppLevelInput { clientMutationId?: string; /** The `AppLevel` to be created by this mutation. */ @@ -11275,6 +12132,30 @@ export interface AppLevelInput { createdAt?: string; updatedAt?: string; } +export interface CreateOrgLimitInput { + clientMutationId?: string; + /** The `OrgLimit` to be created by this mutation. */ + orgLimit: OrgLimitInput; +} +/** An input for mutations affecting `OrgLimit` */ +export interface OrgLimitInput { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + entityId: string; +} export interface CreateBlueprintInput { clientMutationId?: string; /** The `Blueprint` to be created by this mutation. */ @@ -11327,26 +12208,6 @@ export interface DenormalizedTableFieldInput { funcName?: string; funcOrder?: number; } -export interface CreateEmailInput { - clientMutationId?: string; - /** The `Email` to be created by this mutation. */ - email: EmailInput; -} -/** An input for mutations affecting `Email` */ -export interface EmailInput { - id?: string; - ownerId?: string; - /** The email address */ - email: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface CreateOrgMemberProfileInput { clientMutationId?: string; /** The `OrgMemberProfile` to be created by this mutation. */ @@ -11395,63 +12256,6 @@ export interface SqlActionInput { actionId?: string; actorId?: string; } -export interface CreateSecureTableProvisionInput { - clientMutationId?: string; - /** The `SecureTableProvision` to be created by this mutation. */ - secureTableProvision: SecureTableProvisionInput; -} -/** An input for mutations affecting `SecureTableProvision` */ -export interface SecureTableProvisionInput { - /** Unique identifier for this provision row. */ - id?: string; - /** The database this provision belongs to. Required. */ - databaseId: string; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ - fields?: unknown[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - /** The `OrgMembershipSetting` to be created by this mutation. */ - orgMembershipSetting: OrgMembershipSettingInput; -} -/** An input for mutations affecting `OrgMembershipSetting` */ -export interface OrgMembershipSettingInput { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; -} export interface CreateDatabaseTransferInput { clientMutationId?: string; /** The `DatabaseTransfer` to be created by this mutation. */ @@ -11474,6 +12278,28 @@ export interface DatabaseTransferInput { updatedAt?: string; completedAt?: string; } +export interface CreateBillingModuleInput { + clientMutationId?: string; + /** The `BillingModule` to be created by this mutation. */ + billingModule: BillingModuleInput; +} +/** An input for mutations affecting `BillingModule` */ +export interface BillingModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} export interface CreateCryptoAuthModuleInput { clientMutationId?: string; /** The `CryptoAuthModule` to be created by this mutation. */ @@ -11549,6 +12375,57 @@ export interface InvitesModuleInput { membershipType: number; entityTableId?: string; } +export interface CreateSecureTableProvisionInput { + clientMutationId?: string; + /** The `SecureTableProvision` to be created by this mutation. */ + secureTableProvision: SecureTableProvisionInput; +} +/** An input for mutations affecting `SecureTableProvision` */ +export interface SecureTableProvisionInput { + /** Unique identifier for this provision row. */ + id?: string; + /** The database this provision belongs to. Required. */ + databaseId: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} +export interface CreateAstMigrationInput { + clientMutationId?: string; + /** The `AstMigration` to be created by this mutation. */ + astMigration: AstMigrationInput; +} +/** An input for mutations affecting `AstMigration` */ +export interface AstMigrationInput { + id?: number; + databaseId?: string; + name?: string; + requires?: string[]; + payload?: unknown; + deploys?: string; + deploy?: unknown; + revert?: unknown; + verify?: unknown; + createdAt?: string; + action?: string; + actionId?: string; + actorId?: string; +} export interface CreateEnumInput { clientMutationId?: string; /** The `Enum` to be created by this mutation. */ @@ -11632,28 +12509,90 @@ export interface WebauthnAuthModuleInput { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface CreateAppInput { +export interface CreateAppInviteInput { clientMutationId?: string; - /** The `App` to be created by this mutation. */ - app: AppInput; + /** The `AppInvite` to be created by this mutation. */ + appInvite: AppInviteInput; } -/** An input for mutations affecting `App` */ -export interface AppInput { - /** Unique identifier for this app */ +/** An input for mutations affecting `AppInvite` */ +export interface AppInviteInput { id?: string; - /** Reference to the metaschema database this app belongs to */ - databaseId: string; - /** Site this app is associated with (one app per site) */ - siteId: string; - /** Display name of the app */ - name?: string; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl; - /** Apple App Store application identifier */ - appStoreId?: string; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + /** The `OrgMembershipSetting` to be created by this mutation. */ + orgMembershipSetting: OrgMembershipSettingInput; +} +/** An input for mutations affecting `OrgMembershipSetting` */ +export interface OrgMembershipSettingInput { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} +export interface CreateAppInput { + clientMutationId?: string; + /** The `App` to be created by this mutation. */ + app: AppInput; +} +/** An input for mutations affecting `App` */ +export interface AppInput { + /** Unique identifier for this app */ + id?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId: string; + /** Site this app is associated with (one app per site) */ + siteId: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ appIdPrefix?: string; /** URL to the Google Play Store listing */ playStoreLink?: ConstructiveInternalTypeUrl; @@ -11684,26 +12623,87 @@ export interface SiteInput { /** PostgreSQL database name this site connects to */ dbname?: string; } -export interface CreateAstMigrationInput { +export interface CreateNotificationsModuleInput { clientMutationId?: string; - /** The `AstMigration` to be created by this mutation. */ - astMigration: AstMigrationInput; + /** The `NotificationsModule` to be created by this mutation. */ + notificationsModule: NotificationsModuleInput; } -/** An input for mutations affecting `AstMigration` */ -export interface AstMigrationInput { - id?: number; - databaseId?: string; +/** An input for mutations affecting `NotificationsModule` */ +export interface NotificationsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; +} +export interface CreatePermissionsModuleInput { + clientMutationId?: string; + /** The `PermissionsModule` to be created by this mutation. */ + permissionsModule: PermissionsModuleInput; +} +/** An input for mutations affecting `PermissionsModule` */ +export interface PermissionsModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + prefix?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; +} +export interface CreateWebauthnCredentialInput { + clientMutationId?: string; + /** The `WebauthnCredential` to be created by this mutation. */ + webauthnCredential: WebauthnCredentialInput; +} +/** An input for mutations affecting `WebauthnCredential` */ +export interface WebauthnCredentialInput { + id?: string; + ownerId?: string; + /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ + credentialId: string; + /** COSE-encoded public key bytes from the authenticator attestation. */ + publicKey: Base64EncodedBinary; + /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ + signCount?: string; + /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ + webauthnUserId: string; + /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ + transports?: string[]; + /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ + credentialDeviceType: string; + /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ + backupEligible?: boolean; + /** Current backup state; updated on each successful sign-in assertion. */ + backupState?: boolean; + /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ name?: string; - requires?: string[]; - payload?: unknown; - deploys?: string; - deploy?: unknown; - revert?: unknown; - verify?: unknown; + /** Timestamp of the most recent successful sign-in assertion using this credential. */ + lastUsedAt?: string; createdAt?: string; - action?: string; - actionId?: string; - actorId?: string; + updatedAt?: string; } export interface CreatePrimaryKeyConstraintInput { clientMutationId?: string; @@ -11839,68 +12839,46 @@ export interface PolicyInput { createdAt?: string; updatedAt?: string; } -export interface CreateNotificationsModuleInput { - clientMutationId?: string; - /** The `NotificationsModule` to be created by this mutation. */ - notificationsModule: NotificationsModuleInput; -} -/** An input for mutations affecting `NotificationsModule` */ -export interface NotificationsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; -} -export interface CreatePermissionsModuleInput { +export interface CreateEmbeddingChunkInput { clientMutationId?: string; - /** The `PermissionsModule` to be created by this mutation. */ - permissionsModule: PermissionsModuleInput; + /** The `EmbeddingChunk` to be created by this mutation. */ + embeddingChunk: EmbeddingChunkInput; } -/** An input for mutations affecting `PermissionsModule` */ -export interface PermissionsModuleInput { +/** An input for mutations affecting `EmbeddingChunk` */ +export interface EmbeddingChunkInput { id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; + databaseId?: string; + tableId: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; } -export interface CreateAppInviteInput { +export interface CreateOrgInviteInput { clientMutationId?: string; - /** The `AppInvite` to be created by this mutation. */ - appInvite: AppInviteInput; + /** The `OrgInvite` to be created by this mutation. */ + orgInvite: OrgInviteInput; } -/** An input for mutations affecting `AppInvite` */ -export interface AppInviteInput { +/** An input for mutations affecting `OrgInvite` */ +export interface OrgInviteInput { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -11913,118 +12891,21 @@ export interface AppInviteInput { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; + entityId: string; } -export interface CreateEmbeddingChunkInput { +export interface CreateAppMembershipInput { clientMutationId?: string; - /** The `EmbeddingChunk` to be created by this mutation. */ - embeddingChunk: EmbeddingChunkInput; + /** The `AppMembership` to be created by this mutation. */ + appMembership: AppMembershipInput; } -/** An input for mutations affecting `EmbeddingChunk` */ -export interface EmbeddingChunkInput { - id?: string; - databaseId?: string; - tableId: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: unknown; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - parentFkFieldId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateSchemaInput { - clientMutationId?: string; - /** The `Schema` to be created by this mutation. */ - schema: SchemaInput; -} -/** An input for mutations affecting `Schema` */ -export interface SchemaInput { - id?: string; - databaseId: string; - name: string; - schemaName: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface CreateLimitsModuleInput { - clientMutationId?: string; - /** The `LimitsModule` to be created by this mutation. */ - limitsModule: LimitsModuleInput; -} -/** An input for mutations affecting `LimitsModule` */ -export interface LimitsModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - prefix?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; -} -export interface CreateProfilesModuleInput { - clientMutationId?: string; - /** The `ProfilesModule` to be created by this mutation. */ - profilesModule: ProfilesModuleInput; -} -/** An input for mutations affecting `ProfilesModule` */ -export interface ProfilesModuleInput { - id?: string; - databaseId: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - membershipType: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface CreateAppMembershipInput { - clientMutationId?: string; - /** The `AppMembership` to be created by this mutation. */ - appMembership: AppMembershipInput; -} -/** An input for mutations affecting `AppMembership` */ -export interface AppMembershipInput { +/** An input for mutations affecting `AppMembership` */ +export interface AppMembershipInput { id?: string; createdAt?: string; updatedAt?: string; @@ -12040,8 +12921,6 @@ export interface AppMembershipInput { isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -12054,6 +12933,28 @@ export interface AppMembershipInput { actorId: string; profileId?: string; } +export interface CreateSchemaInput { + clientMutationId?: string; + /** The `Schema` to be created by this mutation. */ + schema: SchemaInput; +} +/** An input for mutations affecting `Schema` */ +export interface SchemaInput { + id?: string; + databaseId: string; + name: string; + schemaName: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface CreateIndexInput { clientMutationId?: string; /** The `Index` to be created by this mutation. */ @@ -12081,107 +12982,32 @@ export interface IndexInput { createdAt?: string; updatedAt?: string; } -export interface CreateWebauthnCredentialInput { - clientMutationId?: string; - /** The `WebauthnCredential` to be created by this mutation. */ - webauthnCredential: WebauthnCredentialInput; -} -/** An input for mutations affecting `WebauthnCredential` */ -export interface WebauthnCredentialInput { - id?: string; - ownerId?: string; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId: string; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey: Base64EncodedBinary; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId: string; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[]; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType: string; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface CreateOrgInviteInput { - clientMutationId?: string; - /** The `OrgInvite` to be created by this mutation. */ - orgInvite: OrgInviteInput; -} -/** An input for mutations affecting `OrgInvite` */ -export interface OrgInviteInput { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - entityId: string; -} -export interface CreateOrgMembershipInput { +export interface CreateLimitsModuleInput { clientMutationId?: string; - /** The `OrgMembership` to be created by this mutation. */ - orgMembership: OrgMembershipInput; + /** The `LimitsModule` to be created by this mutation. */ + limitsModule: LimitsModuleInput; } -/** An input for mutations affecting `OrgMembership` */ -export interface OrgMembershipInput { +/** An input for mutations affecting `LimitsModule` */ +export interface LimitsModuleInput { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId: string; - /** References the entity (org or group) this membership belongs to */ - entityId: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + aggregateTableId?: string; + prefix?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; } export interface CreateBlueprintTemplateInput { clientMutationId?: string; @@ -12259,56 +13085,95 @@ export interface HierarchyModuleInput { isManagerOfFunction?: string; createdAt?: string; } -export interface CreateForeignKeyConstraintInput { +export interface CreateProfilesModuleInput { clientMutationId?: string; - /** The `ForeignKeyConstraint` to be created by this mutation. */ - foreignKeyConstraint: ForeignKeyConstraintInput; + /** The `ProfilesModule` to be created by this mutation. */ + profilesModule: ProfilesModuleInput; } -/** An input for mutations affecting `ForeignKeyConstraint` */ -export interface ForeignKeyConstraintInput { +/** An input for mutations affecting `ProfilesModule` */ +export interface ProfilesModuleInput { + id?: string; + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + membershipType: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; +} +export interface CreateOrgMembershipInput { + clientMutationId?: string; + /** The `OrgMembership` to be created by this mutation. */ + orgMembership: OrgMembershipInput; +} +/** An input for mutations affecting `OrgMembership` */ +export interface OrgMembershipInput { id?: string; - databaseId?: string; - tableId: string; - name?: string; - description?: string; - smartTags?: unknown; - type?: string; - fieldIds: string[]; - refTableId: string; - refFieldIds: string[]; - deleteAction?: string; - updateAction?: string; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; createdAt?: string; updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId: string; + /** References the entity (org or group) this membership belongs to */ + entityId: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } -export interface CreateTableInput { +export interface CreateForeignKeyConstraintInput { clientMutationId?: string; - /** The `Table` to be created by this mutation. */ - table: TableInput; + /** The `ForeignKeyConstraint` to be created by this mutation. */ + foreignKeyConstraint: ForeignKeyConstraintInput; } -/** An input for mutations affecting `Table` */ -export interface TableInput { +/** An input for mutations affecting `ForeignKeyConstraint` */ +export interface ForeignKeyConstraintInput { id?: string; databaseId?: string; - schemaId: string; - name: string; - label?: string; + tableId: string; + name?: string; description?: string; smartTags?: unknown; + type?: string; + fieldIds: string[]; + refTableId: string; + refFieldIds: string[]; + deleteAction?: string; + updateAction?: string; category?: ObjectCategory; module?: string; scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; tags?: string[]; - inheritsId?: string; createdAt?: string; updatedAt?: string; } @@ -12325,10 +13190,8 @@ export interface StorageModuleInput { privateSchemaId?: string; bucketsTableId?: string; filesTableId?: string; - uploadRequestsTableId?: string; bucketsTableName?: string; filesTableName?: string; - uploadRequestsTableName?: string; membershipType?: number; policies?: unknown; skipDefaultPolicyTables?: string[]; @@ -12337,12 +13200,40 @@ export interface StorageModuleInput { publicUrlPrefix?: string; provider?: string; allowedOrigins?: string[]; + restrictReads?: boolean; uploadUrlExpirySeconds?: number; downloadUrlExpirySeconds?: number; defaultMaxFileSize?: string; maxFilenameLength?: number; cacheTtlSeconds?: number; } +export interface CreateTableInput { + clientMutationId?: string; + /** The `Table` to be created by this mutation. */ + table: TableInput; +} +/** An input for mutations affecting `Table` */ +export interface TableInput { + id?: string; + databaseId?: string; + schemaId: string; + name: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} export interface CreateEntityTypeProvisionInput { clientMutationId?: string; /** The `EntityTypeProvision` to be created by this mutation. */ @@ -12412,7 +13303,7 @@ export interface EntityTypeProvisionInput { hasLevels?: boolean; /** * Whether to provision storage_module for this type. Defaults to false. - * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + * When true, creates {prefix}_buckets and {prefix}_files tables * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. * Storage tables get owner_id FK to the entity table, so files are owned by the entity. */ @@ -12445,7 +13336,7 @@ export interface EntityTypeProvisionInput { * - allowed_origins (text[]) per-bucket CORS override * - provisions (jsonb object) optional: customize storage tables * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets", "upload_requests". + * Keyed by table role: "files", "buckets". * Each value uses the same shape as table_provision: * { nodes, fields, grants, use_rls, policies }. Fanned out * to secure_table_provision targeting the corresponding table. @@ -12818,6 +13709,17 @@ export interface DefaultIdsModulePatch { id?: string; databaseId?: string; } +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + /** An object where the defined keys will be set on the `RoleType` being updated. */ + roleTypePatch: RoleTypePatch; +} +/** Represents an update to a `RoleType`. Fields that are set will be updated. */ +export interface RoleTypePatch { + id?: number; + name?: string; +} export interface UpdateViewTableInput { clientMutationId?: string; id: string; @@ -12849,24 +13751,6 @@ export interface ApiSchemaPatch { /** API that exposes this schema */ apiId?: string; } -export interface UpdateSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; - /** An object where the defined keys will be set on the `SiteTheme` being updated. */ - siteThemePatch: SiteThemePatch; -} -/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ -export interface SiteThemePatch { - /** Unique identifier for this theme record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this theme belongs to */ - siteId?: string; - /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ - theme?: unknown; -} export interface UpdateOrgMemberInput { clientMutationId?: string; id: string; @@ -12883,17 +13767,23 @@ export interface OrgMemberPatch { /** References the entity (org or group) this member belongs to */ entityId?: string; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; - /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ - appPermissionDefaultPatch: AppPermissionDefaultPatch; + /** An object where the defined keys will be set on the `SiteTheme` being updated. */ + siteThemePatch: SiteThemePatch; } -/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ -export interface AppPermissionDefaultPatch { +/** Represents an update to a `SiteTheme`. Fields that are set will be updated. */ +export interface SiteThemePatch { + /** Unique identifier for this theme record */ id?: string; - /** Default permission bitmask applied to new members */ - permissions?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this theme belongs to */ + siteId?: string; + /** JSONB object containing theme tokens (colors, typography, spacing, etc.) */ + theme?: unknown; } export interface UpdateRefInput { clientMutationId?: string; @@ -12932,46 +13822,6 @@ export interface StorePatch { hash?: string; createdAt?: string; } -export interface UpdateApiModuleInput { - clientMutationId?: string; - /** Unique identifier for this API module record */ - id: string; - /** An object where the defined keys will be set on the `ApiModule` being updated. */ - apiModulePatch: ApiModulePatch; -} -/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ -export interface ApiModulePatch { - /** Unique identifier for this API module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** API this module configuration belongs to */ - apiId?: string; - /** Module name (e.g. auth, uploads, webhooks) */ - name?: string; - /** JSON configuration data for this module */ - data?: unknown; -} -export interface UpdateSiteModuleInput { - clientMutationId?: string; - /** Unique identifier for this site module record */ - id: string; - /** An object where the defined keys will be set on the `SiteModule` being updated. */ - siteModulePatch: SiteModulePatch; -} -/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ -export interface SiteModulePatch { - /** Unique identifier for this site module record */ - id?: string; - /** Reference to the metaschema database */ - databaseId?: string; - /** Site this module configuration belongs to */ - siteId?: string; - /** Module name (e.g. user_auth_module, analytics) */ - name?: string; - /** JSON configuration data for this module */ - data?: unknown; -} export interface UpdateEncryptedSecretsModuleInput { clientMutationId?: string; id: string; @@ -13014,47 +13864,74 @@ export interface SecretsModulePatch { tableId?: string; tableName?: string; } -export interface UpdateRoleTypeInput { - clientMutationId?: string; - id: number; - /** An object where the defined keys will be set on the `RoleType` being updated. */ - roleTypePatch: RoleTypePatch; -} -/** Represents an update to a `RoleType`. Fields that are set will be updated. */ -export interface RoleTypePatch { - id?: number; - name?: string; -} -export interface UpdateOrgPermissionDefaultInput { +export interface UpdateAppPermissionDefaultInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch; + /** An object where the defined keys will be set on the `AppPermissionDefault` being updated. */ + appPermissionDefaultPatch: AppPermissionDefaultPatch; } -/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ -export interface OrgPermissionDefaultPatch { +/** Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. */ +export interface AppPermissionDefaultPatch { id?: string; /** Default permission bitmask applied to new members */ permissions?: string; - /** References the entity these default permissions apply to */ - entityId?: string; } -export interface UpdateSchemaGrantInput { +export interface UpdateApiModuleInput { clientMutationId?: string; + /** Unique identifier for this API module record */ id: string; - /** An object where the defined keys will be set on the `SchemaGrant` being updated. */ - schemaGrantPatch: SchemaGrantPatch; + /** An object where the defined keys will be set on the `ApiModule` being updated. */ + apiModulePatch: ApiModulePatch; } -/** Represents an update to a `SchemaGrant`. Fields that are set will be updated. */ -export interface SchemaGrantPatch { +/** Represents an update to a `ApiModule`. Fields that are set will be updated. */ +export interface ApiModulePatch { + /** Unique identifier for this API module record */ id?: string; + /** Reference to the metaschema database */ databaseId?: string; - schemaId?: string; - granteeName?: string; - createdAt?: string; - updatedAt?: string; + /** API this module configuration belongs to */ + apiId?: string; + /** Module name (e.g. auth, uploads, webhooks) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; } -export interface UpdateTriggerFunctionInput { +export interface UpdateSiteModuleInput { + clientMutationId?: string; + /** Unique identifier for this site module record */ + id: string; + /** An object where the defined keys will be set on the `SiteModule` being updated. */ + siteModulePatch: SiteModulePatch; +} +/** Represents an update to a `SiteModule`. Fields that are set will be updated. */ +export interface SiteModulePatch { + /** Unique identifier for this site module record */ + id?: string; + /** Reference to the metaschema database */ + databaseId?: string; + /** Site this module configuration belongs to */ + siteId?: string; + /** Module name (e.g. user_auth_module, analytics) */ + name?: string; + /** JSON configuration data for this module */ + data?: unknown; +} +export interface UpdateSchemaGrantInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `SchemaGrant` being updated. */ + schemaGrantPatch: SchemaGrantPatch; +} +/** Represents an update to a `SchemaGrant`. Fields that are set will be updated. */ +export interface SchemaGrantPatch { + id?: string; + databaseId?: string; + schemaId?: string; + granteeName?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateTriggerFunctionInput { clientMutationId?: string; id: string; /** An object where the defined keys will be set on the `TriggerFunction` being updated. */ @@ -13152,33 +14029,111 @@ export interface AppOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppAchievementInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ - appLimitDefaultPatch: AppLimitDefaultPatch; + /** An object where the defined keys will be set on the `AppAchievement` being updated. */ + appAchievementPatch: AppAchievementPatch; } -/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ -export interface AppLimitDefaultPatch { +/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ +export interface AppAchievementPatch { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement being tracked */ name?: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Cumulative count of completed steps toward this requirement */ + count?: number; + createdAt?: string; + updatedAt?: string; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppStepInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ - orgLimitDefaultPatch: OrgLimitDefaultPatch; + /** An object where the defined keys will be set on the `AppStep` being updated. */ + appStepPatch: AppStepPatch; } -/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ -export interface OrgLimitDefaultPatch { +/** Represents an update to a `AppStep`. Fields that are set will be updated. */ +export interface AppStepPatch { id?: string; - /** Name identifier of the limit this default applies to */ + actorId?: string; + /** Name identifier of the level requirement this step fulfills */ name?: string; - /** Default maximum usage allowed for this limit */ - max?: number; + /** Number of units completed in this step action */ + count?: number; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermissionDefault` being updated. */ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch; +} +/** Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. */ +export interface OrgPermissionDefaultPatch { + id?: string; + /** Default permission bitmask applied to new members */ + permissions?: string; + /** References the entity these default permissions apply to */ + entityId?: string; +} +export interface UpdateAppPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppPermission` being updated. */ + appPermissionPatch: AppPermissionPatch; +} +/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ +export interface AppPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateOrgPermissionInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgPermission` being updated. */ + orgPermissionPatch: OrgPermissionPatch; +} +/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ +export interface OrgPermissionPatch { + id?: string; + /** Human-readable permission name (e.g. read, write, manage) */ + name?: string; + /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ + bitnum?: number; + /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ + bitstr?: string; + /** Human-readable description of what this permission allows */ + description?: string; +} +export interface UpdateMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** An object where the defined keys will be set on the `MembershipType` being updated. */ + membershipTypePatch: MembershipTypePatch; +} +/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ +export interface MembershipTypePatch { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id?: number; + /** Human-readable name of the membership type */ + name?: string; + /** Description of what this membership type represents */ + description?: string; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean; } export interface UpdateDefaultPrivilegeInput { clientMutationId?: string; @@ -13371,22 +14326,53 @@ export interface OrgOwnerGrantPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateObjectInput { +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + /** An object where the defined keys will be set on the `NodeTypeRegistry` being updated. */ + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +/** Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. */ +export interface NodeTypeRegistryPatch { + name?: string; + slug?: string; + category?: string; + displayName?: string; + description?: string; + parameterSchema?: unknown; + tags?: string[]; +} +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - databaseId: string; - /** An object where the defined keys will be set on the `Object` being updated. */ - objectPatch: ObjectPatch; + /** An object where the defined keys will be set on the `AppLimitDefault` being updated. */ + appLimitDefaultPatch: AppLimitDefaultPatch; } -/** Represents an update to a `Object`. Fields that are set will be updated. */ -export interface ObjectPatch { +/** Represents an update to a `AppLimitDefault`. Fields that are set will be updated. */ +export interface AppLimitDefaultPatch { id?: string; - databaseId?: string; - kids?: string[]; - ktree?: string[]; - data?: unknown; - frzn?: boolean; - createdAt?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; +} +export interface UpdateOrgLimitDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitDefault` being updated. */ + orgLimitDefaultPatch: OrgLimitDefaultPatch; +} +/** Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. */ +export interface OrgLimitDefaultPatch { + id?: string; + /** Name identifier of the limit this default applies to */ + name?: string; + /** Default maximum usage allowed for this limit */ + max?: string; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; } export interface UpdateDatabaseInput { clientMutationId?: string; @@ -13443,104 +14429,57 @@ export interface CryptoAddressPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateAppPermissionInput { +export interface UpdateAgentMessageInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppPermission` being updated. */ - appPermissionPatch: AppPermissionPatch; -} -/** Represents an update to a `AppPermission`. Fields that are set will be updated. */ -export interface AppPermissionPatch { + /** An object where the defined keys will be set on the `AgentMessage` being updated. */ + agentMessagePatch: AgentMessagePatch; +} +/** Represents an update to a `AgentMessage`. Fields that are set will be updated. */ +export interface AgentMessagePatch { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string; + /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ + entityId?: string; + /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ + authorRole?: string; id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record */ + ownerId?: string; + /** JSON metadata for extensible key-value storage */ + parts?: unknown; } -export interface UpdateOrgPermissionInput { +export interface UpdateObjectInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgPermission` being updated. */ - orgPermissionPatch: OrgPermissionPatch; + databaseId: string; + /** An object where the defined keys will be set on the `Object` being updated. */ + objectPatch: ObjectPatch; } -/** Represents an update to a `OrgPermission`. Fields that are set will be updated. */ -export interface OrgPermissionPatch { +/** Represents an update to a `Object`. Fields that are set will be updated. */ +export interface ObjectPatch { id?: string; - /** Human-readable permission name (e.g. read, write, manage) */ - name?: string; - /** Position of this permission in the bitmask (1-indexed), must be unique per permission set */ - bitnum?: number; - /** Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations */ - bitstr?: string; - /** Human-readable description of what this permission allows */ - description?: string; + databaseId?: string; + kids?: string[]; + ktree?: string[]; + data?: unknown; + frzn?: boolean; + createdAt?: string; } -export interface UpdateAppLimitInput { +export interface UpdateSiteMetadatumInput { clientMutationId?: string; + /** Unique identifier for this metadata record */ id: string; - /** An object where the defined keys will be set on the `AppLimit` being updated. */ - appLimitPatch: AppLimitPatch; + /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ + siteMetadatumPatch: SiteMetadatumPatch; } -/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ -export interface AppLimitPatch { - id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; -} -export interface UpdateAppAchievementInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppAchievement` being updated. */ - appAchievementPatch: AppAchievementPatch; -} -/** Represents an update to a `AppAchievement`. Fields that are set will be updated. */ -export interface AppAchievementPatch { - id?: string; - actorId?: string; - /** Name identifier of the level requirement being tracked */ - name?: string; - /** Cumulative count of completed steps toward this requirement */ - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppStep` being updated. */ - appStepPatch: AppStepPatch; -} -/** Represents an update to a `AppStep`. Fields that are set will be updated. */ -export interface AppStepPatch { - id?: string; - actorId?: string; - /** Name identifier of the level requirement this step fulfills */ - name?: string; - /** Number of units completed in this step action */ - count?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateSiteMetadatumInput { - clientMutationId?: string; - /** Unique identifier for this metadata record */ - id: string; - /** An object where the defined keys will be set on the `SiteMetadatum` being updated. */ - siteMetadatumPatch: SiteMetadatumPatch; -} -/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ -export interface SiteMetadatumPatch { - /** Unique identifier for this metadata record */ +/** Represents an update to a `SiteMetadatum`. Fields that are set will be updated. */ +export interface SiteMetadatumPatch { + /** Unique identifier for this metadata record */ id?: string; /** Reference to the metaschema database */ databaseId?: string; @@ -13555,59 +14494,27 @@ export interface SiteMetadatumPatch { /** Upload for Open Graph image for social media previews */ ogImageUpload?: File; } -export interface UpdateAppClaimedInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ - appClaimedInvitePatch: AppClaimedInvitePatch; -} -/** Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. */ -export interface AppClaimedInvitePatch { - id?: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: unknown; - /** User ID of the original invitation sender */ - senderId?: string; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ -export interface AppMembershipDefaultPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean; -} -export interface UpdateOrgMembershipDefaultInput { +export interface UpdateAppLevelRequirementInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; + /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ + appLevelRequirementPatch: AppLevelRequirementPatch; } -/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ -export interface OrgMembershipDefaultPatch { +/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ +export interface AppLevelRequirementPatch { id?: string; + /** Name identifier of the requirement (matches step names) */ + name?: string; + /** Name of the level this requirement belongs to */ + level?: string; + /** Human-readable description of what this requirement entails */ + description?: string; + /** Number of steps needed to satisfy this requirement */ + requiredCount?: number; + /** Display ordering priority; lower values appear first */ + priority?: number; createdAt?: string; updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean; - /** References the entity these membership defaults apply to */ - entityId?: string; } export interface UpdateFullTextSearchInput { clientMutationId?: string; @@ -13740,46 +14647,83 @@ export interface PhoneNumberPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateOrgLimitInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgLimit` being updated. */ - orgLimitPatch: OrgLimitPatch; + /** An object where the defined keys will be set on the `AppClaimedInvite` being updated. */ + appClaimedInvitePatch: AppClaimedInvitePatch; } -/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ -export interface OrgLimitPatch { +/** Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. */ +export interface AppClaimedInvitePatch { id?: string; - /** Name identifier of the limit being tracked */ - name?: string; - /** User whose usage is being tracked against this limit */ - actorId?: string; - /** Current usage count for this actor and limit */ - num?: number; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: unknown; + /** User ID of the original invitation sender */ + senderId?: string; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AppMembershipDefault` being updated. */ + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +/** Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. */ +export interface AppMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipDefault` being updated. */ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +/** Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. */ +export interface OrgMembershipDefaultPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean; + /** References the entity these membership defaults apply to */ entityId?: string; } -export interface UpdateMembershipTypeInput { +export interface UpdateAuditLogInput { clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** An object where the defined keys will be set on the `MembershipType` being updated. */ - membershipTypePatch: MembershipTypePatch; + id: string; + /** An object where the defined keys will be set on the `AuditLog` being updated. */ + auditLogPatch: AuditLogPatch; } -/** Represents an update to a `MembershipType`. Fields that are set will be updated. */ -export interface MembershipTypePatch { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id?: number; - /** Human-readable name of the membership type */ - name?: string; - /** Description of what this membership type represents */ - description?: string; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean; +/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ +export interface AuditLogPatch { + id?: string; + /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ + event?: string; + /** User who performed the authentication action; NULL if user was deleted */ + actorId?: string; + /** Request origin (domain) where the auth event occurred */ + origin?: ConstructiveInternalTypeOrigin; + /** Browser or client user-agent string from the request */ + userAgent?: string; + /** IP address of the client that initiated the auth event */ + ipAddress?: string; + /** Whether the authentication attempt succeeded */ + success?: boolean; + /** Timestamp when the audit event was recorded */ + createdAt?: string; } export interface UpdateDomainInput { clientMutationId?: string; @@ -13803,6 +14747,83 @@ export interface DomainPatch { /** Root domain of the hostname */ domain?: ConstructiveInternalTypeHostname; } +export interface UpdateAgentTaskInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentTask` being updated. */ + agentTaskPatch: AgentTaskPatch; +} +/** Represents an update to a `AgentTask`. Fields that are set will be updated. */ +export interface AgentTaskPatch { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string; + /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ + entityId?: string; + /** Natural-language description of the work to do. Required. */ + description?: string; + /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ + source?: string; + /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ + error?: string; + id?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record */ + ownerId?: string; + /** Current status of this record */ + status?: string; +} +export interface UpdateAgentThreadInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `AgentThread` being updated. */ + agentThreadPatch: AgentThreadPatch; +} +/** Represents an update to a `AgentThread`. Fields that are set will be updated. */ +export interface AgentThreadPatch { + /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ + title?: string; + /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ + mode?: string; + /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ + model?: string; + /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ + systemPrompt?: string; + id?: string; + /** Timestamp when this record was created */ + createdAt?: string; + /** Timestamp when this record was last updated */ + updatedAt?: string; + /** User who owns this record within the entity */ + ownerId?: string; + /** Entity this record belongs to */ + entityId?: string; + /** Current status of this record */ + status?: string; +} +export interface UpdateEmailInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Email` being updated. */ + emailPatch: EmailPatch; +} +/** Represents an update to a `Email`. Fields that are set will be updated. */ +export interface EmailPatch { + id?: string; + ownerId?: string; + /** The email address */ + email?: ConstructiveInternalTypeEmail; + /** Whether the email address has been verified via confirmation link */ + isVerified?: boolean; + /** Whether this is the user's primary email address */ + isPrimary?: boolean; + /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ + name?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateAppGrantInput { clientMutationId?: string; id: string; @@ -13863,26 +14884,53 @@ export interface OrgChartEdgePatch { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number; } -export interface UpdateOrgGrantInput { +export interface UpdateAppLimitInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgGrant` being updated. */ - orgGrantPatch: OrgGrantPatch; + /** An object where the defined keys will be set on the `AppLimit` being updated. */ + appLimitPatch: AppLimitPatch; } -/** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ -export interface OrgGrantPatch { +/** Represents an update to a `AppLimit`. Fields that are set will be updated. */ +export interface AppLimitPatch { id?: string; - /** Bitmask of permissions being granted or revoked */ - permissions?: string; - /** True to grant the permissions, false to revoke them */ - isGrant?: boolean; - /** The member receiving or losing the permission grant */ + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ actorId?: string; - /** The entity (org or group) this permission grant applies to */ + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimitAggregate` being updated. */ + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +/** Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. */ +export interface OrgLimitAggregatePatch { + id?: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string; + /** Entity (org) whose aggregate usage is being tracked */ entityId?: string; - grantorId?: string; - createdAt?: string; - updatedAt?: string; + /** Current aggregate usage count for this entity and limit */ + num?: string; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; } export interface UpdateBlueprintConstructionInput { clientMutationId?: string; @@ -13916,6 +14964,26 @@ export interface BlueprintConstructionPatch { /** Timestamp when this construction attempt was last modified. */ updatedAt?: string; } +export interface UpdatePlansModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PlansModule` being updated. */ + plansModulePatch: PlansModulePatch; +} +/** Represents an update to a `PlansModule`. Fields that are set will be updated. */ +export interface PlansModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + prefix?: string; +} export interface UpdateRlsModuleInput { clientMutationId?: string; id: string; @@ -13956,51 +15024,26 @@ export interface SessionsModulePatch { sessionCredentialsTable?: string; authSettingsTable?: string; } -export interface UpdateAppLevelRequirementInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `AppLevelRequirement` being updated. */ - appLevelRequirementPatch: AppLevelRequirementPatch; -} -/** Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. */ -export interface AppLevelRequirementPatch { - id?: string; - /** Name identifier of the requirement (matches step names) */ - name?: string; - /** Name of the level this requirement belongs to */ - level?: string; - /** Human-readable description of what this requirement entails */ - description?: string; - /** Number of steps needed to satisfy this requirement */ - requiredCount?: number; - /** Display ordering priority; lower values appear first */ - priority?: number; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateAuditLogInput { +export interface UpdateOrgGrantInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AuditLog` being updated. */ - auditLogPatch: AuditLogPatch; + /** An object where the defined keys will be set on the `OrgGrant` being updated. */ + orgGrantPatch: OrgGrantPatch; } -/** Represents an update to a `AuditLog`. Fields that are set will be updated. */ -export interface AuditLogPatch { +/** Represents an update to a `OrgGrant`. Fields that are set will be updated. */ +export interface OrgGrantPatch { id?: string; - /** Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) */ - event?: string; - /** User who performed the authentication action; NULL if user was deleted */ + /** Bitmask of permissions being granted or revoked */ + permissions?: string; + /** True to grant the permissions, false to revoke them */ + isGrant?: boolean; + /** The member receiving or losing the permission grant */ actorId?: string; - /** Request origin (domain) where the auth event occurred */ - origin?: ConstructiveInternalTypeOrigin; - /** Browser or client user-agent string from the request */ - userAgent?: string; - /** IP address of the client that initiated the auth event */ - ipAddress?: string; - /** Whether the authentication attempt succeeded */ - success?: boolean; - /** Timestamp when the audit event was recorded */ + /** The entity (org or group) this permission grant applies to */ + entityId?: string; + grantorId?: string; createdAt?: string; + updatedAt?: string; } export interface UpdateAppLevelInput { clientMutationId?: string; @@ -14024,6 +15067,31 @@ export interface AppLevelPatch { /** Upload for Badge or icon image associated with this level */ imageUpload?: File; } +export interface UpdateOrgLimitInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgLimit` being updated. */ + orgLimitPatch: OrgLimitPatch; +} +/** Represents an update to a `OrgLimit`. Fields that are set will be updated. */ +export interface OrgLimitPatch { + id?: string; + /** Name identifier of the limit being tracked */ + name?: string; + /** User whose usage is being tracked against this limit */ + actorId?: string; + /** Current usage count for this actor and limit */ + num?: string; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: IntervalInput; + entityId?: string; +} export interface UpdateBlueprintInput { clientMutationId?: string; /** Unique identifier for this blueprint. */ @@ -14079,27 +15147,6 @@ export interface DenormalizedTableFieldPatch { funcName?: string; funcOrder?: number; } -export interface UpdateEmailInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Email` being updated. */ - emailPatch: EmailPatch; -} -/** Represents an update to a `Email`. Fields that are set will be updated. */ -export interface EmailPatch { - id?: string; - ownerId?: string; - /** The email address */ - email?: ConstructiveInternalTypeEmail; - /** Whether the email address has been verified via confirmation link */ - isVerified?: boolean; - /** Whether this is the user's primary email address */ - isPrimary?: boolean; - /** Optional user-provided label for this email (e.g. "Work", "Personal"). */ - name?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateOrgMemberProfileInput { clientMutationId?: string; id: string; @@ -14130,66 +15177,6 @@ export interface OrgMemberProfilePatch { /** Upload for Profile picture visible to other entity members */ profilePictureUpload?: File; } -export interface UpdateSecureTableProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; - /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ - secureTableProvisionPatch: SecureTableProvisionPatch; -} -/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ -export interface SecureTableProvisionPatch { - /** Unique identifier for this provision row. */ - id?: string; - /** The database this provision belongs to. Required. */ - databaseId?: string; - /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ - schemaId?: string; - /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ - tableId?: string; - /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ - tableName?: string; - /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ - nodes?: unknown; - /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ - useRls?: boolean; - /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ - fields?: unknown[]; - /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ - grants?: unknown; - /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ - policies?: unknown; - /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ - outFields?: string[]; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ -export interface OrgMembershipSettingPatch { - id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** References the entity these settings apply to */ - entityId?: string; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean; -} export interface UpdateDatabaseTransferInput { clientMutationId?: string; id: string; @@ -14213,6 +15200,29 @@ export interface DatabaseTransferPatch { updatedAt?: string; completedAt?: string; } +export interface UpdateBillingModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `BillingModule` being updated. */ + billingModulePatch: BillingModulePatch; +} +/** Represents an update to a `BillingModule`. Fields that are set will be updated. */ +export interface BillingModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + recordUsageFunction?: string; + prefix?: string; +} export interface UpdateCryptoAuthModuleInput { clientMutationId?: string; id: string; @@ -14291,6 +15301,38 @@ export interface InvitesModulePatch { membershipType?: number; entityTableId?: string; } +export interface UpdateSecureTableProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; + /** An object where the defined keys will be set on the `SecureTableProvision` being updated. */ + secureTableProvisionPatch: SecureTableProvisionPatch; +} +/** Represents an update to a `SecureTableProvision`. Fields that are set will be updated. */ +export interface SecureTableProvisionPatch { + /** Unique identifier for this provision row. */ + id?: string; + /** The database this provision belongs to. Required. */ + databaseId?: string; + /** Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. */ + schemaId?: string; + /** Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. */ + tableId?: string; + /** Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. */ + tableName?: string; + /** Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). */ + nodes?: unknown; + /** If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. */ + useRls?: boolean; + /** PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). */ + fields?: unknown[]; + /** Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. */ + grants?: unknown; + /** Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. */ + policies?: unknown; + /** Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. */ + outFields?: string[]; +} export interface UpdateEnumInput { clientMutationId?: string; id: string; @@ -14380,46 +15422,110 @@ export interface WebauthnAuthModulePatch { residentKey?: string; challengeExpiry?: IntervalInput; } -export interface UpdateAppInput { +export interface UpdateAppInviteInput { clientMutationId?: string; - /** Unique identifier for this app */ id: string; - /** An object where the defined keys will be set on the `App` being updated. */ - appPatch: AppPatch; + /** An object where the defined keys will be set on the `AppInvite` being updated. */ + appInvitePatch: AppInvitePatch; } -/** Represents an update to a `App`. Fields that are set will be updated. */ -export interface AppPatch { - /** Unique identifier for this app */ +/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ +export interface AppInvitePatch { id?: string; - /** Reference to the metaschema database this app belongs to */ - databaseId?: string; - /** Site this app is associated with (one app per site) */ - siteId?: string; - /** Display name of the app */ - name?: string; - /** App icon or promotional image */ - appImage?: ConstructiveInternalTypeImage; - /** URL to the Apple App Store listing */ - appStoreLink?: ConstructiveInternalTypeUrl; - /** Apple App Store application identifier */ - appStoreId?: string; - /** Apple App ID prefix (Team ID) for universal links and associated domains */ - appIdPrefix?: string; - /** URL to the Google Play Store listing */ - playStoreLink?: ConstructiveInternalTypeUrl; - /** Upload for App icon or promotional image */ - appImageUpload?: File; -} -export interface UpdateSiteInput { - clientMutationId?: string; - /** Unique identifier for this site */ - id: string; - /** An object where the defined keys will be set on the `Site` being updated. */ - sitePatch: SitePatch; -} -/** Represents an update to a `Site`. Fields that are set will be updated. */ -export interface SitePatch { - /** Unique identifier for this site */ + /** Email address of the invited recipient */ + email?: ConstructiveInternalTypeEmail; + /** User ID of the member who sent this invitation */ + senderId?: string; + /** Unique random hex token used to redeem this invitation */ + inviteToken?: string; + /** Whether this invitation is still valid and can be redeemed */ + inviteValid?: boolean; + /** Maximum number of times this invite can be claimed; -1 means unlimited */ + inviteLimit?: number; + /** Running count of how many times this invite has been claimed */ + inviteCount?: number; + /** Whether this invite can be claimed by multiple recipients */ + multiple?: boolean; + /** Optional JSON payload of additional invite metadata */ + data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; + /** Timestamp after which this invitation can no longer be redeemed */ + expiresAt?: string; + createdAt?: string; + updatedAt?: string; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `OrgMembershipSetting` being updated. */ + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +/** Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. */ +export interface OrgMembershipSettingPatch { + id?: string; + createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** References the entity these settings apply to */ + entityId?: string; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string; +} +export interface UpdateAppInput { + clientMutationId?: string; + /** Unique identifier for this app */ + id: string; + /** An object where the defined keys will be set on the `App` being updated. */ + appPatch: AppPatch; +} +/** Represents an update to a `App`. Fields that are set will be updated. */ +export interface AppPatch { + /** Unique identifier for this app */ + id?: string; + /** Reference to the metaschema database this app belongs to */ + databaseId?: string; + /** Site this app is associated with (one app per site) */ + siteId?: string; + /** Display name of the app */ + name?: string; + /** App icon or promotional image */ + appImage?: ConstructiveInternalTypeImage; + /** URL to the Apple App Store listing */ + appStoreLink?: ConstructiveInternalTypeUrl; + /** Apple App Store application identifier */ + appStoreId?: string; + /** Apple App ID prefix (Team ID) for universal links and associated domains */ + appIdPrefix?: string; + /** URL to the Google Play Store listing */ + playStoreLink?: ConstructiveInternalTypeUrl; + /** Upload for App icon or promotional image */ + appImageUpload?: File; +} +export interface UpdateSiteInput { + clientMutationId?: string; + /** Unique identifier for this site */ + id: string; + /** An object where the defined keys will be set on the `Site` being updated. */ + sitePatch: SitePatch; +} +/** Represents an update to a `Site`. Fields that are set will be updated. */ +export interface SitePatch { + /** Unique identifier for this site */ id?: string; /** Reference to the metaschema database this site belongs to */ databaseId?: string; @@ -14446,6 +15552,91 @@ export interface SitePatch { /** Upload for Primary logo image for the site */ logoUpload?: File; } +export interface UpdateNotificationsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ + notificationsModulePatch: NotificationsModulePatch; +} +/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ +export interface NotificationsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + notificationsTableId?: string; + readStateTableId?: string; + preferencesTableId?: string; + channelsTableId?: string; + deliveryLogTableId?: string; + ownerTableId?: string; + userSettingsTableId?: string; + organizationSettingsTableId?: string; + hasChannels?: boolean; + hasPreferences?: boolean; + hasSettingsExtension?: boolean; + hasDigestMetadata?: boolean; + hasSubscriptions?: boolean; +} +export interface UpdatePermissionsModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ + permissionsModulePatch: PermissionsModulePatch; +} +/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ +export interface PermissionsModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + bitlen?: number; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; + prefix?: string; + getPaddedMask?: string; + getMask?: string; + getByMask?: string; + getMaskByName?: string; +} +export interface UpdateWebauthnCredentialInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `WebauthnCredential` being updated. */ + webauthnCredentialPatch: WebauthnCredentialPatch; +} +/** Represents an update to a `WebauthnCredential`. Fields that are set will be updated. */ +export interface WebauthnCredentialPatch { + id?: string; + ownerId?: string; + /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ + credentialId?: string; + /** COSE-encoded public key bytes from the authenticator attestation. */ + publicKey?: Base64EncodedBinary; + /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ + signCount?: string; + /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ + webauthnUserId?: string; + /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ + transports?: string[]; + /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ + credentialDeviceType?: string; + /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ + backupEligible?: boolean; + /** Current backup state; updated on each successful sign-in assertion. */ + backupState?: boolean; + /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ + name?: string; + /** Timestamp of the most recent successful sign-in assertion using this credential. */ + lastUsedAt?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdatePrimaryKeyConstraintInput { clientMutationId?: string; id: string; @@ -14586,71 +15777,48 @@ export interface PolicyPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateNotificationsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `NotificationsModule` being updated. */ - notificationsModulePatch: NotificationsModulePatch; -} -/** Represents an update to a `NotificationsModule`. Fields that are set will be updated. */ -export interface NotificationsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - notificationsTableId?: string; - readStateTableId?: string; - preferencesTableId?: string; - channelsTableId?: string; - deliveryLogTableId?: string; - ownerTableId?: string; - userSettingsTableId?: string; - organizationSettingsTableId?: string; - hasChannels?: boolean; - hasPreferences?: boolean; - hasSettingsExtension?: boolean; - hasDigestMetadata?: boolean; - hasSubscriptions?: boolean; -} -export interface UpdatePermissionsModuleInput { +export interface UpdateEmbeddingChunkInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `PermissionsModule` being updated. */ - permissionsModulePatch: PermissionsModulePatch; + /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ + embeddingChunkPatch: EmbeddingChunkPatch; } -/** Represents an update to a `PermissionsModule`. Fields that are set will be updated. */ -export interface PermissionsModulePatch { +/** Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. */ +export interface EmbeddingChunkPatch { id?: string; databaseId?: string; - schemaId?: string; - privateSchemaId?: string; tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - bitlen?: number; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; - prefix?: string; - getPaddedMask?: string; - getMask?: string; - getByMask?: string; - getMaskByName?: string; + embeddingFieldId?: string; + chunksTableId?: string; + chunksTableName?: string; + contentFieldName?: string; + dimensions?: number; + metric?: string; + chunkSize?: number; + chunkOverlap?: number; + chunkStrategy?: string; + metadataFields?: unknown; + enqueueChunkingJob?: boolean; + chunkingTaskName?: string; + parentFkFieldId?: string; + createdAt?: string; + updatedAt?: string; } -export interface UpdateAppInviteInput { +export interface UpdateOrgInviteInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `AppInvite` being updated. */ - appInvitePatch: AppInvitePatch; + /** An object where the defined keys will be set on the `OrgInvite` being updated. */ + orgInvitePatch: OrgInvitePatch; } -/** Represents an update to a `AppInvite`. Fields that are set will be updated. */ -export interface AppInvitePatch { +/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ +export interface OrgInvitePatch { id?: string; /** Email address of the invited recipient */ email?: ConstructiveInternalTypeEmail; /** User ID of the member who sent this invitation */ senderId?: string; + /** User ID of the intended recipient, if targeting a specific user */ + receiverId?: string; /** Unique random hex token used to redeem this invitation */ inviteToken?: string; /** Whether this invitation is still valid and can be redeemed */ @@ -14663,116 +15831,15 @@ export interface AppInvitePatch { multiple?: boolean; /** Optional JSON payload of additional invite metadata */ data?: unknown; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string; createdAt?: string; updatedAt?: string; + entityId?: string; } -export interface UpdateEmbeddingChunkInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `EmbeddingChunk` being updated. */ - embeddingChunkPatch: EmbeddingChunkPatch; -} -/** Represents an update to a `EmbeddingChunk`. Fields that are set will be updated. */ -export interface EmbeddingChunkPatch { - id?: string; - databaseId?: string; - tableId?: string; - embeddingFieldId?: string; - chunksTableId?: string; - chunksTableName?: string; - contentFieldName?: string; - dimensions?: number; - metric?: string; - chunkSize?: number; - chunkOverlap?: number; - chunkStrategy?: string; - metadataFields?: unknown; - enqueueChunkingJob?: boolean; - chunkingTaskName?: string; - parentFkFieldId?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateSchemaInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Schema` being updated. */ - schemaPatch: SchemaPatch; -} -/** Represents an update to a `Schema`. Fields that are set will be updated. */ -export interface SchemaPatch { - id?: string; - databaseId?: string; - name?: string; - schemaName?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - tags?: string[]; - isPublic?: boolean; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateLimitsModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `LimitsModule` being updated. */ - limitsModulePatch: LimitsModulePatch; -} -/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ -export interface LimitsModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - defaultTableId?: string; - defaultTableName?: string; - limitIncrementFunction?: string; - limitDecrementFunction?: string; - limitIncrementTrigger?: string; - limitDecrementTrigger?: string; - limitUpdateTrigger?: string; - limitCheckFunction?: string; - prefix?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; -} -export interface UpdateProfilesModuleInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ - profilesModulePatch: ProfilesModulePatch; -} -/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ -export interface ProfilesModulePatch { - id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - tableId?: string; - tableName?: string; - profilePermissionsTableId?: string; - profilePermissionsTableName?: string; - profileGrantsTableId?: string; - profileGrantsTableName?: string; - profileDefinitionGrantsTableId?: string; - profileDefinitionGrantsTableName?: string; - membershipType?: number; - entityTableId?: string; - actorTableId?: string; - permissionsTableId?: string; - membershipsTableId?: string; - prefix?: string; -} -export interface UpdateAppMembershipInput { +export interface UpdateAppMembershipInput { clientMutationId?: string; id: string; /** An object where the defined keys will be set on the `AppMembership` being updated. */ @@ -14795,8 +15862,6 @@ export interface AppMembershipPatch { isVerified?: boolean; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; /** Whether the actor is the owner of this entity */ isOwner?: boolean; /** Whether the actor has admin privileges on this entity */ @@ -14809,6 +15874,29 @@ export interface AppMembershipPatch { actorId?: string; profileId?: string; } +export interface UpdateSchemaInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Schema` being updated. */ + schemaPatch: SchemaPatch; +} +/** Represents an update to a `Schema`. Fields that are set will be updated. */ +export interface SchemaPatch { + id?: string; + databaseId?: string; + name?: string; + schemaName?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + tags?: string[]; + isPublic?: boolean; + createdAt?: string; + updatedAt?: string; +} export interface UpdateIndexInput { clientMutationId?: string; id: string; @@ -14837,110 +15925,33 @@ export interface IndexPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateWebauthnCredentialInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `WebauthnCredential` being updated. */ - webauthnCredentialPatch: WebauthnCredentialPatch; -} -/** Represents an update to a `WebauthnCredential`. Fields that are set will be updated. */ -export interface WebauthnCredentialPatch { - id?: string; - ownerId?: string; - /** Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. */ - credentialId?: string; - /** COSE-encoded public key bytes from the authenticator attestation. */ - publicKey?: Base64EncodedBinary; - /** Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. */ - signCount?: string; - /** Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. */ - webauthnUserId?: string; - /** Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. */ - transports?: string[]; - /** Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. */ - credentialDeviceType?: string; - /** Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. */ - backupEligible?: boolean; - /** Current backup state; updated on each successful sign-in assertion. */ - backupState?: boolean; - /** User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. */ - name?: string; - /** Timestamp of the most recent successful sign-in assertion using this credential. */ - lastUsedAt?: string; - createdAt?: string; - updatedAt?: string; -} -export interface UpdateOrgInviteInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `OrgInvite` being updated. */ - orgInvitePatch: OrgInvitePatch; -} -/** Represents an update to a `OrgInvite`. Fields that are set will be updated. */ -export interface OrgInvitePatch { - id?: string; - /** Email address of the invited recipient */ - email?: ConstructiveInternalTypeEmail; - /** User ID of the member who sent this invitation */ - senderId?: string; - /** User ID of the intended recipient, if targeting a specific user */ - receiverId?: string; - /** Unique random hex token used to redeem this invitation */ - inviteToken?: string; - /** Whether this invitation is still valid and can be redeemed */ - inviteValid?: boolean; - /** Maximum number of times this invite can be claimed; -1 means unlimited */ - inviteLimit?: number; - /** Running count of how many times this invite has been claimed */ - inviteCount?: number; - /** Whether this invite can be claimed by multiple recipients */ - multiple?: boolean; - /** Optional JSON payload of additional invite metadata */ - data?: unknown; - /** Timestamp after which this invitation can no longer be redeemed */ - expiresAt?: string; - createdAt?: string; - updatedAt?: string; - entityId?: string; -} -export interface UpdateOrgMembershipInput { +export interface UpdateLimitsModuleInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `OrgMembership` being updated. */ - orgMembershipPatch: OrgMembershipPatch; + /** An object where the defined keys will be set on the `LimitsModule` being updated. */ + limitsModulePatch: LimitsModulePatch; } -/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ -export interface OrgMembershipPatch { +/** Represents an update to a `LimitsModule`. Fields that are set will be updated. */ +export interface LimitsModulePatch { id?: string; - createdAt?: string; - updatedAt?: string; - createdBy?: string; - updatedBy?: string; - /** Whether this membership has been approved by an admin */ - isApproved?: boolean; - /** Whether this member has been banned from the entity */ - isBanned?: boolean; - /** Whether this membership is temporarily disabled */ - isDisabled?: boolean; - /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ - isActive?: boolean; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean; - /** Whether the actor is the owner of this entity */ - isOwner?: boolean; - /** Whether the actor has admin privileges on this entity */ - isAdmin?: boolean; - /** Aggregated permission bitmask combining profile-based and directly granted permissions */ - permissions?: string; - /** Bitmask of permissions directly granted to this member (not from profiles) */ - granted?: string; - /** References the user who holds this membership */ - actorId?: string; - /** References the entity (org or group) this membership belongs to */ - entityId?: string; - /** Whether this member has read-only access (blocks mutations when true) */ - isReadOnly?: boolean; - profileId?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + defaultTableId?: string; + defaultTableName?: string; + limitIncrementFunction?: string; + limitDecrementFunction?: string; + limitIncrementTrigger?: string; + limitDecrementTrigger?: string; + limitUpdateTrigger?: string; + limitCheckFunction?: string; + aggregateTableId?: string; + prefix?: string; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; } export interface UpdateBlueprintTemplateInput { clientMutationId?: string; @@ -14992,34 +16003,102 @@ export interface BlueprintTemplatePatch { /** Timestamp when this template was last modified. */ updatedAt?: string; } -export interface UpdateHierarchyModuleInput { +export interface UpdateHierarchyModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `HierarchyModule` being updated. */ + hierarchyModulePatch: HierarchyModulePatch; +} +/** Represents an update to a `HierarchyModule`. Fields that are set will be updated. */ +export interface HierarchyModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + chartEdgesTableId?: string; + chartEdgesTableName?: string; + hierarchySprtTableId?: string; + hierarchySprtTableName?: string; + chartEdgeGrantsTableId?: string; + chartEdgeGrantsTableName?: string; + entityTableId?: string; + usersTableId?: string; + prefix?: string; + privateSchemaName?: string; + sprtTableName?: string; + rebuildHierarchyFunction?: string; + getSubordinatesFunction?: string; + getManagersFunction?: string; + isManagerOfFunction?: string; + createdAt?: string; +} +export interface UpdateProfilesModuleInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `ProfilesModule` being updated. */ + profilesModulePatch: ProfilesModulePatch; +} +/** Represents an update to a `ProfilesModule`. Fields that are set will be updated. */ +export interface ProfilesModulePatch { + id?: string; + databaseId?: string; + schemaId?: string; + privateSchemaId?: string; + tableId?: string; + tableName?: string; + profilePermissionsTableId?: string; + profilePermissionsTableName?: string; + profileGrantsTableId?: string; + profileGrantsTableName?: string; + profileDefinitionGrantsTableId?: string; + profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; + membershipType?: number; + entityTableId?: string; + actorTableId?: string; + permissionsTableId?: string; + membershipsTableId?: string; + prefix?: string; +} +export interface UpdateOrgMembershipInput { clientMutationId?: string; id: string; - /** An object where the defined keys will be set on the `HierarchyModule` being updated. */ - hierarchyModulePatch: HierarchyModulePatch; + /** An object where the defined keys will be set on the `OrgMembership` being updated. */ + orgMembershipPatch: OrgMembershipPatch; } -/** Represents an update to a `HierarchyModule`. Fields that are set will be updated. */ -export interface HierarchyModulePatch { +/** Represents an update to a `OrgMembership`. Fields that are set will be updated. */ +export interface OrgMembershipPatch { id?: string; - databaseId?: string; - schemaId?: string; - privateSchemaId?: string; - chartEdgesTableId?: string; - chartEdgesTableName?: string; - hierarchySprtTableId?: string; - hierarchySprtTableName?: string; - chartEdgeGrantsTableId?: string; - chartEdgeGrantsTableName?: string; - entityTableId?: string; - usersTableId?: string; - prefix?: string; - privateSchemaName?: string; - sprtTableName?: string; - rebuildHierarchyFunction?: string; - getSubordinatesFunction?: string; - getManagersFunction?: string; - isManagerOfFunction?: string; createdAt?: string; + updatedAt?: string; + createdBy?: string; + updatedBy?: string; + /** Whether this membership has been approved by an admin */ + isApproved?: boolean; + /** Whether this member has been banned from the entity */ + isBanned?: boolean; + /** Whether this membership is temporarily disabled */ + isDisabled?: boolean; + /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ + isActive?: boolean; + /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ + isExternal?: boolean; + /** Whether the actor is the owner of this entity */ + isOwner?: boolean; + /** Whether the actor has admin privileges on this entity */ + isAdmin?: boolean; + /** Aggregated permission bitmask combining profile-based and directly granted permissions */ + permissions?: string; + /** Bitmask of permissions directly granted to this member (not from profiles) */ + granted?: string; + /** References the user who holds this membership */ + actorId?: string; + /** References the entity (org or group) this membership belongs to */ + entityId?: string; + /** Whether this member has read-only access (blocks mutations when true) */ + isReadOnly?: boolean; + profileId?: string; } export interface UpdateForeignKeyConstraintInput { clientMutationId?: string; @@ -15048,34 +16127,6 @@ export interface ForeignKeyConstraintPatch { createdAt?: string; updatedAt?: string; } -export interface UpdateTableInput { - clientMutationId?: string; - id: string; - /** An object where the defined keys will be set on the `Table` being updated. */ - tablePatch: TablePatch; -} -/** Represents an update to a `Table`. Fields that are set will be updated. */ -export interface TablePatch { - id?: string; - databaseId?: string; - schemaId?: string; - name?: string; - label?: string; - description?: string; - smartTags?: unknown; - category?: ObjectCategory; - module?: string; - scope?: number; - useRls?: boolean; - timestamps?: boolean; - peoplestamps?: boolean; - pluralName?: string; - singularName?: string; - tags?: string[]; - inheritsId?: string; - createdAt?: string; - updatedAt?: string; -} export interface UpdateStorageModuleInput { clientMutationId?: string; id: string; @@ -15090,10 +16141,8 @@ export interface StorageModulePatch { privateSchemaId?: string; bucketsTableId?: string; filesTableId?: string; - uploadRequestsTableId?: string; bucketsTableName?: string; filesTableName?: string; - uploadRequestsTableName?: string; membershipType?: number; policies?: unknown; skipDefaultPolicyTables?: string[]; @@ -15102,12 +16151,41 @@ export interface StorageModulePatch { publicUrlPrefix?: string; provider?: string; allowedOrigins?: string[]; + restrictReads?: boolean; uploadUrlExpirySeconds?: number; downloadUrlExpirySeconds?: number; defaultMaxFileSize?: string; maxFilenameLength?: number; cacheTtlSeconds?: number; } +export interface UpdateTableInput { + clientMutationId?: string; + id: string; + /** An object where the defined keys will be set on the `Table` being updated. */ + tablePatch: TablePatch; +} +/** Represents an update to a `Table`. Fields that are set will be updated. */ +export interface TablePatch { + id?: string; + databaseId?: string; + schemaId?: string; + name?: string; + label?: string; + description?: string; + smartTags?: unknown; + category?: ObjectCategory; + module?: string; + scope?: number; + useRls?: boolean; + timestamps?: boolean; + peoplestamps?: boolean; + pluralName?: string; + singularName?: string; + tags?: string[]; + inheritsId?: string; + createdAt?: string; + updatedAt?: string; +} export interface UpdateEntityTypeProvisionInput { clientMutationId?: string; /** Unique identifier for this provision row. */ @@ -15179,7 +16257,7 @@ export interface EntityTypeProvisionPatch { hasLevels?: boolean; /** * Whether to provision storage_module for this type. Defaults to false. - * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + * When true, creates {prefix}_buckets and {prefix}_files tables * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. * Storage tables get owner_id FK to the entity table, so files are owned by the entity. */ @@ -15212,7 +16290,7 @@ export interface EntityTypeProvisionPatch { * - allowed_origins (text[]) per-bucket CORS override * - provisions (jsonb object) optional: customize storage tables * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets", "upload_requests". + * Keyed by table role: "files", "buckets". * Each value uses the same shape as table_provision: * { nodes, fields, grants, use_rls, policies }. Fanned out * to secure_table_provision targeting the corresponding table. @@ -15584,6 +16662,10 @@ export interface DeleteDefaultIdsModuleInput { clientMutationId?: string; id: string; } +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; +} export interface DeleteViewTableInput { clientMutationId?: string; id: string; @@ -15593,17 +16675,13 @@ export interface DeleteApiSchemaInput { /** Unique identifier for this API-schema mapping */ id: string; } -export interface DeleteSiteThemeInput { - clientMutationId?: string; - /** Unique identifier for this theme record */ - id: string; -} export interface DeleteOrgMemberInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteSiteThemeInput { clientMutationId?: string; + /** Unique identifier for this theme record */ id: string; } export interface DeleteRefInput { @@ -15617,34 +16695,30 @@ export interface DeleteStoreInput { /** The primary unique identifier for the store. */ id: string; } -export interface DeleteApiModuleInput { +export interface DeleteEncryptedSecretsModuleInput { clientMutationId?: string; - /** Unique identifier for this API module record */ id: string; } -export interface DeleteSiteModuleInput { +export interface DeleteMembershipTypesModuleInput { clientMutationId?: string; - /** Unique identifier for this site module record */ id: string; } -export interface DeleteEncryptedSecretsModuleInput { +export interface DeleteSecretsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypesModuleInput { +export interface DeleteAppPermissionDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteSecretsModuleInput { +export interface DeleteApiModuleInput { clientMutationId?: string; + /** Unique identifier for this API module record */ id: string; } -export interface DeleteRoleTypeInput { - clientMutationId?: string; - id: number; -} -export interface DeleteOrgPermissionDefaultInput { +export interface DeleteSiteModuleInput { clientMutationId?: string; + /** Unique identifier for this site module record */ id: string; } export interface DeleteSchemaGrantInput { @@ -15675,14 +16749,31 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppStepInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAppPermissionInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface DeleteMembershipTypeInput { + clientMutationId?: string; + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; +} export interface DeleteDefaultPrivilegeInput { clientMutationId?: string; id: string; @@ -15728,57 +16819,45 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; - databaseId: string; -} -export interface DeleteDatabaseInput { +export interface DeleteNodeTypeRegistryInput { clientMutationId?: string; - id: string; + name: string; } -export interface DeleteCryptoAddressesModuleInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteCryptoAddressInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface DeleteAppPermissionInput { +export interface DeleteDatabaseInput { clientMutationId?: string; id: string; } -export interface DeleteOrgPermissionInput { +export interface DeleteCryptoAddressesModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLimitInput { +export interface DeleteCryptoAddressInput { clientMutationId?: string; id: string; } -export interface DeleteAppAchievementInput { +export interface DeleteAgentMessageInput { clientMutationId?: string; id: string; } -export interface DeleteAppStepInput { +export interface DeleteObjectInput { clientMutationId?: string; id: string; + databaseId: string; } export interface DeleteSiteMetadatumInput { clientMutationId?: string; /** Unique identifier for this metadata record */ id: string; } -export interface DeleteAppClaimedInviteInput { - clientMutationId?: string; - id: string; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface DeleteOrgMembershipDefaultInput { +export interface DeleteAppLevelRequirementInput { clientMutationId?: string; id: string; } @@ -15809,20 +16888,39 @@ export interface DeletePhoneNumberInput { clientMutationId?: string; id: string; } -export interface DeleteOrgLimitInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface DeleteMembershipTypeInput { +export interface DeleteAppMembershipDefaultInput { clientMutationId?: string; - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; + id: string; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAuditLogInput { + clientMutationId?: string; + id: string; } export interface DeleteDomainInput { clientMutationId?: string; /** Unique identifier for this domain record */ id: string; } +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface DeleteEmailInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppGrantInput { clientMutationId?: string; id: string; @@ -15835,7 +16933,11 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface DeleteOrgGrantInput { +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgLimitAggregateInput { clientMutationId?: string; id: string; } @@ -15844,6 +16946,10 @@ export interface DeleteBlueprintConstructionInput { /** Unique identifier for this construction attempt. */ id: string; } +export interface DeletePlansModuleInput { + clientMutationId?: string; + id: string; +} export interface DeleteRlsModuleInput { clientMutationId?: string; id: string; @@ -15852,15 +16958,15 @@ export interface DeleteSessionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteAppLevelRequirementInput { +export interface DeleteOrgGrantInput { clientMutationId?: string; id: string; } -export interface DeleteAuditLogInput { +export interface DeleteAppLevelInput { clientMutationId?: string; id: string; } -export interface DeleteAppLevelInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -15873,24 +16979,15 @@ export interface DeleteDenormalizedTableFieldInput { clientMutationId?: string; id: string; } -export interface DeleteEmailInput { - clientMutationId?: string; - id: string; -} export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface DeleteSecureTableProvisionInput { - clientMutationId?: string; - /** Unique identifier for this provision row. */ - id: string; -} -export interface DeleteOrgMembershipSettingInput { +export interface DeleteDatabaseTransferInput { clientMutationId?: string; id: string; } -export interface DeleteDatabaseTransferInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -15906,6 +17003,11 @@ export interface DeleteInvitesModuleInput { clientMutationId?: string; id: string; } +export interface DeleteSecureTableProvisionInput { + clientMutationId?: string; + /** Unique identifier for this provision row. */ + id: string; +} export interface DeleteEnumInput { clientMutationId?: string; id: string; @@ -15922,6 +17024,14 @@ export interface DeleteWebauthnAuthModuleInput { clientMutationId?: string; id: string; } +export interface DeleteAppInviteInput { + clientMutationId?: string; + id: string; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface DeleteAppInput { clientMutationId?: string; /** Unique identifier for this app */ @@ -15932,39 +17042,39 @@ export interface DeleteSiteInput { /** Unique identifier for this site */ id: string; } -export interface DeletePrimaryKeyConstraintInput { +export interface DeleteNotificationsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteTriggerInput { +export interface DeletePermissionsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteCheckConstraintInput { +export interface DeleteWebauthnCredentialInput { clientMutationId?: string; id: string; } -export interface DeleteUniqueConstraintInput { +export interface DeletePrimaryKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteSpatialRelationInput { +export interface DeleteTriggerInput { clientMutationId?: string; id: string; } -export interface DeletePolicyInput { +export interface DeleteCheckConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteNotificationsModuleInput { +export interface DeleteUniqueConstraintInput { clientMutationId?: string; id: string; } -export interface DeletePermissionsModuleInput { +export interface DeleteSpatialRelationInput { clientMutationId?: string; id: string; } -export interface DeleteAppInviteInput { +export interface DeletePolicyInput { clientMutationId?: string; id: string; } @@ -15972,19 +17082,15 @@ export interface DeleteEmbeddingChunkInput { clientMutationId?: string; id: string; } -export interface DeleteSchemaInput { - clientMutationId?: string; - id: string; -} -export interface DeleteLimitsModuleInput { +export interface DeleteOrgInviteInput { clientMutationId?: string; id: string; } -export interface DeleteProfilesModuleInput { +export interface DeleteAppMembershipInput { clientMutationId?: string; id: string; } -export interface DeleteAppMembershipInput { +export interface DeleteSchemaInput { clientMutationId?: string; id: string; } @@ -15992,24 +17098,24 @@ export interface DeleteIndexInput { clientMutationId?: string; id: string; } -export interface DeleteWebauthnCredentialInput { +export interface DeleteLimitsModuleInput { clientMutationId?: string; id: string; } -export interface DeleteOrgInviteInput { +export interface DeleteBlueprintTemplateInput { clientMutationId?: string; + /** Unique identifier for this template. */ id: string; } -export interface DeleteOrgMembershipInput { +export interface DeleteHierarchyModuleInput { clientMutationId?: string; id: string; } -export interface DeleteBlueprintTemplateInput { +export interface DeleteProfilesModuleInput { clientMutationId?: string; - /** Unique identifier for this template. */ id: string; } -export interface DeleteHierarchyModuleInput { +export interface DeleteOrgMembershipInput { clientMutationId?: string; id: string; } @@ -16017,11 +17123,11 @@ export interface DeleteForeignKeyConstraintInput { clientMutationId?: string; id: string; } -export interface DeleteTableInput { +export interface DeleteStorageModuleInput { clientMutationId?: string; id: string; } -export interface DeleteStorageModuleInput { +export interface DeleteTableInput { clientMutationId?: string; id: string; } @@ -16070,10 +17176,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -16104,13 +17206,6 @@ export interface GetAllConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Object` values. */ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `AppPermission` values. */ export interface AppPermissionConnection { nodes: AppPermission[]; @@ -16125,6 +17220,13 @@ export interface OrgPermissionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { nodes: AppLevelRequirement[]; @@ -16139,6 +17241,13 @@ export interface DefaultIdsModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `RoleType` values. */ +export interface RoleTypeConnection { + nodes: RoleType[]; + edges: RoleTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ViewTable` values. */ export interface ViewTableConnection { nodes: ViewTable[]; @@ -16153,13 +17262,6 @@ export interface ApiSchemaConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SiteTheme` values. */ -export interface SiteThemeConnection { - nodes: SiteTheme[]; - edges: SiteThemeEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgMember` values. */ export interface OrgMemberConnection { nodes: OrgMember[]; @@ -16167,10 +17269,10 @@ export interface OrgMemberConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppPermissionDefault` values. */ -export interface AppPermissionDefaultConnection { - nodes: AppPermissionDefault[]; - edges: AppPermissionDefaultEdge[]; +/** A connection to a list of `SiteTheme` values. */ +export interface SiteThemeConnection { + nodes: SiteTheme[]; + edges: SiteThemeEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16195,20 +17297,6 @@ export interface StoreConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `ApiModule` values. */ -export interface ApiModuleConnection { - nodes: ApiModule[]; - edges: ApiModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `SiteModule` values. */ -export interface SiteModuleConnection { - nodes: SiteModule[]; - edges: SiteModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EncryptedSecretsModule` values. */ export interface EncryptedSecretsModuleConnection { nodes: EncryptedSecretsModule[]; @@ -16230,17 +17318,24 @@ export interface SecretsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RoleType` values. */ -export interface RoleTypeConnection { - nodes: RoleType[]; - edges: RoleTypeEdge[]; +/** A connection to a list of `AppPermissionDefault` values. */ +export interface AppPermissionDefaultConnection { + nodes: AppPermissionDefault[]; + edges: AppPermissionDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgPermissionDefault` values. */ -export interface OrgPermissionDefaultConnection { - nodes: OrgPermissionDefault[]; - edges: OrgPermissionDefaultEdge[]; +/** A connection to a list of `ApiModule` values. */ +export interface ApiModuleConnection { + nodes: ApiModule[]; + edges: ApiModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `SiteModule` values. */ +export interface SiteModuleConnection { + nodes: SiteModule[]; + edges: SiteModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16293,24 +17388,38 @@ export interface AppOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MigrateFile` values. */ -export interface MigrateFileConnection { - nodes: MigrateFile[]; - edges: MigrateFileEdge[]; +/** A connection to a list of `AppAchievement` values. */ +export interface AppAchievementConnection { + nodes: AppAchievement[]; + edges: AppAchievementEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimitDefault` values. */ -export interface AppLimitDefaultConnection { - nodes: AppLimitDefault[]; - edges: AppLimitDefaultEdge[]; +/** A connection to a list of `AppStep` values. */ +export interface AppStepConnection { + nodes: AppStep[]; + edges: AppStepEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimitDefault` values. */ -export interface OrgLimitDefaultConnection { - nodes: OrgLimitDefault[]; - edges: OrgLimitDefaultEdge[]; +/** A connection to a list of `OrgPermissionDefault` values. */ +export interface OrgPermissionDefaultConnection { + nodes: OrgPermissionDefault[]; + edges: OrgPermissionDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MembershipType` values. */ +export interface MembershipTypeConnection { + nodes: MembershipType[]; + edges: MembershipTypeEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `MigrateFile` values. */ +export interface MigrateFileConnection { + nodes: MigrateFile[]; + edges: MigrateFileEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16391,6 +17500,27 @@ export interface OrgOwnerGrantConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `NodeTypeRegistry` values. */ +export interface NodeTypeRegistryConnection { + nodes: NodeTypeRegistry[]; + edges: NodeTypeRegistryEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppLimitDefault` values. */ +export interface AppLimitDefaultConnection { + nodes: AppLimitDefault[]; + edges: AppLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitDefault` values. */ +export interface OrgLimitDefaultConnection { + nodes: OrgLimitDefault[]; + edges: OrgLimitDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `UserConnectedAccount` values. */ export interface UserConnectedAccountConnection { nodes: UserConnectedAccount[]; @@ -16419,24 +17549,10 @@ export interface CryptoAddressConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppLimit` values. */ -export interface AppLimitConnection { - nodes: AppLimit[]; - edges: AppLimitEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppAchievement` values. */ -export interface AppAchievementConnection { - nodes: AppAchievement[]; - edges: AppAchievementEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppStep` values. */ -export interface AppStepConnection { - nodes: AppStep[]; - edges: AppStepEdge[]; +/** A connection to a list of `AgentMessage` values. */ +export interface AgentMessageConnection { + nodes: AgentMessage[]; + edges: AgentMessageEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16447,27 +17563,6 @@ export interface SiteMetadatumConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AppClaimedInvite` values. */ -export interface AppClaimedInviteConnection { - nodes: AppClaimedInvite[]; - edges: AppClaimedInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppMembershipDefault` values. */ -export interface AppMembershipDefaultConnection { - nodes: AppMembershipDefault[]; - edges: AppMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipDefault` values. */ -export interface OrgMembershipDefaultConnection { - nodes: OrgMembershipDefault[]; - edges: OrgMembershipDefaultEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `FullTextSearch` values. */ export interface FullTextSearchConnection { nodes: FullTextSearch[]; @@ -16489,45 +17584,80 @@ export interface CommitConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `RateLimitsModule` values. */ -export interface RateLimitsModuleConnection { - nodes: RateLimitsModule[]; - edges: RateLimitsModuleEdge[]; +/** A connection to a list of `RateLimitsModule` values. */ +export interface RateLimitsModuleConnection { + nodes: RateLimitsModule[]; + edges: RateLimitsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgChartEdgeGrant` values. */ +export interface OrgChartEdgeGrantConnection { + nodes: OrgChartEdgeGrant[]; + edges: OrgChartEdgeGrantEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PhoneNumber` values. */ +export interface PhoneNumberConnection { + nodes: PhoneNumber[]; + edges: PhoneNumberEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppClaimedInvite` values. */ +export interface AppClaimedInviteConnection { + nodes: AppClaimedInvite[]; + edges: AppClaimedInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AppMembershipDefault` values. */ +export interface AppMembershipDefaultConnection { + nodes: AppMembershipDefault[]; + edges: AppMembershipDefaultEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipDefault` values. */ +export interface OrgMembershipDefaultConnection { + nodes: OrgMembershipDefault[]; + edges: OrgMembershipDefaultEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgChartEdgeGrant` values. */ -export interface OrgChartEdgeGrantConnection { - nodes: OrgChartEdgeGrant[]; - edges: OrgChartEdgeGrantEdge[]; +/** A connection to a list of `AuditLog` values. */ +export interface AuditLogConnection { + nodes: AuditLog[]; + edges: AuditLogEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `PhoneNumber` values. */ -export interface PhoneNumberConnection { - nodes: PhoneNumber[]; - edges: PhoneNumberEdge[]; +/** A connection to a list of `Domain` values. */ +export interface DomainConnection { + nodes: Domain[]; + edges: DomainEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgLimit` values. */ -export interface OrgLimitConnection { - nodes: OrgLimit[]; - edges: OrgLimitEdge[]; +/** A connection to a list of `AgentTask` values. */ +export interface AgentTaskConnection { + nodes: AgentTask[]; + edges: AgentTaskEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `MembershipType` values. */ -export interface MembershipTypeConnection { - nodes: MembershipType[]; - edges: MembershipTypeEdge[]; +/** A connection to a list of `AgentThread` values. */ +export interface AgentThreadConnection { + nodes: AgentThread[]; + edges: AgentThreadEdge[]; pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Domain` values. */ -export interface DomainConnection { - nodes: Domain[]; - edges: DomainEdge[]; +/** A connection to a list of `Email` values. */ +export interface EmailConnection { + nodes: Email[]; + edges: EmailEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16545,6 +17675,20 @@ export interface OrgClaimedInviteConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppLimitEvent` values. */ +export interface AppLimitEventConnection { + nodes: AppLimitEvent[]; + edges: AppLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitEvent` values. */ +export interface OrgLimitEventConnection { + nodes: OrgLimitEvent[]; + edges: OrgLimitEventEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `OrgChartEdge` values. */ export interface OrgChartEdgeConnection { nodes: OrgChartEdge[]; @@ -16552,10 +17696,17 @@ export interface OrgChartEdgeConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `OrgGrant` values. */ -export interface OrgGrantConnection { - nodes: OrgGrant[]; - edges: OrgGrantEdge[]; +/** A connection to a list of `AppLimit` values. */ +export interface AppLimitConnection { + nodes: AppLimit[]; + edges: AppLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgLimitAggregate` values. */ +export interface OrgLimitAggregateConnection { + nodes: OrgLimitAggregate[]; + edges: OrgLimitAggregateEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16566,6 +17717,13 @@ export interface BlueprintConstructionConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `PlansModule` values. */ +export interface PlansModuleConnection { + nodes: PlansModule[]; + edges: PlansModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `RlsModule` values. */ export interface RlsModuleConnection { nodes: RlsModule[]; @@ -16580,10 +17738,10 @@ export interface SessionsModuleConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AuditLog` values. */ -export interface AuditLogConnection { - nodes: AuditLog[]; - edges: AuditLogEdge[]; +/** A connection to a list of `OrgGrant` values. */ +export interface OrgGrantConnection { + nodes: OrgGrant[]; + edges: OrgGrantEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16594,6 +17752,13 @@ export interface AppLevelConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `OrgLimit` values. */ +export interface OrgLimitConnection { + nodes: OrgLimit[]; + edges: OrgLimitEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Blueprint` values. */ export interface BlueprintConnection { nodes: Blueprint[]; @@ -16608,13 +17773,6 @@ export interface DenormalizedTableFieldConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Email` values. */ -export interface EmailConnection { - nodes: Email[]; - edges: EmailEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `OrgMemberProfile` values. */ export interface OrgMemberProfileConnection { nodes: OrgMemberProfile[]; @@ -16629,20 +17787,6 @@ export interface SqlActionConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `SecureTableProvision` values. */ -export interface SecureTableProvisionConnection { - nodes: SecureTableProvision[]; - edges: SecureTableProvisionEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembershipSetting` values. */ -export interface OrgMembershipSettingConnection { - nodes: OrgMembershipSetting[]; - edges: OrgMembershipSettingEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `DatabaseTransfer` values. */ export interface DatabaseTransferConnection { nodes: DatabaseTransfer[]; @@ -16650,6 +17794,13 @@ export interface DatabaseTransferConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `BillingModule` values. */ +export interface BillingModuleConnection { + nodes: BillingModule[]; + edges: BillingModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `CryptoAuthModule` values. */ export interface CryptoAuthModuleConnection { nodes: CryptoAuthModule[]; @@ -16671,6 +17822,20 @@ export interface InvitesModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `SecureTableProvision` values. */ +export interface SecureTableProvisionConnection { + nodes: SecureTableProvision[]; + edges: SecureTableProvisionEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `AstMigration` values. */ +export interface AstMigrationConnection { + nodes: AstMigration[]; + edges: AstMigrationEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Enum` values. */ export interface EnumConnection { nodes: Enum[]; @@ -16699,6 +17864,20 @@ export interface WebauthnAuthModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `AppInvite` values. */ +export interface AppInviteConnection { + nodes: AppInvite[]; + edges: AppInviteEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembershipSetting` values. */ +export interface OrgMembershipSettingConnection { + nodes: OrgMembershipSetting[]; + edges: OrgMembershipSettingEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `App` values. */ export interface AppConnection { nodes: App[]; @@ -16713,10 +17892,24 @@ export interface SiteConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `AstMigration` values. */ -export interface AstMigrationConnection { - nodes: AstMigration[]; - edges: AstMigrationEdge[]; +/** A connection to a list of `NotificationsModule` values. */ +export interface NotificationsModuleConnection { + nodes: NotificationsModule[]; + edges: NotificationsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `PermissionsModule` values. */ +export interface PermissionsModuleConnection { + nodes: PermissionsModule[]; + edges: PermissionsModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `WebauthnCredential` values. */ +export interface WebauthnCredentialConnection { + nodes: WebauthnCredential[]; + edges: WebauthnCredentialEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16762,27 +17955,6 @@ export interface PolicyConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `NotificationsModule` values. */ -export interface NotificationsModuleConnection { - nodes: NotificationsModule[]; - edges: NotificationsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `PermissionsModule` values. */ -export interface PermissionsModuleConnection { - nodes: PermissionsModule[]; - edges: PermissionsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `AppInvite` values. */ -export interface AppInviteConnection { - nodes: AppInvite[]; - edges: AppInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `EmbeddingChunk` values. */ export interface EmbeddingChunkConnection { nodes: EmbeddingChunk[]; @@ -16790,24 +17962,10 @@ export interface EmbeddingChunkConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Schema` values. */ -export interface SchemaConnection { - nodes: Schema[]; - edges: SchemaEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `LimitsModule` values. */ -export interface LimitsModuleConnection { - nodes: LimitsModule[]; - edges: LimitsModuleEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `ProfilesModule` values. */ -export interface ProfilesModuleConnection { - nodes: ProfilesModule[]; - edges: ProfilesModuleEdge[]; +/** A connection to a list of `OrgInvite` values. */ +export interface OrgInviteConnection { + nodes: OrgInvite[]; + edges: OrgInviteEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16818,6 +17976,13 @@ export interface AppMembershipConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Schema` values. */ +export interface SchemaConnection { + nodes: Schema[]; + edges: SchemaEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `Index` values. */ export interface IndexConnection { nodes: Index[]; @@ -16825,24 +17990,10 @@ export interface IndexConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `WebauthnCredential` values. */ -export interface WebauthnCredentialConnection { - nodes: WebauthnCredential[]; - edges: WebauthnCredentialEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgInvite` values. */ -export interface OrgInviteConnection { - nodes: OrgInvite[]; - edges: OrgInviteEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -/** A connection to a list of `OrgMembership` values. */ -export interface OrgMembershipConnection { - nodes: OrgMembership[]; - edges: OrgMembershipEdge[]; +/** A connection to a list of `LimitsModule` values. */ +export interface LimitsModuleConnection { + nodes: LimitsModule[]; + edges: LimitsModuleEdge[]; pageInfo: PageInfo; totalCount: number; } @@ -16860,6 +18011,20 @@ export interface HierarchyModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `ProfilesModule` values. */ +export interface ProfilesModuleConnection { + nodes: ProfilesModule[]; + edges: ProfilesModuleEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +/** A connection to a list of `OrgMembership` values. */ +export interface OrgMembershipConnection { + nodes: OrgMembership[]; + edges: OrgMembershipEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `ForeignKeyConstraint` values. */ export interface ForeignKeyConstraintConnection { nodes: ForeignKeyConstraint[]; @@ -16867,13 +18032,6 @@ export interface ForeignKeyConstraintConnection { pageInfo: PageInfo; totalCount: number; } -/** A connection to a list of `Table` values. */ -export interface TableConnection { - nodes: Table[]; - edges: TableEdge[]; - pageInfo: PageInfo; - totalCount: number; -} /** A connection to a list of `StorageModule` values. */ export interface StorageModuleConnection { nodes: StorageModule[]; @@ -16881,6 +18039,13 @@ export interface StorageModuleConnection { pageInfo: PageInfo; totalCount: number; } +/** A connection to a list of `Table` values. */ +export interface TableConnection { + nodes: Table[]; + edges: TableEdge[]; + pageInfo: PageInfo; + totalCount: number; +} /** A connection to a list of `EntityTypeProvision` values. */ export interface EntityTypeProvisionConnection { nodes: EntityTypeProvision[]; @@ -17078,11 +18243,18 @@ export interface CreateUserDatabasePayload { } export interface ExtendTokenExpiresPayload { clientMutationId?: string | null; - result?: ExtendTokenExpiresRecord[] | null; + result?: ExtendTokenExpiresRecord[] | null; +} +export interface CreateApiKeyPayload { + clientMutationId?: string | null; + result?: CreateApiKeyRecord | null; +} +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; } -export interface CreateApiKeyPayload { +export interface ForgotPasswordPayload { clientMutationId?: string | null; - result?: CreateApiKeyRecord | null; } export interface SignUpPayload { clientMutationId?: string | null; @@ -17100,19 +18272,18 @@ export interface ProvisionTablePayload { clientMutationId?: string | null; result?: ProvisionTableRecord[] | null; } -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} export interface CreateDefaultIdsModulePayload { clientMutationId?: string | null; /** The `DefaultIdsModule` that was created by this mutation. */ defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} export interface CreateViewTablePayload { clientMutationId?: string | null; /** The `ViewTable` that was created by this mutation. */ @@ -17125,23 +18296,17 @@ export interface CreateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface CreateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was created by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface CreateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was created by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface CreateAppPermissionDefaultPayload { +export interface CreateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was created by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface CreateIdentityProviderPayload { clientMutationId?: string | null; @@ -17160,18 +18325,6 @@ export interface CreateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface CreateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was created by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface CreateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was created by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface CreateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was created by this mutation. */ @@ -17190,17 +18343,23 @@ export interface CreateSecretsModulePayload { secretsModule?: SecretsModule | null; secretsModuleEdge?: SecretsModuleEdge | null; } -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface CreateOrgPermissionDefaultPayload { +export interface CreateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was created by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was created by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface CreateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was created by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface CreateSchemaGrantPayload { clientMutationId?: string | null; @@ -17244,22 +18403,46 @@ export interface CreateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface CreateMigrateFilePayload { +export interface CreateAppAchievementPayload { clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface CreateAppLimitDefaultPayload { +export interface CreateAppStepPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export interface CreateOrgLimitDefaultPayload { +export interface CreateOrgPermissionDefaultPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `OrgPermissionDefault` that was created by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface CreateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was created by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface CreateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was created by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface CreateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; } export interface CreateDefaultPrivilegePayload { clientMutationId?: string | null; @@ -17327,17 +18510,29 @@ export interface CreateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface CreateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; +} export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; /** The `UserConnectedAccount` that was created by this mutation. */ userConnectedAccount?: UserConnectedAccount | null; } -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} export interface CreateDatabasePayload { clientMutationId?: string | null; /** The `Database` that was created by this mutation. */ @@ -17356,35 +18551,17 @@ export interface CreateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface CreateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was created by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface CreateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was created by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface CreateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface CreateAppAchievementPayload { +export interface CreateAgentMessagePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; } -export interface CreateAppStepPayload { +export interface CreateObjectPayload { clientMutationId?: string | null; - /** The `AppStep` that was created by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; } export interface CreateSiteMetadatumPayload { clientMutationId?: string | null; @@ -17392,23 +18569,11 @@ export interface CreateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface CreateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface CreateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was created by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface CreateOrgMembershipDefaultPayload { +export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was created by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppLevelRequirement` that was created by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface CreateFullTextSearchPayload { clientMutationId?: string | null; @@ -17446,17 +18611,29 @@ export interface CreatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface CreateOrgLimitPayload { +export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppClaimedInvite` that was created by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface CreateMembershipTypePayload { +export interface CreateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was created by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface CreateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was created by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface CreateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was created by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; } export interface CreateDomainPayload { clientMutationId?: string | null; @@ -17464,6 +18641,24 @@ export interface CreateDomainPayload { domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface CreateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface CreateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was created by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface CreateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was created by this mutation. */ @@ -17476,17 +18671,33 @@ export interface CreateOrgClaimedInvitePayload { orgClaimedInvite?: OrgClaimedInvite | null; orgClaimedInviteEdge?: OrgClaimedInviteEdge | null; } +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; +} +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; +} export interface CreateOrgChartEdgePayload { clientMutationId?: string | null; /** The `OrgChartEdge` that was created by this mutation. */ orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface CreateOrgGrantPayload { +export interface CreateAppLimitPayload { clientMutationId?: string | null; - /** The `OrgGrant` that was created by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface CreateBlueprintConstructionPayload { clientMutationId?: string | null; @@ -17494,6 +18705,12 @@ export interface CreateBlueprintConstructionPayload { blueprintConstruction?: BlueprintConstruction | null; blueprintConstructionEdge?: BlueprintConstructionEdge | null; } +export interface CreatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} export interface CreateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was created by this mutation. */ @@ -17506,17 +18723,11 @@ export interface CreateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface CreateAppLevelRequirementPayload { - clientMutationId?: string | null; - /** The `AppLevelRequirement` that was created by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface CreateAuditLogPayload { +export interface CreateOrgGrantPayload { clientMutationId?: string | null; - /** The `AuditLog` that was created by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `OrgGrant` that was created by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; } export interface CreateAppLevelPayload { clientMutationId?: string | null; @@ -17524,6 +18735,12 @@ export interface CreateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } +export interface CreateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} export interface CreateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was created by this mutation. */ @@ -17536,12 +18753,6 @@ export interface CreateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface CreateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was created by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface CreateOrgMemberProfilePayload { clientMutationId?: string | null; /** The `OrgMemberProfile` that was created by this mutation. */ @@ -17553,24 +18764,18 @@ export interface CreateSqlActionPayload { /** The `SqlAction` that was created by this mutation. */ sqlAction?: SqlAction | null; } -export interface CreateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was created by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface CreateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} export interface CreateDatabaseTransferPayload { clientMutationId?: string | null; /** The `DatabaseTransfer` that was created by this mutation. */ databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } +export interface CreateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface CreateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was created by this mutation. */ @@ -17589,6 +18794,17 @@ export interface CreateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface CreateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was created by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} +export interface CreateAstMigrationPayload { + clientMutationId?: string | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; +} export interface CreateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was created by this mutation. */ @@ -17613,6 +18829,18 @@ export interface CreateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } +export interface CreateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was created by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface CreateAppPayload { clientMutationId?: string | null; /** The `App` that was created by this mutation. */ @@ -17625,10 +18853,23 @@ export interface CreateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } -export interface CreateAstMigrationPayload { +export interface CreateNotificationsModulePayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `NotificationsModule` that was created by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface CreatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was created by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface CreateWebauthnCredentialPayload { + clientMutationId?: string | null; + /** The `WebauthnCredential` that was created by this mutation. */ + webauthnCredential?: WebauthnCredential | null; + webauthnCredentialEdge?: WebauthnCredentialEdge | null; } export interface CreatePrimaryKeyConstraintPayload { clientMutationId?: string | null; @@ -17666,47 +18907,17 @@ export interface CreatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface CreateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was created by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface CreatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was created by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface CreateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was created by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface CreateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was created by this mutation. */ embeddingChunk?: EmbeddingChunk | null; embeddingChunkEdge?: EmbeddingChunkEdge | null; } -export interface CreateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was created by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface CreateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was created by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface CreateProfilesModulePayload { +export interface CreateOrgInvitePayload { clientMutationId?: string | null; - /** The `ProfilesModule` that was created by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; + /** The `OrgInvite` that was created by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; } export interface CreateAppMembershipPayload { clientMutationId?: string | null; @@ -17714,29 +18925,23 @@ export interface CreateAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface CreateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was created by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} export interface CreateIndexPayload { clientMutationId?: string | null; /** The `Index` that was created by this mutation. */ index?: Index | null; indexEdge?: IndexEdge | null; } -export interface CreateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was created by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface CreateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was created by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface CreateOrgMembershipPayload { +export interface CreateLimitsModulePayload { clientMutationId?: string | null; - /** The `OrgMembership` that was created by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; + /** The `LimitsModule` that was created by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } export interface CreateBlueprintTemplatePayload { clientMutationId?: string | null; @@ -17750,24 +18955,36 @@ export interface CreateHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface CreateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was created by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface CreateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was created by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} export interface CreateForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was created by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } -export interface CreateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was created by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} export interface CreateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was created by this mutation. */ storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface CreateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was created by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} export interface CreateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was created by this mutation. */ @@ -17810,6 +19027,12 @@ export interface UpdateDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} export interface UpdateViewTablePayload { clientMutationId?: string | null; /** The `ViewTable` that was updated by this mutation. */ @@ -17822,23 +19045,17 @@ export interface UpdateApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface UpdateSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was updated by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface UpdateOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was updated by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was updated by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface UpdateRefPayload { clientMutationId?: string | null; @@ -17852,18 +19069,6 @@ export interface UpdateStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface UpdateApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was updated by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface UpdateSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was updated by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface UpdateEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was updated by this mutation. */ @@ -17882,17 +19087,23 @@ export interface UpdateSecretsModulePayload { secretsModule?: SecretsModule | null; secretsModuleEdge?: SecretsModuleEdge | null; } -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface UpdateOrgPermissionDefaultPayload { +export interface UpdateApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was updated by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was updated by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface UpdateSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was updated by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface UpdateSchemaGrantPayload { clientMutationId?: string | null; @@ -17936,17 +19147,41 @@ export interface UpdateAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface UpdateOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was updated by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface UpdateAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was updated by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface UpdateOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was updated by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface UpdateMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface UpdateDefaultPrivilegePayload { clientMutationId?: string | null; @@ -18014,11 +19249,23 @@ export interface UpdateOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface UpdateObjectPayload { +export interface UpdateNodeTypeRegistryPayload { clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface UpdateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface UpdateOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface UpdateDatabasePayload { clientMutationId?: string | null; @@ -18038,35 +19285,17 @@ export interface UpdateCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface UpdateAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was updated by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface UpdateOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was updated by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface UpdateAppAchievementPayload { +export interface UpdateAgentMessagePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; } -export interface UpdateAppStepPayload { +export interface UpdateObjectPayload { clientMutationId?: string | null; - /** The `AppStep` that was updated by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; } export interface UpdateSiteMetadatumPayload { clientMutationId?: string | null; @@ -18074,23 +19303,11 @@ export interface UpdateSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface UpdateAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface UpdateAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was updated by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface UpdateOrgMembershipDefaultPayload { +export interface UpdateAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was updated by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppLevelRequirement` that was updated by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface UpdateFullTextSearchPayload { clientMutationId?: string | null; @@ -18128,17 +19345,29 @@ export interface UpdatePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface UpdateOrgLimitPayload { +export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppClaimedInvite` that was updated by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface UpdateMembershipTypePayload { +export interface UpdateAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was updated by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface UpdateOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was updated by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface UpdateAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was updated by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; } export interface UpdateDomainPayload { clientMutationId?: string | null; @@ -18146,6 +19375,24 @@ export interface UpdateDomainPayload { domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface UpdateAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface UpdateEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was updated by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface UpdateAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was updated by this mutation. */ @@ -18164,11 +19411,17 @@ export interface UpdateOrgChartEdgePayload { orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface UpdateOrgGrantPayload { +export interface UpdateAppLimitPayload { clientMutationId?: string | null; - /** The `OrgGrant` that was updated by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface UpdateBlueprintConstructionPayload { clientMutationId?: string | null; @@ -18176,6 +19429,12 @@ export interface UpdateBlueprintConstructionPayload { blueprintConstruction?: BlueprintConstruction | null; blueprintConstructionEdge?: BlueprintConstructionEdge | null; } +export interface UpdatePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} export interface UpdateRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was updated by this mutation. */ @@ -18188,17 +19447,11 @@ export interface UpdateSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface UpdateAppLevelRequirementPayload { - clientMutationId?: string | null; - /** The `AppLevelRequirement` that was updated by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface UpdateAuditLogPayload { +export interface UpdateOrgGrantPayload { clientMutationId?: string | null; - /** The `AuditLog` that was updated by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `OrgGrant` that was updated by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; } export interface UpdateAppLevelPayload { clientMutationId?: string | null; @@ -18206,6 +19459,12 @@ export interface UpdateAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } +export interface UpdateOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} export interface UpdateBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was updated by this mutation. */ @@ -18218,36 +19477,24 @@ export interface UpdateDenormalizedTableFieldPayload { denormalizedTableField?: DenormalizedTableField | null; denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } -export interface UpdateEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was updated by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; -} export interface UpdateOrgMemberProfilePayload { clientMutationId?: string | null; /** The `OrgMemberProfile` that was updated by this mutation. */ orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface UpdateSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was updated by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface UpdateOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} export interface UpdateDatabaseTransferPayload { clientMutationId?: string | null; /** The `DatabaseTransfer` that was updated by this mutation. */ databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface UpdateCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was updated by this mutation. */ @@ -18266,6 +19513,12 @@ export interface UpdateInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface UpdateSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was updated by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} export interface UpdateEnumPayload { clientMutationId?: string | null; /** The `Enum` that was updated by this mutation. */ @@ -18290,6 +19543,18 @@ export interface UpdateWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } +export interface UpdateAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was updated by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface UpdateAppPayload { clientMutationId?: string | null; /** The `App` that was updated by this mutation. */ @@ -18302,6 +19567,24 @@ export interface UpdateSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface UpdateNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was updated by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface UpdatePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was updated by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface UpdateWebauthnCredentialPayload { + clientMutationId?: string | null; + /** The `WebauthnCredential` that was updated by this mutation. */ + webauthnCredential?: WebauthnCredential | null; + webauthnCredentialEdge?: WebauthnCredentialEdge | null; +} export interface UpdatePrimaryKeyConstraintPayload { clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was updated by this mutation. */ @@ -18338,47 +19621,17 @@ export interface UpdatePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface UpdateNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was updated by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface UpdatePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was updated by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface UpdateAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was updated by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface UpdateEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was updated by this mutation. */ embeddingChunk?: EmbeddingChunk | null; embeddingChunkEdge?: EmbeddingChunkEdge | null; } -export interface UpdateSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was updated by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface UpdateLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was updated by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface UpdateProfilesModulePayload { +export interface UpdateOrgInvitePayload { clientMutationId?: string | null; - /** The `ProfilesModule` that was updated by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; + /** The `OrgInvite` that was updated by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; } export interface UpdateAppMembershipPayload { clientMutationId?: string | null; @@ -18386,29 +19639,23 @@ export interface UpdateAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface UpdateSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was updated by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} export interface UpdateIndexPayload { clientMutationId?: string | null; /** The `Index` that was updated by this mutation. */ index?: Index | null; indexEdge?: IndexEdge | null; } -export interface UpdateWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was updated by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface UpdateOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was updated by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface UpdateOrgMembershipPayload { +export interface UpdateLimitsModulePayload { clientMutationId?: string | null; - /** The `OrgMembership` that was updated by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; + /** The `LimitsModule` that was updated by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } export interface UpdateBlueprintTemplatePayload { clientMutationId?: string | null; @@ -18418,9 +19665,21 @@ export interface UpdateBlueprintTemplatePayload { } export interface UpdateHierarchyModulePayload { clientMutationId?: string | null; - /** The `HierarchyModule` that was updated by this mutation. */ - hierarchyModule?: HierarchyModule | null; - hierarchyModuleEdge?: HierarchyModuleEdge | null; + /** The `HierarchyModule` that was updated by this mutation. */ + hierarchyModule?: HierarchyModule | null; + hierarchyModuleEdge?: HierarchyModuleEdge | null; +} +export interface UpdateProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was updated by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface UpdateOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was updated by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; } export interface UpdateForeignKeyConstraintPayload { clientMutationId?: string | null; @@ -18428,18 +19687,18 @@ export interface UpdateForeignKeyConstraintPayload { foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } -export interface UpdateTablePayload { - clientMutationId?: string | null; - /** The `Table` that was updated by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} export interface UpdateStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was updated by this mutation. */ storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface UpdateTablePayload { + clientMutationId?: string | null; + /** The `Table` that was updated by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} export interface UpdateEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was updated by this mutation. */ @@ -18482,6 +19741,12 @@ export interface DeleteDefaultIdsModulePayload { defaultIdsModule?: DefaultIdsModule | null; defaultIdsModuleEdge?: DefaultIdsModuleEdge | null; } +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} export interface DeleteViewTablePayload { clientMutationId?: string | null; /** The `ViewTable` that was deleted by this mutation. */ @@ -18494,23 +19759,17 @@ export interface DeleteApiSchemaPayload { apiSchema?: ApiSchema | null; apiSchemaEdge?: ApiSchemaEdge | null; } -export interface DeleteSiteThemePayload { - clientMutationId?: string | null; - /** The `SiteTheme` that was deleted by this mutation. */ - siteTheme?: SiteTheme | null; - siteThemeEdge?: SiteThemeEdge | null; -} export interface DeleteOrgMemberPayload { clientMutationId?: string | null; /** The `OrgMember` that was deleted by this mutation. */ orgMember?: OrgMember | null; orgMemberEdge?: OrgMemberEdge | null; } -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteSiteThemePayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `SiteTheme` that was deleted by this mutation. */ + siteTheme?: SiteTheme | null; + siteThemeEdge?: SiteThemeEdge | null; } export interface DeleteRefPayload { clientMutationId?: string | null; @@ -18524,18 +19783,6 @@ export interface DeleteStorePayload { store?: Store | null; storeEdge?: StoreEdge | null; } -export interface DeleteApiModulePayload { - clientMutationId?: string | null; - /** The `ApiModule` that was deleted by this mutation. */ - apiModule?: ApiModule | null; - apiModuleEdge?: ApiModuleEdge | null; -} -export interface DeleteSiteModulePayload { - clientMutationId?: string | null; - /** The `SiteModule` that was deleted by this mutation. */ - siteModule?: SiteModule | null; - siteModuleEdge?: SiteModuleEdge | null; -} export interface DeleteEncryptedSecretsModulePayload { clientMutationId?: string | null; /** The `EncryptedSecretsModule` that was deleted by this mutation. */ @@ -18554,17 +19801,23 @@ export interface DeleteSecretsModulePayload { secretsModule?: SecretsModule | null; secretsModuleEdge?: SecretsModuleEdge | null; } -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export interface DeleteOrgPermissionDefaultPayload { +export interface DeleteApiModulePayload { clientMutationId?: string | null; - /** The `OrgPermissionDefault` that was deleted by this mutation. */ - orgPermissionDefault?: OrgPermissionDefault | null; - orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; + /** The `ApiModule` that was deleted by this mutation. */ + apiModule?: ApiModule | null; + apiModuleEdge?: ApiModuleEdge | null; +} +export interface DeleteSiteModulePayload { + clientMutationId?: string | null; + /** The `SiteModule` that was deleted by this mutation. */ + siteModule?: SiteModule | null; + siteModuleEdge?: SiteModuleEdge | null; } export interface DeleteSchemaGrantPayload { clientMutationId?: string | null; @@ -18608,17 +19861,41 @@ export interface DeleteAppOwnerGrantPayload { appOwnerGrant?: AppOwnerGrant | null; appOwnerGrantEdge?: AppOwnerGrantEdge | null; } -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; +} +export interface DeleteOrgPermissionDefaultPayload { + clientMutationId?: string | null; + /** The `OrgPermissionDefault` that was deleted by this mutation. */ + orgPermissionDefault?: OrgPermissionDefault | null; + orgPermissionDefaultEdge?: OrgPermissionDefaultEdge | null; +} +export interface DeleteAppPermissionPayload { + clientMutationId?: string | null; + /** The `AppPermission` that was deleted by this mutation. */ + appPermission?: AppPermission | null; + appPermissionEdge?: AppPermissionEdge | null; +} +export interface DeleteOrgPermissionPayload { + clientMutationId?: string | null; + /** The `OrgPermission` that was deleted by this mutation. */ + orgPermission?: OrgPermission | null; + orgPermissionEdge?: OrgPermissionEdge | null; +} +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } export interface DeleteDefaultPrivilegePayload { clientMutationId?: string | null; @@ -18686,11 +19963,23 @@ export interface DeleteOrgOwnerGrantPayload { orgOwnerGrant?: OrgOwnerGrant | null; orgOwnerGrantEdge?: OrgOwnerGrantEdge | null; } -export interface DeleteObjectPayload { +export interface DeleteNodeTypeRegistryPayload { clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export interface DeleteAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export interface DeleteOrgLimitDefaultPayload { + clientMutationId?: string | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } export interface DeleteDatabasePayload { clientMutationId?: string | null; @@ -18710,35 +19999,17 @@ export interface DeleteCryptoAddressPayload { cryptoAddress?: CryptoAddress | null; cryptoAddressEdge?: CryptoAddressEdge | null; } -export interface DeleteAppPermissionPayload { - clientMutationId?: string | null; - /** The `AppPermission` that was deleted by this mutation. */ - appPermission?: AppPermission | null; - appPermissionEdge?: AppPermissionEdge | null; -} -export interface DeleteOrgPermissionPayload { - clientMutationId?: string | null; - /** The `OrgPermission` that was deleted by this mutation. */ - orgPermission?: OrgPermission | null; - orgPermissionEdge?: OrgPermissionEdge | null; -} -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export interface DeleteAppAchievementPayload { +export interface DeleteAgentMessagePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; } -export interface DeleteAppStepPayload { +export interface DeleteObjectPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; } export interface DeleteSiteMetadatumPayload { clientMutationId?: string | null; @@ -18746,23 +20017,11 @@ export interface DeleteSiteMetadatumPayload { siteMetadatum?: SiteMetadatum | null; siteMetadatumEdge?: SiteMetadatumEdge | null; } -export interface DeleteAppClaimedInvitePayload { - clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; -} -export interface DeleteAppMembershipDefaultPayload { - clientMutationId?: string | null; - /** The `AppMembershipDefault` that was deleted by this mutation. */ - appMembershipDefault?: AppMembershipDefault | null; - appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; -} -export interface DeleteOrgMembershipDefaultPayload { +export interface DeleteAppLevelRequirementPayload { clientMutationId?: string | null; - /** The `OrgMembershipDefault` that was deleted by this mutation. */ - orgMembershipDefault?: OrgMembershipDefault | null; - orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; + /** The `AppLevelRequirement` that was deleted by this mutation. */ + appLevelRequirement?: AppLevelRequirement | null; + appLevelRequirementEdge?: AppLevelRequirementEdge | null; } export interface DeleteFullTextSearchPayload { clientMutationId?: string | null; @@ -18800,17 +20059,29 @@ export interface DeletePhoneNumberPayload { phoneNumber?: PhoneNumber | null; phoneNumberEdge?: PhoneNumberEdge | null; } -export interface DeleteOrgLimitPayload { +export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; + /** The `AppClaimedInvite` that was deleted by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export interface DeleteMembershipTypePayload { +export interface DeleteAppMembershipDefaultPayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppMembershipDefault` that was deleted by this mutation. */ + appMembershipDefault?: AppMembershipDefault | null; + appMembershipDefaultEdge?: AppMembershipDefaultEdge | null; +} +export interface DeleteOrgMembershipDefaultPayload { + clientMutationId?: string | null; + /** The `OrgMembershipDefault` that was deleted by this mutation. */ + orgMembershipDefault?: OrgMembershipDefault | null; + orgMembershipDefaultEdge?: OrgMembershipDefaultEdge | null; +} +export interface DeleteAuditLogPayload { + clientMutationId?: string | null; + /** The `AuditLog` that was deleted by this mutation. */ + auditLog?: AuditLog | null; + auditLogEdge?: AuditLogEdge | null; } export interface DeleteDomainPayload { clientMutationId?: string | null; @@ -18818,6 +20089,24 @@ export interface DeleteDomainPayload { domain?: Domain | null; domainEdge?: DomainEdge | null; } +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export interface DeleteAgentThreadPayload { + clientMutationId?: string | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; +} +export interface DeleteEmailPayload { + clientMutationId?: string | null; + /** The `Email` that was deleted by this mutation. */ + email?: Email | null; + emailEdge?: EmailEdge | null; +} export interface DeleteAppGrantPayload { clientMutationId?: string | null; /** The `AppGrant` that was deleted by this mutation. */ @@ -18836,11 +20125,17 @@ export interface DeleteOrgChartEdgePayload { orgChartEdge?: OrgChartEdge | null; orgChartEdgeEdge?: OrgChartEdgeEdge | null; } -export interface DeleteOrgGrantPayload { +export interface DeleteAppLimitPayload { clientMutationId?: string | null; - /** The `OrgGrant` that was deleted by this mutation. */ - orgGrant?: OrgGrant | null; - orgGrantEdge?: OrgGrantEdge | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } export interface DeleteBlueprintConstructionPayload { clientMutationId?: string | null; @@ -18848,6 +20143,12 @@ export interface DeleteBlueprintConstructionPayload { blueprintConstruction?: BlueprintConstruction | null; blueprintConstructionEdge?: BlueprintConstructionEdge | null; } +export interface DeletePlansModulePayload { + clientMutationId?: string | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; +} export interface DeleteRlsModulePayload { clientMutationId?: string | null; /** The `RlsModule` that was deleted by this mutation. */ @@ -18860,17 +20161,11 @@ export interface DeleteSessionsModulePayload { sessionsModule?: SessionsModule | null; sessionsModuleEdge?: SessionsModuleEdge | null; } -export interface DeleteAppLevelRequirementPayload { - clientMutationId?: string | null; - /** The `AppLevelRequirement` that was deleted by this mutation. */ - appLevelRequirement?: AppLevelRequirement | null; - appLevelRequirementEdge?: AppLevelRequirementEdge | null; -} -export interface DeleteAuditLogPayload { +export interface DeleteOrgGrantPayload { clientMutationId?: string | null; - /** The `AuditLog` that was deleted by this mutation. */ - auditLog?: AuditLog | null; - auditLogEdge?: AuditLogEdge | null; + /** The `OrgGrant` that was deleted by this mutation. */ + orgGrant?: OrgGrant | null; + orgGrantEdge?: OrgGrantEdge | null; } export interface DeleteAppLevelPayload { clientMutationId?: string | null; @@ -18878,6 +20173,12 @@ export interface DeleteAppLevelPayload { appLevel?: AppLevel | null; appLevelEdge?: AppLevelEdge | null; } +export interface DeleteOrgLimitPayload { + clientMutationId?: string | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; +} export interface DeleteBlueprintPayload { clientMutationId?: string | null; /** The `Blueprint` that was deleted by this mutation. */ @@ -18888,13 +20189,7 @@ export interface DeleteDenormalizedTableFieldPayload { clientMutationId?: string | null; /** The `DenormalizedTableField` that was deleted by this mutation. */ denormalizedTableField?: DenormalizedTableField | null; - denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; -} -export interface DeleteEmailPayload { - clientMutationId?: string | null; - /** The `Email` that was deleted by this mutation. */ - email?: Email | null; - emailEdge?: EmailEdge | null; + denormalizedTableFieldEdge?: DenormalizedTableFieldEdge | null; } export interface DeleteOrgMemberProfilePayload { clientMutationId?: string | null; @@ -18902,24 +20197,18 @@ export interface DeleteOrgMemberProfilePayload { orgMemberProfile?: OrgMemberProfile | null; orgMemberProfileEdge?: OrgMemberProfileEdge | null; } -export interface DeleteSecureTableProvisionPayload { - clientMutationId?: string | null; - /** The `SecureTableProvision` that was deleted by this mutation. */ - secureTableProvision?: SecureTableProvision | null; - secureTableProvisionEdge?: SecureTableProvisionEdge | null; -} -export interface DeleteOrgMembershipSettingPayload { - clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; -} export interface DeleteDatabaseTransferPayload { clientMutationId?: string | null; /** The `DatabaseTransfer` that was deleted by this mutation. */ databaseTransfer?: DatabaseTransfer | null; databaseTransferEdge?: DatabaseTransferEdge | null; } +export interface DeleteBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} export interface DeleteCryptoAuthModulePayload { clientMutationId?: string | null; /** The `CryptoAuthModule` that was deleted by this mutation. */ @@ -18938,6 +20227,12 @@ export interface DeleteInvitesModulePayload { invitesModule?: InvitesModule | null; invitesModuleEdge?: InvitesModuleEdge | null; } +export interface DeleteSecureTableProvisionPayload { + clientMutationId?: string | null; + /** The `SecureTableProvision` that was deleted by this mutation. */ + secureTableProvision?: SecureTableProvision | null; + secureTableProvisionEdge?: SecureTableProvisionEdge | null; +} export interface DeleteEnumPayload { clientMutationId?: string | null; /** The `Enum` that was deleted by this mutation. */ @@ -18962,6 +20257,18 @@ export interface DeleteWebauthnAuthModulePayload { webauthnAuthModule?: WebauthnAuthModule | null; webauthnAuthModuleEdge?: WebauthnAuthModuleEdge | null; } +export interface DeleteAppInvitePayload { + clientMutationId?: string | null; + /** The `AppInvite` that was deleted by this mutation. */ + appInvite?: AppInvite | null; + appInviteEdge?: AppInviteEdge | null; +} +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} export interface DeleteAppPayload { clientMutationId?: string | null; /** The `App` that was deleted by this mutation. */ @@ -18974,6 +20281,24 @@ export interface DeleteSitePayload { site?: Site | null; siteEdge?: SiteEdge | null; } +export interface DeleteNotificationsModulePayload { + clientMutationId?: string | null; + /** The `NotificationsModule` that was deleted by this mutation. */ + notificationsModule?: NotificationsModule | null; + notificationsModuleEdge?: NotificationsModuleEdge | null; +} +export interface DeletePermissionsModulePayload { + clientMutationId?: string | null; + /** The `PermissionsModule` that was deleted by this mutation. */ + permissionsModule?: PermissionsModule | null; + permissionsModuleEdge?: PermissionsModuleEdge | null; +} +export interface DeleteWebauthnCredentialPayload { + clientMutationId?: string | null; + /** The `WebauthnCredential` that was deleted by this mutation. */ + webauthnCredential?: WebauthnCredential | null; + webauthnCredentialEdge?: WebauthnCredentialEdge | null; +} export interface DeletePrimaryKeyConstraintPayload { clientMutationId?: string | null; /** The `PrimaryKeyConstraint` that was deleted by this mutation. */ @@ -19010,47 +20335,17 @@ export interface DeletePolicyPayload { policy?: Policy | null; policyEdge?: PolicyEdge | null; } -export interface DeleteNotificationsModulePayload { - clientMutationId?: string | null; - /** The `NotificationsModule` that was deleted by this mutation. */ - notificationsModule?: NotificationsModule | null; - notificationsModuleEdge?: NotificationsModuleEdge | null; -} -export interface DeletePermissionsModulePayload { - clientMutationId?: string | null; - /** The `PermissionsModule` that was deleted by this mutation. */ - permissionsModule?: PermissionsModule | null; - permissionsModuleEdge?: PermissionsModuleEdge | null; -} -export interface DeleteAppInvitePayload { - clientMutationId?: string | null; - /** The `AppInvite` that was deleted by this mutation. */ - appInvite?: AppInvite | null; - appInviteEdge?: AppInviteEdge | null; -} export interface DeleteEmbeddingChunkPayload { clientMutationId?: string | null; /** The `EmbeddingChunk` that was deleted by this mutation. */ embeddingChunk?: EmbeddingChunk | null; embeddingChunkEdge?: EmbeddingChunkEdge | null; } -export interface DeleteSchemaPayload { - clientMutationId?: string | null; - /** The `Schema` that was deleted by this mutation. */ - schema?: Schema | null; - schemaEdge?: SchemaEdge | null; -} -export interface DeleteLimitsModulePayload { - clientMutationId?: string | null; - /** The `LimitsModule` that was deleted by this mutation. */ - limitsModule?: LimitsModule | null; - limitsModuleEdge?: LimitsModuleEdge | null; -} -export interface DeleteProfilesModulePayload { +export interface DeleteOrgInvitePayload { clientMutationId?: string | null; - /** The `ProfilesModule` that was deleted by this mutation. */ - profilesModule?: ProfilesModule | null; - profilesModuleEdge?: ProfilesModuleEdge | null; + /** The `OrgInvite` that was deleted by this mutation. */ + orgInvite?: OrgInvite | null; + orgInviteEdge?: OrgInviteEdge | null; } export interface DeleteAppMembershipPayload { clientMutationId?: string | null; @@ -19058,29 +20353,23 @@ export interface DeleteAppMembershipPayload { appMembership?: AppMembership | null; appMembershipEdge?: AppMembershipEdge | null; } +export interface DeleteSchemaPayload { + clientMutationId?: string | null; + /** The `Schema` that was deleted by this mutation. */ + schema?: Schema | null; + schemaEdge?: SchemaEdge | null; +} export interface DeleteIndexPayload { clientMutationId?: string | null; /** The `Index` that was deleted by this mutation. */ index?: Index | null; indexEdge?: IndexEdge | null; } -export interface DeleteWebauthnCredentialPayload { - clientMutationId?: string | null; - /** The `WebauthnCredential` that was deleted by this mutation. */ - webauthnCredential?: WebauthnCredential | null; - webauthnCredentialEdge?: WebauthnCredentialEdge | null; -} -export interface DeleteOrgInvitePayload { - clientMutationId?: string | null; - /** The `OrgInvite` that was deleted by this mutation. */ - orgInvite?: OrgInvite | null; - orgInviteEdge?: OrgInviteEdge | null; -} -export interface DeleteOrgMembershipPayload { +export interface DeleteLimitsModulePayload { clientMutationId?: string | null; - /** The `OrgMembership` that was deleted by this mutation. */ - orgMembership?: OrgMembership | null; - orgMembershipEdge?: OrgMembershipEdge | null; + /** The `LimitsModule` that was deleted by this mutation. */ + limitsModule?: LimitsModule | null; + limitsModuleEdge?: LimitsModuleEdge | null; } export interface DeleteBlueprintTemplatePayload { clientMutationId?: string | null; @@ -19094,24 +20383,36 @@ export interface DeleteHierarchyModulePayload { hierarchyModule?: HierarchyModule | null; hierarchyModuleEdge?: HierarchyModuleEdge | null; } +export interface DeleteProfilesModulePayload { + clientMutationId?: string | null; + /** The `ProfilesModule` that was deleted by this mutation. */ + profilesModule?: ProfilesModule | null; + profilesModuleEdge?: ProfilesModuleEdge | null; +} +export interface DeleteOrgMembershipPayload { + clientMutationId?: string | null; + /** The `OrgMembership` that was deleted by this mutation. */ + orgMembership?: OrgMembership | null; + orgMembershipEdge?: OrgMembershipEdge | null; +} export interface DeleteForeignKeyConstraintPayload { clientMutationId?: string | null; /** The `ForeignKeyConstraint` that was deleted by this mutation. */ foreignKeyConstraint?: ForeignKeyConstraint | null; foreignKeyConstraintEdge?: ForeignKeyConstraintEdge | null; } -export interface DeleteTablePayload { - clientMutationId?: string | null; - /** The `Table` that was deleted by this mutation. */ - table?: Table | null; - tableEdge?: TableEdge | null; -} export interface DeleteStorageModulePayload { clientMutationId?: string | null; /** The `StorageModule` that was deleted by this mutation. */ storageModule?: StorageModule | null; storageModuleEdge?: StorageModuleEdge | null; } +export interface DeleteTablePayload { + clientMutationId?: string | null; + /** The `Table` that was deleted by this mutation. */ + table?: Table | null; + tableEdge?: TableEdge | null; +} export interface DeleteEntityTypeProvisionPayload { clientMutationId?: string | null; /** The `EntityTypeProvision` that was deleted by this mutation. */ @@ -19159,16 +20460,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; -} -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; } export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -19213,12 +20504,6 @@ export interface GetAllEdge { /** The `GetAllRecord` at the end of the edge. */ node?: GetAllRecord | null; } -/** A `Object` edge in the connection. */ -export interface ObjectEdge { - cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; -} /** A `AppPermission` edge in the connection. */ export interface AppPermissionEdge { cursor?: string | null; @@ -19231,6 +20516,12 @@ export interface OrgPermissionEdge { /** The `OrgPermission` at the end of the edge. */ node?: OrgPermission | null; } +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { cursor?: string | null; @@ -19243,6 +20534,12 @@ export interface DefaultIdsModuleEdge { /** The `DefaultIdsModule` at the end of the edge. */ node?: DefaultIdsModule | null; } +/** A `RoleType` edge in the connection. */ +export interface RoleTypeEdge { + cursor?: string | null; + /** The `RoleType` at the end of the edge. */ + node?: RoleType | null; +} /** A `ViewTable` edge in the connection. */ export interface ViewTableEdge { cursor?: string | null; @@ -19255,23 +20552,17 @@ export interface ApiSchemaEdge { /** The `ApiSchema` at the end of the edge. */ node?: ApiSchema | null; } -/** A `SiteTheme` edge in the connection. */ -export interface SiteThemeEdge { - cursor?: string | null; - /** The `SiteTheme` at the end of the edge. */ - node?: SiteTheme | null; -} /** A `OrgMember` edge in the connection. */ export interface OrgMemberEdge { cursor?: string | null; /** The `OrgMember` at the end of the edge. */ node?: OrgMember | null; } -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `SiteTheme` edge in the connection. */ +export interface SiteThemeEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `SiteTheme` at the end of the edge. */ + node?: SiteTheme | null; } /** A `IdentityProvider` edge in the connection. */ export interface IdentityProviderEdge { @@ -19291,18 +20582,6 @@ export interface StoreEdge { /** The `Store` at the end of the edge. */ node?: Store | null; } -/** A `ApiModule` edge in the connection. */ -export interface ApiModuleEdge { - cursor?: string | null; - /** The `ApiModule` at the end of the edge. */ - node?: ApiModule | null; -} -/** A `SiteModule` edge in the connection. */ -export interface SiteModuleEdge { - cursor?: string | null; - /** The `SiteModule` at the end of the edge. */ - node?: SiteModule | null; -} /** A `EncryptedSecretsModule` edge in the connection. */ export interface EncryptedSecretsModuleEdge { cursor?: string | null; @@ -19321,17 +20600,23 @@ export interface SecretsModuleEdge { /** The `SecretsModule` at the end of the edge. */ node?: SecretsModule | null; } -/** A `RoleType` edge in the connection. */ -export interface RoleTypeEdge { +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { cursor?: string | null; - /** The `RoleType` at the end of the edge. */ - node?: RoleType | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; } -/** A `OrgPermissionDefault` edge in the connection. */ -export interface OrgPermissionDefaultEdge { +/** A `ApiModule` edge in the connection. */ +export interface ApiModuleEdge { cursor?: string | null; - /** The `OrgPermissionDefault` at the end of the edge. */ - node?: OrgPermissionDefault | null; + /** The `ApiModule` at the end of the edge. */ + node?: ApiModule | null; +} +/** A `SiteModule` edge in the connection. */ +export interface SiteModuleEdge { + cursor?: string | null; + /** The `SiteModule` at the end of the edge. */ + node?: SiteModule | null; } /** A `SchemaGrant` edge in the connection. */ export interface SchemaGrantEdge { @@ -19375,23 +20660,35 @@ export interface AppOwnerGrantEdge { /** The `AppOwnerGrant` at the end of the edge. */ node?: AppOwnerGrant | null; } -/** A `MigrateFile` edge in the connection. */ -export interface MigrateFileEdge { +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { cursor?: string | null; - /** The `MigrateFile` at the end of the edge. */ - node?: MigrateFile | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; } -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; } -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `OrgPermissionDefault` edge in the connection. */ +export interface OrgPermissionDefaultEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `OrgPermissionDefault` at the end of the edge. */ + node?: OrgPermissionDefault | null; +} +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +/** A `MigrateFile` edge in the connection. */ +export interface MigrateFileEdge { + cursor?: string | null; + /** The `MigrateFile` at the end of the edge. */ + node?: MigrateFile | null; } /** A `DefaultPrivilege` edge in the connection. */ export interface DefaultPrivilegeEdge { @@ -19459,6 +20756,24 @@ export interface OrgOwnerGrantEdge { /** The `OrgOwnerGrant` at the end of the edge. */ node?: OrgOwnerGrant | null; } +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { + cursor?: string | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; +} +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { + cursor?: string | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; +} +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} /** A `UserConnectedAccount` edge in the connection. */ export interface UserConnectedAccountEdge { cursor?: string | null; @@ -19483,23 +20798,11 @@ export interface CryptoAddressEdge { /** The `CryptoAddress` at the end of the edge. */ node?: CryptoAddress | null; } -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -/** A `AppAchievement` edge in the connection. */ -export interface AppAchievementEdge { - cursor?: string | null; - /** The `AppAchievement` at the end of the edge. */ - node?: AppAchievement | null; -} -/** A `AppStep` edge in the connection. */ -export interface AppStepEdge { +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { cursor?: string | null; - /** The `AppStep` at the end of the edge. */ - node?: AppStep | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; } /** A `SiteMetadatum` edge in the connection. */ export interface SiteMetadatumEdge { @@ -19507,24 +20810,6 @@ export interface SiteMetadatumEdge { /** The `SiteMetadatum` at the end of the edge. */ node?: SiteMetadatum | null; } -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { - cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; -} -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { - cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; -} -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { - cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; -} /** A `FullTextSearch` edge in the connection. */ export interface FullTextSearchEdge { cursor?: string | null; @@ -19561,17 +20846,29 @@ export interface PhoneNumberEdge { /** The `PhoneNumber` at the end of the edge. */ node?: PhoneNumber | null; } -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { +/** A `AppClaimedInvite` edge in the connection. */ +export interface AppClaimedInviteEdge { cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; + /** The `AppClaimedInvite` at the end of the edge. */ + node?: AppClaimedInvite | null; } -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; +} +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +/** A `AuditLog` edge in the connection. */ +export interface AuditLogEdge { + cursor?: string | null; + /** The `AuditLog` at the end of the edge. */ + node?: AuditLog | null; } /** A `Domain` edge in the connection. */ export interface DomainEdge { @@ -19579,6 +20876,24 @@ export interface DomainEdge { /** The `Domain` at the end of the edge. */ node?: Domain | null; } +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { + cursor?: string | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; +} +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { + cursor?: string | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; +} +/** A `Email` edge in the connection. */ +export interface EmailEdge { + cursor?: string | null; + /** The `Email` at the end of the edge. */ + node?: Email | null; +} /** A `AppGrant` edge in the connection. */ export interface AppGrantEdge { cursor?: string | null; @@ -19591,17 +20906,35 @@ export interface OrgClaimedInviteEdge { /** The `OrgClaimedInvite` at the end of the edge. */ node?: OrgClaimedInvite | null; } +/** A `AppLimitEvent` edge in the connection. */ +export interface AppLimitEventEdge { + cursor?: string | null; + /** The `AppLimitEvent` at the end of the edge. */ + node?: AppLimitEvent | null; +} +/** A `OrgLimitEvent` edge in the connection. */ +export interface OrgLimitEventEdge { + cursor?: string | null; + /** The `OrgLimitEvent` at the end of the edge. */ + node?: OrgLimitEvent | null; +} /** A `OrgChartEdge` edge in the connection. */ export interface OrgChartEdgeEdge { cursor?: string | null; /** The `OrgChartEdge` at the end of the edge. */ node?: OrgChartEdge | null; } -/** A `OrgGrant` edge in the connection. */ -export interface OrgGrantEdge { +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { cursor?: string | null; - /** The `OrgGrant` at the end of the edge. */ - node?: OrgGrant | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; } /** A `BlueprintConstruction` edge in the connection. */ export interface BlueprintConstructionEdge { @@ -19609,6 +20942,12 @@ export interface BlueprintConstructionEdge { /** The `BlueprintConstruction` at the end of the edge. */ node?: BlueprintConstruction | null; } +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} /** A `RlsModule` edge in the connection. */ export interface RlsModuleEdge { cursor?: string | null; @@ -19621,11 +20960,11 @@ export interface SessionsModuleEdge { /** The `SessionsModule` at the end of the edge. */ node?: SessionsModule | null; } -/** A `AuditLog` edge in the connection. */ -export interface AuditLogEdge { +/** A `OrgGrant` edge in the connection. */ +export interface OrgGrantEdge { cursor?: string | null; - /** The `AuditLog` at the end of the edge. */ - node?: AuditLog | null; + /** The `OrgGrant` at the end of the edge. */ + node?: OrgGrant | null; } /** A `AppLevel` edge in the connection. */ export interface AppLevelEdge { @@ -19633,6 +20972,12 @@ export interface AppLevelEdge { /** The `AppLevel` at the end of the edge. */ node?: AppLevel | null; } +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { + cursor?: string | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; +} /** A `Blueprint` edge in the connection. */ export interface BlueprintEdge { cursor?: string | null; @@ -19645,12 +20990,6 @@ export interface DenormalizedTableFieldEdge { /** The `DenormalizedTableField` at the end of the edge. */ node?: DenormalizedTableField | null; } -/** A `Email` edge in the connection. */ -export interface EmailEdge { - cursor?: string | null; - /** The `Email` at the end of the edge. */ - node?: Email | null; -} /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -19663,24 +21002,18 @@ export interface SqlActionEdge { /** The `SqlAction` at the end of the edge. */ node?: SqlAction | null; } -/** A `SecureTableProvision` edge in the connection. */ -export interface SecureTableProvisionEdge { - cursor?: string | null; - /** The `SecureTableProvision` at the end of the edge. */ - node?: SecureTableProvision | null; -} -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { - cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; -} /** A `DatabaseTransfer` edge in the connection. */ export interface DatabaseTransferEdge { cursor?: string | null; /** The `DatabaseTransfer` at the end of the edge. */ node?: DatabaseTransfer | null; } +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { + cursor?: string | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; +} /** A `CryptoAuthModule` edge in the connection. */ export interface CryptoAuthModuleEdge { cursor?: string | null; @@ -19699,6 +21032,18 @@ export interface InvitesModuleEdge { /** The `InvitesModule` at the end of the edge. */ node?: InvitesModule | null; } +/** A `SecureTableProvision` edge in the connection. */ +export interface SecureTableProvisionEdge { + cursor?: string | null; + /** The `SecureTableProvision` at the end of the edge. */ + node?: SecureTableProvision | null; +} +/** A `AstMigration` edge in the connection. */ +export interface AstMigrationEdge { + cursor?: string | null; + /** The `AstMigration` at the end of the edge. */ + node?: AstMigration | null; +} /** A `Enum` edge in the connection. */ export interface EnumEdge { cursor?: string | null; @@ -19723,6 +21068,18 @@ export interface WebauthnAuthModuleEdge { /** The `WebauthnAuthModule` at the end of the edge. */ node?: WebauthnAuthModule | null; } +/** A `AppInvite` edge in the connection. */ +export interface AppInviteEdge { + cursor?: string | null; + /** The `AppInvite` at the end of the edge. */ + node?: AppInvite | null; +} +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} /** A `App` edge in the connection. */ export interface AppEdge { cursor?: string | null; @@ -19735,11 +21092,23 @@ export interface SiteEdge { /** The `Site` at the end of the edge. */ node?: Site | null; } -/** A `AstMigration` edge in the connection. */ -export interface AstMigrationEdge { +/** A `NotificationsModule` edge in the connection. */ +export interface NotificationsModuleEdge { cursor?: string | null; - /** The `AstMigration` at the end of the edge. */ - node?: AstMigration | null; + /** The `NotificationsModule` at the end of the edge. */ + node?: NotificationsModule | null; +} +/** A `PermissionsModule` edge in the connection. */ +export interface PermissionsModuleEdge { + cursor?: string | null; + /** The `PermissionsModule` at the end of the edge. */ + node?: PermissionsModule | null; +} +/** A `WebauthnCredential` edge in the connection. */ +export interface WebauthnCredentialEdge { + cursor?: string | null; + /** The `WebauthnCredential` at the end of the edge. */ + node?: WebauthnCredential | null; } /** A `PrimaryKeyConstraint` edge in the connection. */ export interface PrimaryKeyConstraintEdge { @@ -19777,47 +21146,17 @@ export interface PolicyEdge { /** The `Policy` at the end of the edge. */ node?: Policy | null; } -/** A `NotificationsModule` edge in the connection. */ -export interface NotificationsModuleEdge { - cursor?: string | null; - /** The `NotificationsModule` at the end of the edge. */ - node?: NotificationsModule | null; -} -/** A `PermissionsModule` edge in the connection. */ -export interface PermissionsModuleEdge { - cursor?: string | null; - /** The `PermissionsModule` at the end of the edge. */ - node?: PermissionsModule | null; -} -/** A `AppInvite` edge in the connection. */ -export interface AppInviteEdge { - cursor?: string | null; - /** The `AppInvite` at the end of the edge. */ - node?: AppInvite | null; -} /** A `EmbeddingChunk` edge in the connection. */ export interface EmbeddingChunkEdge { cursor?: string | null; /** The `EmbeddingChunk` at the end of the edge. */ node?: EmbeddingChunk | null; } -/** A `Schema` edge in the connection. */ -export interface SchemaEdge { - cursor?: string | null; - /** The `Schema` at the end of the edge. */ - node?: Schema | null; -} -/** A `LimitsModule` edge in the connection. */ -export interface LimitsModuleEdge { - cursor?: string | null; - /** The `LimitsModule` at the end of the edge. */ - node?: LimitsModule | null; -} -/** A `ProfilesModule` edge in the connection. */ -export interface ProfilesModuleEdge { +/** A `OrgInvite` edge in the connection. */ +export interface OrgInviteEdge { cursor?: string | null; - /** The `ProfilesModule` at the end of the edge. */ - node?: ProfilesModule | null; + /** The `OrgInvite` at the end of the edge. */ + node?: OrgInvite | null; } /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { @@ -19825,29 +21164,23 @@ export interface AppMembershipEdge { /** The `AppMembership` at the end of the edge. */ node?: AppMembership | null; } +/** A `Schema` edge in the connection. */ +export interface SchemaEdge { + cursor?: string | null; + /** The `Schema` at the end of the edge. */ + node?: Schema | null; +} /** A `Index` edge in the connection. */ export interface IndexEdge { cursor?: string | null; /** The `Index` at the end of the edge. */ node?: Index | null; } -/** A `WebauthnCredential` edge in the connection. */ -export interface WebauthnCredentialEdge { - cursor?: string | null; - /** The `WebauthnCredential` at the end of the edge. */ - node?: WebauthnCredential | null; -} -/** A `OrgInvite` edge in the connection. */ -export interface OrgInviteEdge { - cursor?: string | null; - /** The `OrgInvite` at the end of the edge. */ - node?: OrgInvite | null; -} -/** A `OrgMembership` edge in the connection. */ -export interface OrgMembershipEdge { +/** A `LimitsModule` edge in the connection. */ +export interface LimitsModuleEdge { cursor?: string | null; - /** The `OrgMembership` at the end of the edge. */ - node?: OrgMembership | null; + /** The `LimitsModule` at the end of the edge. */ + node?: LimitsModule | null; } /** A `BlueprintTemplate` edge in the connection. */ export interface BlueprintTemplateEdge { @@ -19861,24 +21194,36 @@ export interface HierarchyModuleEdge { /** The `HierarchyModule` at the end of the edge. */ node?: HierarchyModule | null; } +/** A `ProfilesModule` edge in the connection. */ +export interface ProfilesModuleEdge { + cursor?: string | null; + /** The `ProfilesModule` at the end of the edge. */ + node?: ProfilesModule | null; +} +/** A `OrgMembership` edge in the connection. */ +export interface OrgMembershipEdge { + cursor?: string | null; + /** The `OrgMembership` at the end of the edge. */ + node?: OrgMembership | null; +} /** A `ForeignKeyConstraint` edge in the connection. */ export interface ForeignKeyConstraintEdge { cursor?: string | null; /** The `ForeignKeyConstraint` at the end of the edge. */ node?: ForeignKeyConstraint | null; } -/** A `Table` edge in the connection. */ -export interface TableEdge { - cursor?: string | null; - /** The `Table` at the end of the edge. */ - node?: Table | null; -} /** A `StorageModule` edge in the connection. */ export interface StorageModuleEdge { cursor?: string | null; /** The `StorageModule` at the end of the edge. */ node?: StorageModule | null; } +/** A `Table` edge in the connection. */ +export interface TableEdge { + cursor?: string | null; + /** The `Table` at the end of the edge. */ + node?: Table | null; +} /** A `EntityTypeProvision` edge in the connection. */ export interface EntityTypeProvisionEdge { cursor?: string | null; diff --git a/sdk/constructive-react/src/public/types.ts b/sdk/constructive-react/src/public/types.ts index 1dc3c17b8..46c1d3c68 100644 --- a/sdk/constructive-react/src/public/types.ts +++ b/sdk/constructive-react/src/public/types.ts @@ -24,16 +24,6 @@ export interface GetAllRecord { path: string[] | null; data: unknown | null; } -export interface Object { - hashUuid: string | null; - id: string | null; - databaseId: string | null; - kids: string[] | null; - ktree: string[] | null; - data: unknown | null; - frzn: boolean | null; - createdAt: string | null; -} export interface AppPermission { id: string | null; name: string | null; @@ -48,6 +38,16 @@ export interface OrgPermission { bitstr: string | null; description: string | null; } +export interface Object { + hashUuid: string | null; + id: string | null; + databaseId: string | null; + kids: string[] | null; + ktree: string[] | null; + data: unknown | null; + frzn: boolean | null; + createdAt: string | null; +} export interface AppLevelRequirement { id: string | null; name: string | null; @@ -664,6 +664,7 @@ export interface LimitsModule { limitDecrementTrigger: string | null; limitUpdateTrigger: string | null; limitCheckFunction: string | null; + aggregateTableId: string | null; prefix: string | null; membershipType: number | null; entityTableId: string | null; @@ -753,6 +754,8 @@ export interface ProfilesModule { profileGrantsTableName: string | null; profileDefinitionGrantsTableId: string | null; profileDefinitionGrantsTableName: string | null; + profileTemplatesTableId: string | null; + profileTemplatesTableName: string | null; membershipType: number | null; entityTableId: string | null; actorTableId: string | null; @@ -873,10 +876,8 @@ export interface StorageModule { privateSchemaId: string | null; bucketsTableId: string | null; filesTableId: string | null; - uploadRequestsTableId: string | null; bucketsTableName: string | null; filesTableName: string | null; - uploadRequestsTableName: string | null; membershipType: number | null; policies: unknown | null; skipDefaultPolicyTables: string[] | null; @@ -885,6 +886,7 @@ export interface StorageModule { publicUrlPrefix: string | null; provider: string | null; allowedOrigins: string[] | null; + restrictReads: boolean | null; uploadUrlExpirySeconds: number | null; downloadUrlExpirySeconds: number | null; defaultMaxFileSize: string | null; @@ -1101,17 +1103,33 @@ export interface AppLimit { id: string | null; name: string | null; actorId: string | null; - num: number | null; - max: number | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; } export interface OrgLimit { id: string | null; name: string | null; actorId: string | null; - num: number | null; - max: number | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; entityId: string | null; } +export interface OrgLimitAggregate { + id: string | null; + name: string | null; + entityId: string | null; + num: string | null; + max: string | null; + softMax: string | null; + windowStart: string | null; + windowDuration: string | null; +} export interface AppStep { id: string | null; actorId: string | null; @@ -1194,6 +1212,7 @@ export interface AppInvite { inviteCount: number | null; multiple: boolean | null; data: unknown | null; + profileId: string | null; expiresAt: string | null; createdAt: string | null; updatedAt: string | null; @@ -1217,6 +1236,7 @@ export interface OrgInvite { inviteCount: number | null; multiple: boolean | null; data: unknown | null; + profileId: string | null; expiresAt: string | null; createdAt: string | null; updatedAt: string | null; @@ -1241,9 +1261,43 @@ export interface AuditLog { success: boolean | null; createdAt: string | null; } -export interface AppPermissionDefault { +export interface AgentThread { + title: string | null; + mode: string | null; + model: string | null; + systemPrompt: string | null; id: string | null; - permissions: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + entityId: string | null; + status: string | null; +} +export interface AgentMessage { + threadId: string | null; + entityId: string | null; + authorRole: string | null; + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + parts: unknown | null; +} +export interface AgentTask { + threadId: string | null; + entityId: string | null; + description: string | null; + source: string | null; + error: string | null; + id: string | null; + createdAt: string | null; + updatedAt: string | null; + ownerId: string | null; + status: string | null; +} +export interface RoleType { + id: number | null; + name: string | null; } export interface IdentityProvider { slug: string | null; @@ -1266,25 +1320,23 @@ export interface Store { hash: string | null; createdAt: string | null; } -export interface RoleType { +export interface AppPermissionDefault { + id: string | null; + permissions: string | null; +} +export interface MembershipType { id: number | null; name: string | null; + description: string | null; + prefix: string | null; + parentMembershipType: number | null; + hasUsersTableEntry: boolean | null; } export interface MigrateFile { id: string | null; databaseId: string | null; upload: ConstructiveInternalTypeUpload | null; } -export interface AppLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} -export interface OrgLimitDefault { - id: string | null; - name: string | null; - max: number | null; -} export interface DevicesModule { id: string | null; databaseId: string | null; @@ -1294,6 +1346,27 @@ export interface DevicesModule { userDevicesTable: string | null; deviceSettingsTable: string | null; } +export interface NodeTypeRegistry { + name: string | null; + slug: string | null; + category: string | null; + displayName: string | null; + description: string | null; + parameterSchema: unknown | null; + tags: string[] | null; +} +export interface AppLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} +export interface OrgLimitDefault { + id: string | null; + name: string | null; + max: string | null; + softMax: string | null; +} export interface UserConnectedAccount { id: string | null; ownerId: string | null; @@ -1304,24 +1377,6 @@ export interface UserConnectedAccount { createdAt: string | null; updatedAt: string | null; } -export interface AppMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - isVerified: boolean | null; -} -export interface OrgMembershipDefault { - id: string | null; - createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - isApproved: boolean | null; - entityId: string | null; -} export interface Commit { id: string | null; message: string | null; @@ -1344,13 +1399,58 @@ export interface RateLimitsModule { ipRateLimitsTable: string | null; rateLimitsTable: string | null; } -export interface MembershipType { - id: number | null; +export interface AppMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + isVerified: boolean | null; +} +export interface OrgMembershipDefault { + id: string | null; + createdAt: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + isApproved: boolean | null; + entityId: string | null; +} +export interface AppLimitEvent { name: string | null; - description: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface OrgLimitEvent { + name: string | null; + actorId: string | null; + entityId: string | null; + eventType: string | null; + delta: string | null; + numBefore: string | null; + numAfter: string | null; + maxAtEvent: string | null; + reason: string | null; +} +export interface PlansModule { + id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + plansTableId: string | null; + plansTableName: string | null; + planLimitsTableId: string | null; + planLimitsTableName: string | null; + applyPlanFunction: string | null; + applyPlanAggregateFunction: string | null; prefix: string | null; - parentMembershipType: number | null; - hasUsersTableEntry: boolean | null; } export interface RlsModule { id: string | null; @@ -1380,19 +1480,36 @@ export interface SqlAction { actionId: string | null; actorId: string | null; } -export interface OrgMembershipSetting { +export interface BillingModule { id: string | null; + databaseId: string | null; + schemaId: string | null; + privateSchemaId: string | null; + metersTableId: string | null; + metersTableName: string | null; + planSubscriptionsTableId: string | null; + planSubscriptionsTableName: string | null; + ledgerTableId: string | null; + ledgerTableName: string | null; + balancesTableId: string | null; + balancesTableName: string | null; + recordUsageFunction: string | null; + prefix: string | null; +} +export interface AstMigration { + id: number | null; + databaseId: string | null; + name: string | null; + requires: string[] | null; + payload: unknown | null; + deploys: string | null; + deploy: unknown | null; + revert: unknown | null; + verify: unknown | null; createdAt: string | null; - updatedAt: string | null; - createdBy: string | null; - updatedBy: string | null; - entityId: string | null; - deleteMemberCascadeChildren: boolean | null; - createChildCascadeOwners: boolean | null; - createChildCascadeAdmins: boolean | null; - createChildCascadeMembers: boolean | null; - allowExternalMembers: boolean | null; - populateMemberEmail: boolean | null; + action: string | null; + actionId: string | null; + actorId: string | null; } export interface User { id: string | null; @@ -1407,20 +1524,21 @@ export interface User { displayNameTrgmSimilarity: number | null; searchScore: number | null; } -export interface AstMigration { - id: number | null; - databaseId: string | null; - name: string | null; - requires: string[] | null; - payload: unknown | null; - deploys: string | null; - deploy: unknown | null; - revert: unknown | null; - verify: unknown | null; +export interface OrgMembershipSetting { + id: string | null; createdAt: string | null; - action: string | null; - actionId: string | null; - actorId: string | null; + updatedAt: string | null; + createdBy: string | null; + updatedBy: string | null; + entityId: string | null; + deleteMemberCascadeChildren: boolean | null; + createChildCascadeOwners: boolean | null; + createChildCascadeAdmins: boolean | null; + createChildCascadeMembers: boolean | null; + allowExternalMembers: boolean | null; + inviteProfileAssignmentMode: string | null; + populateMemberEmail: boolean | null; + limitAllocationMode: string | null; } export interface AppMembership { id: string | null; @@ -1433,7 +1551,6 @@ export interface AppMembership { isDisabled: boolean | null; isVerified: boolean | null; isActive: boolean | null; - isExternal: boolean | null; isOwner: boolean | null; isAdmin: boolean | null; permissions: string | null; diff --git a/sdk/constructive-sdk/schemas/admin.graphql b/sdk/constructive-sdk/schemas/admin.graphql index 1c41f4834..84e4cfc5b 100644 --- a/sdk/constructive-sdk/schemas/admin.graphql +++ b/sdk/constructive-sdk/schemas/admin.graphql @@ -602,25 +602,701 @@ enum OrgPermissionDefaultOrderBy { ENTITY_ID_DESC } +""" +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [AppPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [AppPermissionFilter!] + + """Negates the expression.""" + not: AppPermissionFilter +} + +""" +A filter to be used against String fields. All fields are combined with a logical ‘and.’ +""" +input StringFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: String + + """Not equal to the specified value.""" + notEqualTo: String + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: String + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: String + + """Included in the specified list.""" + in: [String!] + + """Not included in the specified list.""" + notIn: [String!] + + """Less than the specified value.""" + lessThan: String + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: String + + """Greater than the specified value.""" + greaterThan: String + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: String + + """Contains the specified string (case-sensitive).""" + includes: String + + """Does not contain the specified string (case-sensitive).""" + notIncludes: String + + """Contains the specified string (case-insensitive).""" + includesInsensitive: String + + """Does not contain the specified string (case-insensitive).""" + notIncludesInsensitive: String + + """Starts with the specified string (case-sensitive).""" + startsWith: String + + """Does not start with the specified string (case-sensitive).""" + notStartsWith: String + + """Starts with the specified string (case-insensitive).""" + startsWithInsensitive: String + + """Does not start with the specified string (case-insensitive).""" + notStartsWithInsensitive: String + + """Ends with the specified string (case-sensitive).""" + endsWith: String + + """Does not end with the specified string (case-sensitive).""" + notEndsWith: String + + """Ends with the specified string (case-insensitive).""" + endsWithInsensitive: String + + """Does not end with the specified string (case-insensitive).""" + notEndsWithInsensitive: String + + """ + Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + like: String + + """ + Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLike: String + + """ + Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + likeInsensitive: String + + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: String + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: String + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: String + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: String + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: String + + """Included in the specified list (case-insensitive).""" + inInsensitive: [String!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [String!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: String + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: String + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: String + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: String +} + +""" +A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +""" +input IntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Int + + """Not equal to the specified value.""" + notEqualTo: Int + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Int + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Int + + """Included in the specified list.""" + in: [Int!] + + """Not included in the specified list.""" + notIn: [Int!] + + """Less than the specified value.""" + lessThan: Int + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Int + + """Greater than the specified value.""" + greaterThan: Int + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Int +} + +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + +""" +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [OrgPermissionFilter!] + + """Negates the expression.""" + not: OrgPermissionFilter +} + +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + """A connection to a list of `AppAdminGrant` values.""" type AppAdminGrantConnection { """A list of `AppAdminGrant` objects.""" nodes: [AppAdminGrant]! """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + """ + edges: [AppAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { + id: UUID! + + """True to grant admin, false to revoke admin""" + isGrant: Boolean! + + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant +} + +""" +A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ +""" +input AppAdminGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppAdminGrantFilter!] + + """Checks for any expressions in this list.""" + or: [AppAdminGrantFilter!] + + """Negates the expression.""" + not: AppAdminGrantFilter +} + +""" +A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ +""" +input DatetimeFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: Datetime + + """Not equal to the specified value.""" + notEqualTo: Datetime + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: Datetime + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: Datetime + + """Included in the specified list.""" + in: [Datetime!] + + """Not included in the specified list.""" + notIn: [Datetime!] + + """Less than the specified value.""" + lessThan: Datetime + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: Datetime + + """Greater than the specified value.""" + greaterThan: Datetime + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: Datetime +} + +"""Methods to use when ordering `AppAdminGrant`.""" +enum AppAdminGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! + + """ + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + """ + edges: [AppOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +"""Records of ownership transfers and grants between members""" +type AppOwnerGrant { + id: UUID! + + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! + + """The member receiving or losing the ownership grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant +} + +""" +A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input AppOwnerGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppOwnerGrantFilter!] + + """Checks for any expressions in this list.""" + or: [AppOwnerGrantFilter!] + + """Negates the expression.""" + not: AppOwnerGrantFilter +} + +"""Methods to use when ordering `AppOwnerGrant`.""" +enum AppOwnerGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `AppAchievement` values.""" +type AppAchievementConnection { + """A list of `AppAchievement` objects.""" + nodes: [AppAchievement]! + + """ + A list of edges which contains the `AppAchievement` and cursor to aid in pagination. + """ + edges: [AppAchievementEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAchievement` you could get from the connection.""" + totalCount: Int! +} + +""" +Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +""" +type AppAchievement { + id: UUID! + actorId: UUID! + + """Name identifier of the level requirement being tracked""" + name: String! + + """Cumulative count of completed steps toward this requirement""" + count: Int! + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppAchievement` edge in the connection.""" +type AppAchievementEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAchievement` at the end of the edge.""" + node: AppAchievement +} + +""" +A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ +""" +input AppAchievementFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `count` field.""" + count: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppAchievementFilter!] + + """Checks for any expressions in this list.""" + or: [AppAchievementFilter!] + + """Negates the expression.""" + not: AppAchievementFilter +} + +"""Methods to use when ordering `AppAchievement`.""" +enum AppAchievementOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NAME_ASC + NAME_DESC + COUNT_ASC + COUNT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `AppStep` values.""" +type AppStepConnection { + """A list of `AppStep` objects.""" + nodes: [AppStep]! + + """ + A list of edges which contains the `AppStep` and cursor to aid in pagination. + """ + edges: [AppStepEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppStep` you could get from the connection.""" + totalCount: Int! +} + +""" +Log of individual user actions toward level requirements; every single step ever taken is recorded here +""" +type AppStep { + id: UUID! + actorId: UUID! + + """Name identifier of the level requirement this step fulfills""" + name: String! + + """Number of units completed in this step action""" + count: Int! + createdAt: Datetime + updatedAt: Datetime +} + +"""A `AppStep` edge in the connection.""" +type AppStepEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppStep` at the end of the edge.""" + node: AppStep +} + +""" +A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ +""" +input AppStepFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `count` field.""" + count: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [AppStepFilter!] + + """Checks for any expressions in this list.""" + or: [AppStepFilter!] + + """Negates the expression.""" + not: AppStepFilter +} + +"""Methods to use when ordering `AppStep`.""" +enum AppStepOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NAME_ASC + NAME_DESC + COUNT_ASC + COUNT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgAdminGrant` values.""" +type OrgAdminGrantConnection { + """A list of `OrgAdminGrant` objects.""" + nodes: [OrgAdminGrant]! + + """ + A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. """ - edges: [AppAdminGrantEdge]! + edges: [OrgAdminGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppAdminGrant` you could get from the connection.""" + """The count of *all* `OrgAdminGrant` you could get from the connection.""" totalCount: Int! } """Records of admin role grants and revocations between members""" -type AppAdminGrant { +type OrgAdminGrant { id: UUID! """True to grant admin, false to revoke admin""" @@ -628,24 +1304,27 @@ type AppAdminGrant { """The member receiving or losing the admin grant""" actorId: UUID! + + """The entity (org or group) this admin grant applies to""" + entityId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { +"""A `OrgAdminGrant` edge in the connection.""" +type OrgAdminGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant + """The `OrgAdminGrant` at the end of the edge.""" + node: OrgAdminGrant } """ -A filter to be used against `AppAdminGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppAdminGrantFilter { +input OrgAdminGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -655,6 +1334,9 @@ input AppAdminGrantFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + """Filter by the object’s `grantorId` field.""" grantorId: UUIDFilter @@ -665,59 +1347,116 @@ input AppAdminGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppAdminGrantFilter!] + and: [OrgAdminGrantFilter!] """Checks for any expressions in this list.""" - or: [AppAdminGrantFilter!] + or: [OrgAdminGrantFilter!] """Negates the expression.""" - not: AppAdminGrantFilter + not: OrgAdminGrantFilter } -""" -A filter to be used against Datetime fields. All fields are combined with a logical ‘and.’ -""" -input DatetimeFilter { +"""Methods to use when ordering `OrgAdminGrant`.""" +enum OrgAdminGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgOwnerGrant` values.""" +type OrgOwnerGrantConnection { + """A list of `OrgOwnerGrant` objects.""" + nodes: [OrgOwnerGrant]! + """ - Is null (if `true` is specified) or is not null (if `false` is specified). + A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. """ - isNull: Boolean + edges: [OrgOwnerGrantEdge]! - """Equal to the specified value.""" - equalTo: Datetime + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Not equal to the specified value.""" - notEqualTo: Datetime + """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + totalCount: Int! +} - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: Datetime +"""Records of ownership transfers and grants between members""" +type OrgOwnerGrant { + id: UUID! - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Datetime + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! - """Included in the specified list.""" - in: [Datetime!] + """The member receiving or losing the ownership grant""" + actorId: UUID! - """Not included in the specified list.""" - notIn: [Datetime!] + """The entity (org or group) this ownership grant applies to""" + entityId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime +} - """Less than the specified value.""" - lessThan: Datetime +"""A `OrgOwnerGrant` edge in the connection.""" +type OrgOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor - """Less than or equal to the specified value.""" - lessThanOrEqualTo: Datetime + """The `OrgOwnerGrant` at the end of the edge.""" + node: OrgOwnerGrant +} - """Greater than the specified value.""" - greaterThan: Datetime +""" +A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +""" +input OrgOwnerGrantFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Datetime + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [OrgOwnerGrantFilter!] + + """Checks for any expressions in this list.""" + or: [OrgOwnerGrantFilter!] + + """Negates the expression.""" + not: OrgOwnerGrantFilter } -"""Methods to use when ordering `AppAdminGrant`.""" -enum AppAdminGrantOrderBy { +"""Methods to use when ordering `OrgOwnerGrant`.""" +enum OrgOwnerGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -727,6 +1466,8 @@ enum AppAdminGrantOrderBy { IS_GRANT_DESC ACTOR_ID_ASC ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC CREATED_AT_ASC @@ -735,95 +1476,112 @@ enum AppAdminGrantOrderBy { UPDATED_AT_DESC } -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `MembershipType` and cursor to aid in pagination. """ - edges: [AppOwnerGrantEdge]! + edges: [MembershipTypeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppOwnerGrant` you could get from the connection.""" + """The count of *all* `MembershipType` you could get from the connection.""" totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { - id: UUID! +""" +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +""" +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! + """Human-readable name of the membership type""" + name: String! - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Description of what this membership type represents""" + description: String! + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! } -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant + """The `MembershipType` at the end of the edge.""" + node: MembershipType } """ -A filter to be used against `AppOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ """ -input AppOwnerGrantFilter { +input MembershipTypeFilter { """Filter by the object’s `id` field.""" - id: UUIDFilter + id: IntFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `prefix` field.""" + prefix: StringFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter """Checks for all expressions in this list.""" - and: [AppOwnerGrantFilter!] + and: [MembershipTypeFilter!] """Checks for any expressions in this list.""" - or: [AppOwnerGrantFilter!] + or: [MembershipTypeFilter!] """Negates the expression.""" - not: AppOwnerGrantFilter + not: MembershipTypeFilter } -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + NAME_ASC + NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } """A connection to a list of `AppLimitDefault` values.""" @@ -855,9 +1613,19 @@ type AppLimitDefault { name: String! """Default maximum usage allowed for this limit""" - max: Int + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } +""" +A signed eight-byte integer. The upper big integer values are greater than the +max value for a JavaScript number. Therefore all big integers will be output as +strings and not numbers. +""" +scalar BigInt + """A `AppLimitDefault` edge in the connection.""" type AppLimitDefaultEdge { """A cursor for use in pagination.""" @@ -878,7 +1646,10 @@ input AppLimitDefaultFilter { name: StringFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter """Checks for all expressions in this list.""" and: [AppLimitDefaultFilter!] @@ -891,177 +1662,45 @@ input AppLimitDefaultFilter { } """ -A filter to be used against String fields. All fields are combined with a logical ‘and.’ -""" -input StringFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: String - - """Not equal to the specified value.""" - notEqualTo: String - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: String - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: String - - """Included in the specified list.""" - in: [String!] - - """Not included in the specified list.""" - notIn: [String!] - - """Less than the specified value.""" - lessThan: String - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: String - - """Greater than the specified value.""" - greaterThan: String - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: String - - """Contains the specified string (case-sensitive).""" - includes: String - - """Does not contain the specified string (case-sensitive).""" - notIncludes: String - - """Contains the specified string (case-insensitive).""" - includesInsensitive: String - - """Does not contain the specified string (case-insensitive).""" - notIncludesInsensitive: String - - """Starts with the specified string (case-sensitive).""" - startsWith: String - - """Does not start with the specified string (case-sensitive).""" - notStartsWith: String - - """Starts with the specified string (case-insensitive).""" - startsWithInsensitive: String - - """Does not start with the specified string (case-insensitive).""" - notStartsWithInsensitive: String - - """Ends with the specified string (case-sensitive).""" - endsWith: String - - """Does not end with the specified string (case-sensitive).""" - notEndsWith: String - - """Ends with the specified string (case-insensitive).""" - endsWithInsensitive: String - - """Does not end with the specified string (case-insensitive).""" - notEndsWithInsensitive: String - - """ - Matches the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - like: String - - """ - Does not match the specified pattern (case-sensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLike: String - - """ - Matches the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - likeInsensitive: String - - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: String - - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: String - - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: String - - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: String - - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: String - - """Included in the specified list (case-insensitive).""" - inInsensitive: [String!] - - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [String!] - - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: String - - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: String - - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: String - - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: String -} - -""" -A filter to be used against Int fields. All fields are combined with a logical ‘and.’ +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ """ -input IntFilter { +input BigIntFilter { """ Is null (if `true` is specified) or is not null (if `false` is specified). """ isNull: Boolean """Equal to the specified value.""" - equalTo: Int + equalTo: BigInt """Not equal to the specified value.""" - notEqualTo: Int + notEqualTo: BigInt """ Not equal to the specified value, treating null like an ordinary value. """ - distinctFrom: Int + distinctFrom: BigInt """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: Int + notDistinctFrom: BigInt """Included in the specified list.""" - in: [Int!] + in: [BigInt!] """Not included in the specified list.""" - notIn: [Int!] + notIn: [BigInt!] """Less than the specified value.""" - lessThan: Int + lessThan: BigInt """Less than or equal to the specified value.""" - lessThanOrEqualTo: Int + lessThanOrEqualTo: BigInt """Greater than the specified value.""" - greaterThan: Int + greaterThan: BigInt """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: Int + greaterThanOrEqualTo: BigInt } """Methods to use when ordering `AppLimitDefault`.""" @@ -1075,6 +1714,8 @@ enum AppLimitDefaultOrderBy { NAME_DESC MAX_ASC MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """A connection to a list of `OrgLimitDefault` values.""" @@ -1106,7 +1747,10 @@ type OrgLimitDefault { name: String! """Default maximum usage allowed for this limit""" - max: Int + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """A `OrgLimitDefault` edge in the connection.""" @@ -1129,7 +1773,10 @@ input OrgLimitDefaultFilter { name: StringFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter """Checks for all expressions in this list.""" and: [OrgLimitDefaultFilter!] @@ -1137,84 +1784,46 @@ input OrgLimitDefaultFilter { """Checks for any expressions in this list.""" or: [OrgLimitDefaultFilter!] - """Negates the expression.""" - not: OrgLimitDefaultFilter -} - -"""Methods to use when ordering `OrgLimitDefault`.""" -enum OrgLimitDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - MAX_ASC - MAX_DESC -} - -"""A connection to a list of `OrgAdminGrant` values.""" -type OrgAdminGrantConnection { - """A list of `OrgAdminGrant` objects.""" - nodes: [OrgAdminGrant]! - - """ - A list of edges which contains the `OrgAdminGrant` and cursor to aid in pagination. - """ - edges: [OrgAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type OrgAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - - """The entity (org or group) this admin grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""A `OrgAdminGrant` edge in the connection.""" -type OrgAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """Negates the expression.""" + not: OrgLimitDefaultFilter +} - """The `OrgAdminGrant` at the end of the edge.""" - node: OrgAdminGrant +"""Methods to use when ordering `OrgLimitDefault`.""" +enum OrgLimitDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """ -A filter to be used against `OrgAdminGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ """ -input OrgAdminGrantFilter { +input AppLevelRequirementFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Filter by the object’s `level` field.""" + level: StringFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `description` field.""" + description: StringFilter - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Filter by the object’s `requiredCount` field.""" + requiredCount: IntFilter + + """Filter by the object’s `priority` field.""" + priority: IntFilter """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter @@ -1223,517 +1832,582 @@ input OrgAdminGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgAdminGrantFilter!] + and: [AppLevelRequirementFilter!] """Checks for any expressions in this list.""" - or: [OrgAdminGrantFilter!] + or: [AppLevelRequirementFilter!] """Negates the expression.""" - not: OrgAdminGrantFilter + not: AppLevelRequirementFilter } -"""Methods to use when ordering `OrgAdminGrant`.""" -enum OrgAdminGrantOrderBy { +"""Methods to use when ordering `AppLevelRequirement`.""" +enum AppLevelRequirementOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC + NAME_ASC + NAME_DESC + LEVEL_ASC + LEVEL_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + REQUIRED_COUNT_ASC + REQUIRED_COUNT_DESC + PRIORITY_ASC + PRIORITY_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC } -"""A connection to a list of `OrgOwnerGrant` values.""" -type OrgOwnerGrantConnection { - """A list of `OrgOwnerGrant` objects.""" - nodes: [OrgOwnerGrant]! +"""A connection to a list of `OrgChartEdgeGrant` values.""" +type OrgChartEdgeGrantConnection { + """A list of `OrgChartEdgeGrant` objects.""" + nodes: [OrgChartEdgeGrant]! """ - A list of edges which contains the `OrgOwnerGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. """ - edges: [OrgOwnerGrantEdge]! + edges: [OrgChartEdgeGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgOwnerGrant` you could get from the connection.""" + """ + The count of *all* `OrgChartEdgeGrant` you could get from the connection. + """ totalCount: Int! } -"""Records of ownership transfers and grants between members""" -type OrgOwnerGrant { +""" +Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table +""" +type OrgChartEdgeGrant { id: UUID! - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! + """Organization this grant applies to""" + entityId: UUID! - """The member receiving or losing the ownership grant""" - actorId: UUID! + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! - """The entity (org or group) this ownership grant applies to""" - entityId: UUID! + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean! + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime! } -"""A `OrgOwnerGrant` edge in the connection.""" -type OrgOwnerGrantEdge { +"""A `OrgChartEdgeGrant` edge in the connection.""" +type OrgChartEdgeGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgOwnerGrant` at the end of the edge.""" - node: OrgOwnerGrant + """The `OrgChartEdgeGrant` at the end of the edge.""" + node: OrgChartEdgeGrant } """ -A filter to be used against `OrgOwnerGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ """ -input OrgOwnerGrantFilter { +input OrgChartEdgeGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter + + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter + """Filter by the object’s `grantorId` field.""" grantorId: UUIDFilter + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter + + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter + + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter + """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - """Checks for all expressions in this list.""" - and: [OrgOwnerGrantFilter!] + and: [OrgChartEdgeGrantFilter!] """Checks for any expressions in this list.""" - or: [OrgOwnerGrantFilter!] + or: [OrgChartEdgeGrantFilter!] """Negates the expression.""" - not: OrgOwnerGrantFilter + not: OrgChartEdgeGrantFilter } -"""Methods to use when ordering `OrgOwnerGrant`.""" -enum OrgOwnerGrantOrderBy { +"""Methods to use when ordering `OrgChartEdgeGrant`.""" +enum OrgChartEdgeGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC ENTITY_ID_ASC ENTITY_ID_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC GRANTOR_ID_ASC GRANTOR_ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC CREATED_AT_ASC CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC } -""" -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ -""" -input AppPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""A connection to a list of `AppClaimedInvite` values.""" +type AppClaimedInviteConnection { + """A list of `AppClaimedInvite` objects.""" + nodes: [AppClaimedInvite]! - """Filter by the object’s `name` field.""" - name: StringFilter + """ + A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. + """ + edges: [AppClaimedInviteEdge]! - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """ + The count of *all* `AppClaimedInvite` you could get from the connection. + """ + totalCount: Int! +} - """Filter by the object’s `description` field.""" - description: StringFilter +""" +Records of successfully claimed invitations, linking senders to receivers +""" +type AppClaimedInvite { + id: UUID! - """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + """User ID of the original invitation sender""" + senderId: UUID - """Negates the expression.""" - not: AppPermissionFilter + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC +""" +Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +""" +scalar JSON + +"""A `AppClaimedInvite` edge in the connection.""" +type AppClaimedInviteEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppClaimedInvite` at the end of the edge.""" + node: AppClaimedInvite } """ -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input OrgPermissionFilter { +input AppClaimedInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `senderId` field.""" + senderId: UUIDFilter - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Filter by the object’s `receiverId` field.""" + receiverId: UUIDFilter - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + and: [AppClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + or: [AppClaimedInviteFilter!] """Negates the expression.""" - not: OrgPermissionFilter + not: AppClaimedInviteFilter } -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""Methods to use when ordering `AppClaimedInvite`.""" +enum AppClaimedInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + DATA_ASC + DATA_DESC + SENDER_ID_ASC + SENDER_ID_DESC + RECEIVER_ID_ASC + RECEIVER_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `AppLimit` values.""" -type AppLimitConnection { - """A list of `AppLimit` objects.""" - nodes: [AppLimit]! +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! """ - A list of edges which contains the `AppLimit` and cursor to aid in pagination. + A list of edges which contains the `AppGrant` and cursor to aid in pagination. """ - edges: [AppLimitEdge]! + edges: [AppGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppLimit` you could get from the connection.""" + """The count of *all* `AppGrant` you could get from the connection.""" totalCount: Int! } -"""Tracks per-actor usage counts against configurable maximum limits""" -type AppLimit { +""" +Records of individual permission grants and revocations for members via bitmask +""" +type AppGrant { id: UUID! - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Bitmask of permissions being granted or revoked""" + permissions: BitString! - """Current usage count for this actor and limit""" - num: Int + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""A `AppLimit` edge in the connection.""" -type AppLimitEdge { +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppLimit` at the end of the edge.""" - node: AppLimit + """The `AppGrant` at the end of the edge.""" + node: AppGrant } """ -A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppLimitFilter { +input AppGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `name` field.""" - name: StringFilter + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Filter by the object’s `isGrant` field.""" + isGrant: BooleanFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `num` field.""" - num: IntFilter + """Filter by the object’s `grantorId` field.""" + grantorId: UUIDFilter - """Filter by the object’s `max` field.""" - max: IntFilter + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppLimitFilter!] + and: [AppGrantFilter!] """Checks for any expressions in this list.""" - or: [AppLimitFilter!] + or: [AppGrantFilter!] """Negates the expression.""" - not: AppLimitFilter + not: AppGrantFilter } -"""Methods to use when ordering `AppLimit`.""" -enum AppLimitOrderBy { +"""Methods to use when ordering `AppGrant`.""" +enum AppGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC ACTOR_ID_ASC ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -"""A connection to a list of `AppAchievement` values.""" -type AppAchievementConnection { - """A list of `AppAchievement` objects.""" - nodes: [AppAchievement]! +"""A connection to a list of `AppMembershipDefault` values.""" +type AppMembershipDefaultConnection { + """A list of `AppMembershipDefault` objects.""" + nodes: [AppMembershipDefault]! """ - A list of edges which contains the `AppAchievement` and cursor to aid in pagination. + A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. """ - edges: [AppAchievementEdge]! + edges: [AppMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppAchievement` you could get from the connection.""" + """ + The count of *all* `AppMembershipDefault` you could get from the connection. + """ totalCount: Int! } """ -Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually +Default membership settings per entity, controlling initial approval and verification state for new members """ -type AppAchievement { +type AppMembershipDefault { id: UUID! - actorId: UUID! - - """Name identifier of the level requirement being tracked""" - name: String! - - """Cumulative count of completed steps toward this requirement""" - count: Int! createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean! } -"""A `AppAchievement` edge in the connection.""" -type AppAchievementEdge { +"""A `AppMembershipDefault` edge in the connection.""" +type AppMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppAchievement` at the end of the edge.""" - node: AppAchievement + """The `AppMembershipDefault` at the end of the edge.""" + node: AppMembershipDefault } """ -A filter to be used against `AppAchievement` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppAchievementFilter { +input AppMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `count` field.""" - count: IntFilter - """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + + """Filter by the object’s `isVerified` field.""" + isVerified: BooleanFilter + """Checks for all expressions in this list.""" - and: [AppAchievementFilter!] + and: [AppMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppAchievementFilter!] + or: [AppMembershipDefaultFilter!] """Negates the expression.""" - not: AppAchievementFilter + not: AppMembershipDefaultFilter } -"""Methods to use when ordering `AppAchievement`.""" -enum AppAchievementOrderBy { +"""Methods to use when ordering `AppMembershipDefault`.""" +enum AppMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NAME_ASC - NAME_DESC - COUNT_ASC - COUNT_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + IS_VERIFIED_ASC + IS_VERIFIED_DESC } -"""A connection to a list of `AppStep` values.""" -type AppStepConnection { - """A list of `AppStep` objects.""" - nodes: [AppStep]! +"""A connection to a list of `OrgMembershipDefault` values.""" +type OrgMembershipDefaultConnection { + """A list of `OrgMembershipDefault` objects.""" + nodes: [OrgMembershipDefault]! """ - A list of edges which contains the `AppStep` and cursor to aid in pagination. + A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. """ - edges: [AppStepEdge]! + edges: [OrgMembershipDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppStep` you could get from the connection.""" + """ + The count of *all* `OrgMembershipDefault` you could get from the connection. + """ totalCount: Int! } """ -Log of individual user actions toward level requirements; every single step ever taken is recorded here +Default membership settings per entity, controlling initial approval and verification state for new members """ -type AppStep { +type OrgMembershipDefault { id: UUID! - actorId: UUID! - - """Name identifier of the level requirement this step fulfills""" - name: String! - - """Number of units completed in this step action""" - count: Int! createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean! + + """References the entity these membership defaults apply to""" + entityId: UUID! } -"""A `AppStep` edge in the connection.""" -type AppStepEdge { +"""A `OrgMembershipDefault` edge in the connection.""" +type OrgMembershipDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppStep` at the end of the edge.""" - node: AppStep + """The `OrgMembershipDefault` at the end of the edge.""" + node: OrgMembershipDefault } """ -A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ """ -input AppStepFilter { +input OrgMembershipDefaultFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `count` field.""" - count: IntFilter - """Filter by the object’s `createdAt` field.""" createdAt: DatetimeFilter """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `isApproved` field.""" + isApproved: BooleanFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + """Checks for all expressions in this list.""" - and: [AppStepFilter!] + and: [OrgMembershipDefaultFilter!] """Checks for any expressions in this list.""" - or: [AppStepFilter!] + or: [OrgMembershipDefaultFilter!] """Negates the expression.""" - not: AppStepFilter + not: OrgMembershipDefaultFilter } -"""Methods to use when ordering `AppStep`.""" -enum AppStepOrderBy { +"""Methods to use when ordering `OrgMembershipDefault`.""" +enum OrgMembershipDefaultOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - NAME_ASC - NAME_DESC - COUNT_ASC - COUNT_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + IS_APPROVED_ASC + IS_APPROVED_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `AppClaimedInvite` values.""" -type AppClaimedInviteConnection { - """A list of `AppClaimedInvite` objects.""" - nodes: [AppClaimedInvite]! +"""A connection to a list of `OrgClaimedInvite` values.""" +type OrgClaimedInviteConnection { + """A list of `OrgClaimedInvite` objects.""" + nodes: [OrgClaimedInvite]! """ - A list of edges which contains the `AppClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. """ - edges: [AppClaimedInviteEdge]! + edges: [OrgClaimedInviteEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! """ - The count of *all* `AppClaimedInvite` you could get from the connection. + The count of *all* `OrgClaimedInvite` you could get from the connection. """ totalCount: Int! } @@ -1741,7 +2415,7 @@ type AppClaimedInviteConnection { """ Records of successfully claimed invitations, linking senders to receivers """ -type AppClaimedInvite { +type OrgClaimedInvite { id: UUID! """Optional JSON payload captured at the time the invite was claimed""" @@ -1754,26 +2428,22 @@ type AppClaimedInvite { receiverId: UUID createdAt: Datetime updatedAt: Datetime + entityId: UUID! } -""" -Represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). -""" -scalar JSON - -"""A `AppClaimedInvite` edge in the connection.""" -type AppClaimedInviteEdge { +"""A `OrgClaimedInvite` edge in the connection.""" +type OrgClaimedInviteEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppClaimedInvite` at the end of the edge.""" - node: AppClaimedInvite + """The `OrgClaimedInvite` at the end of the edge.""" + node: OrgClaimedInvite } """ -A filter to be used against `AppClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ """ -input AppClaimedInviteFilter { +input OrgClaimedInviteFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -1789,18 +2459,21 @@ input AppClaimedInviteFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + """Checks for all expressions in this list.""" - and: [AppClaimedInviteFilter!] + and: [OrgClaimedInviteFilter!] """Checks for any expressions in this list.""" - or: [AppClaimedInviteFilter!] + or: [OrgClaimedInviteFilter!] """Negates the expression.""" - not: AppClaimedInviteFilter + not: OrgClaimedInviteFilter } -"""Methods to use when ordering `AppClaimedInvite`.""" -enum AppClaimedInviteOrderBy { +"""Methods to use when ordering `OrgClaimedInvite`.""" +enum OrgClaimedInviteOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -1816,359 +2489,275 @@ enum AppClaimedInviteOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC } -"""A connection to a list of `OrgChartEdgeGrant` values.""" -type OrgChartEdgeGrantConnection { - """A list of `OrgChartEdgeGrant` objects.""" - nodes: [OrgChartEdgeGrant]! +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! """ - A list of edges which contains the `OrgChartEdgeGrant` and cursor to aid in pagination. + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. """ - edges: [OrgChartEdgeGrantEdge]! + edges: [AppLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgChartEdgeGrant` you could get from the connection. - """ + """The count of *all* `AppLimitEvent` you could get from the connection.""" totalCount: Int! } -""" -Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table -""" -type OrgChartEdgeGrant { - id: UUID! - - """Organization this grant applies to""" - entityId: UUID! - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted - """ - grantorId: UUID - - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean! - - """Job title or role name being assigned in this grant""" - positionTitle: String - - """Numeric seniority level being assigned in this grant""" - positionLevel: Int - - """Timestamp when this grant or revocation was recorded""" - createdAt: Datetime! -} - -"""A `OrgChartEdgeGrant` edge in the connection.""" -type OrgChartEdgeGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `OrgChartEdgeGrant` at the end of the edge.""" - node: OrgChartEdgeGrant -} - -""" -A filter to be used against `OrgChartEdgeGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter - - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [OrgChartEdgeGrantFilter!] - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeGrantFilter!] - - """Negates the expression.""" - not: OrgChartEdgeGrantFilter -} - -"""Methods to use when ordering `OrgChartEdgeGrant`.""" -enum OrgChartEdgeGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC - CREATED_AT_ASC - CREATED_AT_DESC -} - -"""A connection to a list of `OrgLimit` values.""" -type OrgLimitConnection { - """A list of `OrgLimit` objects.""" - nodes: [OrgLimit]! +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + """Limit name this event applies to""" + name: String - """ - A list of edges which contains the `OrgLimit` and cursor to aid in pagination. - """ - edges: [OrgLimitEdge]! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """The count of *all* `OrgLimit` you could get from the connection.""" - totalCount: Int! -} + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String -"""Tracks per-actor usage counts against configurable maximum limits""" -type OrgLimit { - id: UUID! + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Name identifier of the limit being tracked""" - name: String + """Usage count before this event""" + numBefore: BigInt - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Usage count after this event""" + numAfter: BigInt - """Current usage count for this actor and limit""" - num: Int + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt - """Maximum allowed usage; NULL means use the default limit value""" - max: Int - entityId: UUID! + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""A `OrgLimit` edge in the connection.""" -type OrgLimitEdge { +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgLimit` at the end of the edge.""" - node: OrgLimit + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent } """ -A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input OrgLimitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - +input AppLimitEventFilter { """Filter by the object’s `name` field.""" name: StringFilter """Filter by the object’s `actorId` field.""" actorId: UUIDFilter - """Filter by the object’s `num` field.""" - num: IntFilter - - """Filter by the object’s `max` field.""" - max: IntFilter - """Filter by the object’s `entityId` field.""" entityId: UUIDFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter + + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter + """Checks for all expressions in this list.""" - and: [OrgLimitFilter!] + and: [AppLimitEventFilter!] """Checks for any expressions in this list.""" - or: [OrgLimitFilter!] + or: [AppLimitEventFilter!] """Negates the expression.""" - not: OrgLimitFilter + not: AppLimitEventFilter } -"""Methods to use when ordering `OrgLimit`.""" -enum OrgLimitOrderBy { +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC NAME_ASC NAME_DESC ACTOR_ID_ASC ACTOR_ID_DESC - NUM_ASC - NUM_DESC - MAX_ASC - MAX_DESC ENTITY_ID_ASC ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. """ - edges: [MembershipTypeEdge]! + edges: [OrgLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `MembershipType` you could get from the connection.""" + """The count of *all* `OrgLimitEvent` you could get from the connection.""" totalCount: Int! } -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + """Limit name this event applies to""" + name: String - """Human-readable name of the membership type""" - name: String! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """Description of what this membership type represents""" - description: String! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - hasUsersTableEntry: Boolean! + reason: String } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - +input OrgLimitEventFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] + and: [OrgLimitEventFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [OrgLimitEventFilter!] """Negates the expression.""" - not: MembershipTypeFilter + not: OrgLimitEventFilter } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC NAME_ASC NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - PREFIX_ASC - PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! +"""A connection to a list of `OrgGrant` values.""" +type OrgGrantConnection { + """A list of `OrgGrant` objects.""" + nodes: [OrgGrant]! """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. + A list of edges which contains the `OrgGrant` and cursor to aid in pagination. """ - edges: [AppGrantEdge]! + edges: [OrgGrantEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `AppGrant` you could get from the connection.""" + """The count of *all* `OrgGrant` you could get from the connection.""" totalCount: Int! } """ Records of individual permission grants and revocations for members via bitmask """ -type AppGrant { +type OrgGrant { id: UUID! """Bitmask of permissions being granted or revoked""" @@ -2179,24 +2768,27 @@ type AppGrant { """The member receiving or losing the permission grant""" actorId: UUID! + + """The entity (org or group) this permission grant applies to""" + entityId: UUID! grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { +"""A `OrgGrant` edge in the connection.""" +type OrgGrantEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppGrant` at the end of the edge.""" - node: AppGrant + """The `OrgGrant` at the end of the edge.""" + node: OrgGrant } """ -A filter to be used against `AppGrant` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ """ -input AppGrantFilter { +input OrgGrantFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2209,6 +2801,9 @@ input AppGrantFilter { """Filter by the object’s `actorId` field.""" actorId: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + """Filter by the object’s `grantorId` field.""" grantorId: UUIDFilter @@ -2219,17 +2814,17 @@ input AppGrantFilter { updatedAt: DatetimeFilter """Checks for all expressions in this list.""" - and: [AppGrantFilter!] + and: [OrgGrantFilter!] """Checks for any expressions in this list.""" - or: [AppGrantFilter!] + or: [OrgGrantFilter!] """Negates the expression.""" - not: AppGrantFilter + not: OrgGrantFilter } -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { +"""Methods to use when ordering `OrgGrant`.""" +enum OrgGrantOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2241,164 +2836,72 @@ enum AppGrantOrderBy { IS_GRANT_DESC ACTOR_ID_ASC ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppMembershipDefault` values.""" -type AppMembershipDefaultConnection { - """A list of `AppMembershipDefault` objects.""" - nodes: [AppMembershipDefault]! - - """ - A list of edges which contains the `AppMembershipDefault` and cursor to aid in pagination. - """ - edges: [AppMembershipDefaultEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """ - The count of *all* `AppMembershipDefault` you could get from the connection. - """ - totalCount: Int! -} - -""" -Default membership settings per entity, controlling initial approval and verification state for new members -""" -type AppMembershipDefault { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean! -} - -"""A `AppMembershipDefault` edge in the connection.""" -type AppMembershipDefaultEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppMembershipDefault` at the end of the edge.""" - node: AppMembershipDefault -} - -""" -A filter to be used against `AppMembershipDefault` object types. All fields are combined with a logical ‘and.’ -""" -input AppMembershipDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter - - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter - - """Filter by the object’s `isVerified` field.""" - isVerified: BooleanFilter - - """Checks for all expressions in this list.""" - and: [AppMembershipDefaultFilter!] - - """Checks for any expressions in this list.""" - or: [AppMembershipDefaultFilter!] - - """Negates the expression.""" - not: AppMembershipDefaultFilter -} - -"""Methods to use when ordering `AppMembershipDefault`.""" -enum AppMembershipDefaultOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC - IS_VERIFIED_ASC - IS_VERIFIED_DESC } -"""A connection to a list of `OrgMembershipDefault` values.""" -type OrgMembershipDefaultConnection { - """A list of `OrgMembershipDefault` objects.""" - nodes: [OrgMembershipDefault]! +"""A connection to a list of `OrgChartEdge` values.""" +type OrgChartEdgeConnection { + """A list of `OrgChartEdge` objects.""" + nodes: [OrgChartEdge]! """ - A list of edges which contains the `OrgMembershipDefault` and cursor to aid in pagination. + A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. """ - edges: [OrgMembershipDefaultEdge]! + edges: [OrgChartEdgeEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipDefault` you could get from the connection. - """ + """The count of *all* `OrgChartEdge` you could get from the connection.""" totalCount: Int! } """ -Default membership settings per entity, controlling initial approval and verification state for new members +Organizational chart edges defining parent-child reporting relationships between members within an entity """ -type OrgMembershipDefault { +type OrgChartEdge { id: UUID! createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean! - - """References the entity these membership defaults apply to""" + """Organization this hierarchy edge belongs to""" entityId: UUID! + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID! + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int } -"""A `OrgMembershipDefault` edge in the connection.""" -type OrgMembershipDefaultEdge { +"""A `OrgChartEdge` edge in the connection.""" +type OrgChartEdgeEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipDefault` at the end of the edge.""" - node: OrgMembershipDefault + """The `OrgChartEdge` at the end of the edge.""" + node: OrgChartEdge } """ -A filter to be used against `OrgMembershipDefault` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipDefaultFilter { +input OrgChartEdgeFilter { """Filter by the object’s `id` field.""" id: UUIDFilter @@ -2408,30 +2911,33 @@ input OrgMembershipDefaultFilter { """Filter by the object’s `updatedAt` field.""" updatedAt: DatetimeFilter - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `childId` field.""" + childId: UUIDFilter - """Filter by the object’s `isApproved` field.""" - isApproved: BooleanFilter + """Filter by the object’s `parentId` field.""" + parentId: UUIDFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `positionTitle` field.""" + positionTitle: StringFilter + + """Filter by the object’s `positionLevel` field.""" + positionLevel: IntFilter """Checks for all expressions in this list.""" - and: [OrgMembershipDefaultFilter!] + and: [OrgChartEdgeFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipDefaultFilter!] + or: [OrgChartEdgeFilter!] """Negates the expression.""" - not: OrgMembershipDefaultFilter + not: OrgChartEdgeFilter } -"""Methods to use when ordering `OrgMembershipDefault`.""" -enum OrgMembershipDefaultOrderBy { +"""Methods to use when ordering `OrgChartEdge`.""" +enum OrgChartEdgeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2441,378 +2947,331 @@ enum OrgMembershipDefaultOrderBy { CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - IS_APPROVED_ASC - IS_APPROVED_DESC ENTITY_ID_ASC ENTITY_ID_DESC + CHILD_ID_ASC + CHILD_ID_DESC + PARENT_ID_ASC + PARENT_ID_DESC + POSITION_TITLE_ASC + POSITION_TITLE_DESC + POSITION_LEVEL_ASC + POSITION_LEVEL_DESC } -"""A connection to a list of `OrgClaimedInvite` values.""" -type OrgClaimedInviteConnection { - """A list of `OrgClaimedInvite` objects.""" - nodes: [OrgClaimedInvite]! +"""A connection to a list of `AppLimit` values.""" +type AppLimitConnection { + """A list of `AppLimit` objects.""" + nodes: [AppLimit]! """ - A list of edges which contains the `OrgClaimedInvite` and cursor to aid in pagination. + A list of edges which contains the `AppLimit` and cursor to aid in pagination. """ - edges: [OrgClaimedInviteEdge]! + edges: [AppLimitEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! + """The count of *all* `AppLimit` you could get from the connection.""" + totalCount: Int! +} + +"""Tracks per-actor usage counts against configurable maximum limits""" +type AppLimit { + id: UUID! + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + """ - The count of *all* `OrgClaimedInvite` you could get from the connection. + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - totalCount: Int! + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval } """ -Records of successfully claimed invitations, linking senders to receivers +An interval of time that has passed where the smallest distinct unit is a second. """ -type OrgClaimedInvite { - id: UUID! +type Interval { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """A quantity of minutes.""" + minutes: Int - """User ID of the original invitation sender""" - senderId: UUID + """A quantity of hours.""" + hours: Int - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int } -"""A `OrgClaimedInvite` edge in the connection.""" -type OrgClaimedInviteEdge { +"""A `AppLimit` edge in the connection.""" +type AppLimitEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgClaimedInvite` at the end of the edge.""" - node: OrgClaimedInvite + """The `AppLimit` at the end of the edge.""" + node: AppLimit } """ -A filter to be used against `OrgClaimedInvite` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimit` object types. All fields are combined with a logical ‘and.’ """ -input OrgClaimedInviteFilter { +input AppLimitFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `senderId` field.""" - senderId: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `receiverId` field.""" - receiverId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter """Checks for all expressions in this list.""" - and: [OrgClaimedInviteFilter!] + and: [AppLimitFilter!] """Checks for any expressions in this list.""" - or: [OrgClaimedInviteFilter!] + or: [AppLimitFilter!] """Negates the expression.""" - not: OrgClaimedInviteFilter -} - -"""Methods to use when ordering `OrgClaimedInvite`.""" -enum OrgClaimedInviteOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATA_ASC - DATA_DESC - SENDER_ID_ASC - SENDER_ID_DESC - RECEIVER_ID_ASC - RECEIVER_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC -} - -"""A connection to a list of `OrgGrant` values.""" -type OrgGrantConnection { - """A list of `OrgGrant` objects.""" - nodes: [OrgGrant]! - - """ - A list of edges which contains the `OrgGrant` and cursor to aid in pagination. - """ - edges: [OrgGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgGrant` you could get from the connection.""" - totalCount: Int! + not: AppLimitFilter } """ -Records of individual permission grants and revocations for members via bitmask +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ """ -type OrgGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean - """The member receiving or losing the permission grant""" - actorId: UUID! + """Equal to the specified value.""" + equalTo: IntervalInput - """The entity (org or group) this permission grant applies to""" - entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime -} + """Not equal to the specified value.""" + notEqualTo: IntervalInput -"""A `OrgGrant` edge in the connection.""" -type OrgGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput - """The `OrgGrant` at the end of the edge.""" - node: OrgGrant -} + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput -""" -A filter to be used against `OrgGrant` object types. All fields are combined with a logical ‘and.’ -""" -input OrgGrantFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter + """Included in the specified list.""" + in: [IntervalInput!] - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """Not included in the specified list.""" + notIn: [IntervalInput!] - """Filter by the object’s `isGrant` field.""" - isGrant: BooleanFilter + """Less than the specified value.""" + lessThan: IntervalInput - """Filter by the object’s `actorId` field.""" - actorId: UUIDFilter + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Greater than the specified value.""" + greaterThan: IntervalInput - """Filter by the object’s `grantorId` field.""" - grantorId: UUIDFilter + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """A quantity of minutes.""" + minutes: Int - """Checks for all expressions in this list.""" - and: [OrgGrantFilter!] + """A quantity of hours.""" + hours: Int - """Checks for any expressions in this list.""" - or: [OrgGrantFilter!] + """A quantity of days.""" + days: Int - """Negates the expression.""" - not: OrgGrantFilter + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int } -"""Methods to use when ordering `OrgGrant`.""" -enum OrgGrantOrderBy { +"""Methods to use when ordering `AppLimit`.""" +enum AppLimitOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC + NAME_ASC + NAME_DESC ACTOR_ID_ASC ACTOR_ID_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC } -"""A connection to a list of `OrgChartEdge` values.""" -type OrgChartEdgeConnection { - """A list of `OrgChartEdge` objects.""" - nodes: [OrgChartEdge]! +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! """ - A list of edges which contains the `OrgChartEdge` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. """ - edges: [OrgChartEdgeEdge]! + edges: [OrgLimitAggregateEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `OrgChartEdge` you could get from the connection.""" + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ totalCount: Int! } """ -Organizational chart edges defining parent-child reporting relationships between members within an entity +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) """ -type OrgChartEdge { +type OrgLimitAggregate { id: UUID! - createdAt: Datetime - updatedAt: Datetime - """Organization this hierarchy edge belongs to""" + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" entityId: UUID! - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID! + """Current aggregate usage count for this entity and limit""" + num: BigInt - """ - User ID of the manager; NULL indicates a top-level position with no direct report - """ - parentId: UUID + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt - """Job title or role name for this position in the org chart""" - positionTitle: String + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval } -"""A `OrgChartEdge` edge in the connection.""" -type OrgChartEdgeEdge { +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgChartEdge` at the end of the edge.""" - node: OrgChartEdge -} - -""" -A filter to be used against `OrgChartEdge` object types. All fields are combined with a logical ‘and.’ -""" -input OrgChartEdgeFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter - - """Filter by the object’s `childId` field.""" - childId: UUIDFilter - - """Filter by the object’s `parentId` field.""" - parentId: UUIDFilter - - """Filter by the object’s `positionTitle` field.""" - positionTitle: StringFilter - - """Filter by the object’s `positionLevel` field.""" - positionLevel: IntFilter - - """Checks for all expressions in this list.""" - and: [OrgChartEdgeFilter!] - - """Checks for any expressions in this list.""" - or: [OrgChartEdgeFilter!] - - """Negates the expression.""" - not: OrgChartEdgeFilter -} - -"""Methods to use when ordering `OrgChartEdge`.""" -enum OrgChartEdgeOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - CHILD_ID_ASC - CHILD_ID_DESC - PARENT_ID_ASC - PARENT_ID_DESC - POSITION_TITLE_ASC - POSITION_TITLE_DESC - POSITION_LEVEL_ASC - POSITION_LEVEL_DESC + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate } """ -A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ """ -input AppLevelRequirementFilter { +input OrgLimitAggregateFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `level` field.""" - level: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter - """Filter by the object’s `requiredCount` field.""" - requiredCount: IntFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `priority` field.""" - priority: IntFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter """Checks for all expressions in this list.""" - and: [AppLevelRequirementFilter!] + and: [OrgLimitAggregateFilter!] """Checks for any expressions in this list.""" - or: [AppLevelRequirementFilter!] + or: [OrgLimitAggregateFilter!] """Negates the expression.""" - not: AppLevelRequirementFilter + not: OrgLimitAggregateFilter } -"""Methods to use when ordering `AppLevelRequirement`.""" -enum AppLevelRequirementOrderBy { +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -2820,18 +3279,18 @@ enum AppLevelRequirementOrderBy { ID_DESC NAME_ASC NAME_DESC - LEVEL_ASC - LEVEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - REQUIRED_COUNT_ASC - REQUIRED_COUNT_DESC - PRIORITY_ASC - PRIORITY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC } """A connection to a list of `OrgMemberProfile` values.""" @@ -3175,155 +3634,129 @@ enum OrgMemberProfileOrderBy { PROFILE_PICTURE_DESC } -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! +"""A connection to a list of `OrgLimit` values.""" +type OrgLimitConnection { + """A list of `OrgLimit` objects.""" + nodes: [OrgLimit]! """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + A list of edges which contains the `OrgLimit` and cursor to aid in pagination. """ - edges: [OrgMembershipSettingEdge]! + edges: [OrgLimitEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ + """The count of *all* `OrgLimit` you could get from the connection.""" totalCount: Int! } -"""Per-entity settings for the memberships module""" -type OrgMembershipSetting { +"""Tracks per-actor usage counts against configurable maximum limits""" +type OrgLimit { id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """References the entity these settings apply to""" - entityId: UUID! + """Name identifier of the limit being tracked""" + name: String - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean! + """User whose usage is being tracked against this limit""" + actorId: UUID! - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean! + """Current usage count for this actor and limit""" + num: BigInt """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - createChildCascadeAdmins: Boolean! + max: BigInt """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. """ - createChildCascadeMembers: Boolean! + softMax: BigInt - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean! + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - populateMemberEmail: Boolean! + windowDuration: Interval + entityId: UUID! } -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { +"""A `OrgLimit` edge in the connection.""" +type OrgLimitEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting + """The `OrgLimit` at the end of the edge.""" + node: OrgLimit } """ -A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimit` object types. All fields are combined with a logical ‘and.’ """ -input OrgMembershipSettingFilter { +input OrgLimitFilter { """Filter by the object’s `id` field.""" id: UUIDFilter - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Filter by the object’s `createdBy` field.""" - createdBy: UUIDFilter - - """Filter by the object’s `updatedBy` field.""" - updatedBy: UUIDFilter + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `entityId` field.""" - entityId: UUIDFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `deleteMemberCascadeChildren` field.""" - deleteMemberCascadeChildren: BooleanFilter + """Filter by the object’s `num` field.""" + num: BigIntFilter - """Filter by the object’s `createChildCascadeOwners` field.""" - createChildCascadeOwners: BooleanFilter + """Filter by the object’s `max` field.""" + max: BigIntFilter - """Filter by the object’s `createChildCascadeAdmins` field.""" - createChildCascadeAdmins: BooleanFilter + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter - """Filter by the object’s `createChildCascadeMembers` field.""" - createChildCascadeMembers: BooleanFilter + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter - """Filter by the object’s `allowExternalMembers` field.""" - allowExternalMembers: BooleanFilter + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter - """Filter by the object’s `populateMemberEmail` field.""" - populateMemberEmail: BooleanFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter """Checks for all expressions in this list.""" - and: [OrgMembershipSettingFilter!] + and: [OrgLimitFilter!] """Checks for any expressions in this list.""" - or: [OrgMembershipSettingFilter!] + or: [OrgLimitFilter!] """Negates the expression.""" - not: OrgMembershipSettingFilter + not: OrgLimitFilter } -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { +"""Methods to use when ordering `OrgLimit`.""" +enum OrgLimitOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC ENTITY_ID_ASC ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC } """A connection to a list of `AppLevel` values.""" @@ -3476,6 +3909,11 @@ type AppInvite { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime! createdAt: Datetime @@ -3521,6 +3959,9 @@ input AppInviteFilter { """Filter by the object’s `multiple` field.""" multiple: BooleanFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + """Filter by the object’s `expiresAt` field.""" expiresAt: DatetimeFilter @@ -3632,75 +4073,248 @@ input ConstructiveInternalTypeEmailFilter { """ likeInsensitive: ConstructiveInternalTypeEmail - """ - Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. - """ - notLikeInsensitive: ConstructiveInternalTypeEmail + """ + Does not match the specified pattern (case-insensitive). An underscore (_) matches any single character; a percent sign (%) matches any sequence of zero or more characters. + """ + notLikeInsensitive: ConstructiveInternalTypeEmail + + """Equal to the specified value (case-insensitive).""" + equalToInsensitive: ConstructiveInternalTypeEmail + + """Not equal to the specified value (case-insensitive).""" + notEqualToInsensitive: ConstructiveInternalTypeEmail + + """ + Not equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + distinctFromInsensitive: ConstructiveInternalTypeEmail + + """ + Equal to the specified value, treating null like an ordinary value (case-insensitive). + """ + notDistinctFromInsensitive: ConstructiveInternalTypeEmail + + """Included in the specified list (case-insensitive).""" + inInsensitive: [ConstructiveInternalTypeEmail!] + + """Not included in the specified list (case-insensitive).""" + notInInsensitive: [ConstructiveInternalTypeEmail!] + + """Less than the specified value (case-insensitive).""" + lessThanInsensitive: ConstructiveInternalTypeEmail + + """Less than or equal to the specified value (case-insensitive).""" + lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + + """Greater than the specified value (case-insensitive).""" + greaterThanInsensitive: ConstructiveInternalTypeEmail + + """Greater than or equal to the specified value (case-insensitive).""" + greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail +} + +"""Methods to use when ordering `AppInvite`.""" +enum AppInviteOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + EMAIL_ASC + EMAIL_DESC + SENDER_ID_ASC + SENDER_ID_DESC + INVITE_TOKEN_ASC + INVITE_TOKEN_DESC + INVITE_VALID_ASC + INVITE_VALID_DESC + INVITE_LIMIT_ASC + INVITE_LIMIT_DESC + INVITE_COUNT_ASC + INVITE_COUNT_DESC + MULTIPLE_ASC + MULTIPLE_DESC + DATA_ASC + DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC + EXPIRES_AT_ASC + EXPIRES_AT_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! + + """ + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + """ + edges: [OrgMembershipSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipSetting` you could get from the connection. + """ + totalCount: Int! +} + +"""Per-entity settings for the memberships module""" +type OrgMembershipSetting { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID! + + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean! + + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean! + + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean! + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean! + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean! + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String! + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean! + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String! +} + +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting +} + +""" +A filter to be used against `OrgMembershipSetting` object types. All fields are combined with a logical ‘and.’ +""" +input OrgMembershipSettingFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `createdBy` field.""" + createdBy: UUIDFilter + + """Filter by the object’s `updatedBy` field.""" + updatedBy: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Equal to the specified value (case-insensitive).""" - equalToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `deleteMemberCascadeChildren` field.""" + deleteMemberCascadeChildren: BooleanFilter - """Not equal to the specified value (case-insensitive).""" - notEqualToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `createChildCascadeOwners` field.""" + createChildCascadeOwners: BooleanFilter - """ - Not equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - distinctFromInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `createChildCascadeAdmins` field.""" + createChildCascadeAdmins: BooleanFilter - """ - Equal to the specified value, treating null like an ordinary value (case-insensitive). - """ - notDistinctFromInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `createChildCascadeMembers` field.""" + createChildCascadeMembers: BooleanFilter - """Included in the specified list (case-insensitive).""" - inInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `allowExternalMembers` field.""" + allowExternalMembers: BooleanFilter - """Not included in the specified list (case-insensitive).""" - notInInsensitive: [ConstructiveInternalTypeEmail!] + """Filter by the object’s `inviteProfileAssignmentMode` field.""" + inviteProfileAssignmentMode: StringFilter - """Less than the specified value (case-insensitive).""" - lessThanInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `populateMemberEmail` field.""" + populateMemberEmail: BooleanFilter - """Less than or equal to the specified value (case-insensitive).""" - lessThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Filter by the object’s `limitAllocationMode` field.""" + limitAllocationMode: StringFilter - """Greater than the specified value (case-insensitive).""" - greaterThanInsensitive: ConstructiveInternalTypeEmail + """Checks for all expressions in this list.""" + and: [OrgMembershipSettingFilter!] - """Greater than or equal to the specified value (case-insensitive).""" - greaterThanOrEqualToInsensitive: ConstructiveInternalTypeEmail + """Checks for any expressions in this list.""" + or: [OrgMembershipSettingFilter!] + + """Negates the expression.""" + not: OrgMembershipSettingFilter } -"""Methods to use when ordering `AppInvite`.""" -enum AppInviteOrderBy { +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - EMAIL_ASC - EMAIL_DESC - SENDER_ID_ASC - SENDER_ID_DESC - INVITE_TOKEN_ASC - INVITE_TOKEN_DESC - INVITE_VALID_ASC - INVITE_VALID_DESC - INVITE_LIMIT_ASC - INVITE_LIMIT_DESC - INVITE_COUNT_ASC - INVITE_COUNT_DESC - MULTIPLE_ASC - MULTIPLE_DESC - DATA_ASC - DATA_DESC - EXPIRES_AT_ASC - EXPIRES_AT_DESC CREATED_AT_ASC CREATED_AT_DESC UPDATED_AT_ASC UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC } """A connection to a list of `OrgInvite` values.""" @@ -3753,6 +4367,11 @@ type OrgInvite { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime! createdAt: Datetime @@ -3800,6 +4419,9 @@ input OrgInviteFilter { """Filter by the object’s `multiple` field.""" multiple: BooleanFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + """Filter by the object’s `expiresAt` field.""" expiresAt: DatetimeFilter @@ -3847,6 +4469,8 @@ enum OrgInviteOrderBy { MULTIPLE_DESC DATA_ASC DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC EXPIRES_AT_ASC EXPIRES_AT_DESC CREATED_AT_ASC @@ -3901,11 +4525,6 @@ type AppMembership { """ isActive: Boolean! - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! - """Whether the actor is the owner of this entity""" isOwner: Boolean! @@ -3970,9 +4589,6 @@ input AppMembershipFilter { """Filter by the object’s `isActive` field.""" isActive: BooleanFilter - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - """Filter by the object’s `isOwner` field.""" isOwner: BooleanFilter @@ -4026,8 +4642,6 @@ enum AppMembershipOrderBy { IS_VERIFIED_DESC IS_ACTIVE_ASC IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC IS_OWNER_ASC IS_OWNER_DESC IS_ADMIN_ASC @@ -4449,6 +5063,118 @@ input OrgPermissionDefaultInput { entityId: UUID! } +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! +} + +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + """The output of our create `AppAdminGrant` mutation.""" type CreateAppAdminGrantPayload { """ @@ -4547,96 +5273,102 @@ input AppOwnerGrantInput { updatedAt: Datetime } -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { +"""The output of our create `AppAchievement` mutation.""" +type CreateAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppAchievement` that was created by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { +"""All input for the create `AppAchievement` mutation.""" +input CreateAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! + """The `AppAchievement` to be created by this mutation.""" + appAchievement: AppAchievementInput! } -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { +"""An input for mutations affecting `AppAchievement`""" +input AppAchievementInput { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement being tracked""" name: String! - """Default maximum usage allowed for this limit""" - max: Int + """Cumulative count of completed steps toward this requirement""" + count: Int + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { +"""The output of our create `AppStep` mutation.""" +type CreateAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppStep` that was created by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { +"""All input for the create `AppStep` mutation.""" +input CreateAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! + """The `AppStep` to be created by this mutation.""" + appStep: AppStepInput! } -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { +"""An input for mutations affecting `AppStep`""" +input AppStepInput { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement this step fulfills""" name: String! - """Default maximum usage allowed for this limit""" - max: Int + """Number of units completed in this step action""" + count: Int + createdAt: Datetime + updatedAt: Datetime } """The output of our create `OrgAdminGrant` mutation.""" @@ -4743,315 +5475,221 @@ input OrgOwnerGrantInput { updatedAt: Datetime } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! -} - -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! } -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - bitnum: Int + id: Int! - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Human-readable name of the membership type""" + name: String! - """Human-readable description of what this permission allows""" - description: String -} + """Description of what this membership type represents""" + description: String! -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Short prefix used to namespace tables and functions for this membership scope """ - clientMutationId: String - - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit + prefix: String! """ - Our root query field type. Allows us to run any query from our mutation payload. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} + parentMembershipType: Int -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - clientMutationId: String - - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! -} - -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: Int - - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + hasUsersTableEntry: Boolean } -"""The output of our create `AppAchievement` mutation.""" -type CreateAppAchievementPayload { +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAchievement` that was created by this mutation.""" - appAchievement: AppAchievement + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the create `AppAchievement` mutation.""" -input CreateAppAchievementInput { +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppAchievement` to be created by this mutation.""" - appAchievement: AppAchievementInput! + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! } -"""An input for mutations affecting `AppAchievement`""" -input AppAchievementInput { +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { id: UUID - actorId: UUID - """Name identifier of the level requirement being tracked""" + """Name identifier of the limit this default applies to""" name: String! - """Cumulative count of completed steps toward this requirement""" - count: Int - createdAt: Datetime - updatedAt: Datetime + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our create `AppStep` mutation.""" -type CreateAppStepPayload { +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was created by this mutation.""" - appStep: AppStep + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the create `AppStep` mutation.""" -input CreateAppStepInput { +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppStep` to be created by this mutation.""" - appStep: AppStepInput! + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! } -"""An input for mutations affecting `AppStep`""" -input AppStepInput { +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { id: UUID - actorId: UUID - """Name identifier of the level requirement this step fulfills""" + """Name identifier of the limit this default applies to""" name: String! - """Number of units completed in this step action""" - count: Int - createdAt: Datetime - updatedAt: Datetime + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { +"""The output of our create `AppLevelRequirement` mutation.""" +type CreateAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `AppLevelRequirement` that was created by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { +"""All input for the create `AppLevelRequirement` mutation.""" +input CreateAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! + """The `AppLevelRequirement` to be created by this mutation.""" + appLevelRequirement: AppLevelRequirementInput! } -"""An input for mutations affecting `AppClaimedInvite`""" -input AppClaimedInviteInput { +"""An input for mutations affecting `AppLevelRequirement`""" +input AppLevelRequirementInput { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Name identifier of the requirement (matches step names)""" + name: String! - """User ID of the original invitation sender""" - senderId: UUID + """Name of the level this requirement belongs to""" + level: String! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """Human-readable description of what this requirement entails""" + description: String + + """Number of steps needed to satisfy this requirement""" + requiredCount: Int + + """Display ordering priority; lower values appear first""" + priority: Int createdAt: Datetime updatedAt: Datetime } @@ -5122,121 +5760,55 @@ input OrgChartEdgeGrantInput { createdAt: Datetime } -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { +"""The output of our create `AppClaimedInvite` mutation.""" +type CreateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit + """The `AppClaimedInvite` that was created by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { +"""All input for the create `AppClaimedInvite` mutation.""" +input CreateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! + """The `AppClaimedInvite` to be created by this mutation.""" + appClaimedInvite: AppClaimedInviteInput! } -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { +"""An input for mutations affecting `AppClaimedInvite`""" +input AppClaimedInviteInput { id: UUID - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID! - - """Current usage count for this actor and limit""" - num: Int - - """Maximum allowed usage; NULL means use the default limit value""" - max: Int - entityId: UUID! -} - -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! -} - -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """User ID of the original invitation sender""" + senderId: UUID - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our create `AppGrant` mutation.""" @@ -5406,41 +5978,163 @@ type CreateOrgClaimedInvitePayload { Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" - orgClaimedInviteEdge( - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteEdge + + """An edge for our `OrgClaimedInvite`. May be used by Relay 1.""" + orgClaimedInviteEdge( + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteEdge +} + +"""All input for the create `OrgClaimedInvite` mutation.""" +input CreateOrgClaimedInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgClaimedInvite` to be created by this mutation.""" + orgClaimedInvite: OrgClaimedInviteInput! +} + +"""An input for mutations affecting `OrgClaimedInvite`""" +input OrgClaimedInviteInput { + id: UUID + + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime + entityId: UUID! +} + +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! +} + +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query } -"""All input for the create `OrgClaimedInvite` mutation.""" -input CreateOrgClaimedInviteInput { +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgClaimedInvite` to be created by this mutation.""" - orgClaimedInvite: OrgClaimedInviteInput! + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! } -"""An input for mutations affecting `OrgClaimedInvite`""" -input OrgClaimedInviteInput { - id: UUID +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { + """Limit name this event applies to""" + name: String - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """User ID of the original invitation sender""" - senderId: UUID + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime - entityId: UUID! + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } """The output of our create `OrgGrant` mutation.""" @@ -5557,61 +6251,134 @@ input OrgChartEdgeInput { positionLevel: Int } -"""The output of our create `AppLevelRequirement` mutation.""" -type CreateAppLevelRequirementPayload { +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevelRequirement` that was created by this mutation.""" - appLevelRequirement: AppLevelRequirement + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the create `AppLevelRequirement` mutation.""" -input CreateAppLevelRequirementInput { +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLevelRequirement` to be created by this mutation.""" - appLevelRequirement: AppLevelRequirementInput! + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! } -"""An input for mutations affecting `AppLevelRequirement`""" -input AppLevelRequirementInput { +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { id: UUID - """Name identifier of the requirement (matches step names)""" - name: String! + """Name identifier of the limit being tracked""" + name: String - """Name of the level this requirement belongs to""" - level: String! + """User whose usage is being tracked against this limit""" + actorId: UUID! - """Human-readable description of what this requirement entails""" - description: String + """Current usage count for this actor and limit""" + num: BigInt - """Number of steps needed to satisfy this requirement""" - requiredCount: Int + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt - """Display ordering priority; lower values appear first""" - priority: Int - createdAt: Datetime - updatedAt: Datetime + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput +} + +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! +} + +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { + id: UUID + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput } """The output of our create `OrgMemberProfile` mutation.""" @@ -5682,81 +6449,72 @@ input OrgMemberProfileInput { profilePicture: ConstructiveInternalTypeImage } -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge } -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! } -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """References the entity these settings apply to""" - entityId: UUID! + """Name identifier of the limit being tracked""" + name: String - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """User whose usage is being tracked against this limit""" + actorId: UUID! - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """Current usage count for this actor and limit""" + num: BigInt """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - createChildCascadeAdmins: Boolean + max: BigInt """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. """ - createChildCascadeMembers: Boolean + softMax: BigInt - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - populateMemberEmail: Boolean + windowDuration: IntervalInput + entityId: UUID! } """The output of our create `AppLevel` mutation.""" @@ -5852,34 +6610,126 @@ input CreateAppInviteInput { input AppInviteInput { id: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! +} + +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID! - """User ID of the member who sent this invitation""" - senderId: UUID + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String - """Optional JSON payload of additional invite metadata""" - data: JSON + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String } """The output of our create `OrgInvite` mutation.""" @@ -5948,6 +6798,11 @@ input OrgInviteInput { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime @@ -6015,11 +6870,6 @@ input AppMembershipInput { """ isActive: Boolean - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -6283,6 +7133,128 @@ input OrgPermissionDefaultPatch { entityId: UUID } +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppPermission` being updated. + """ + appPermissionPatch: AppPermissionPatch! +} + +""" +Represents an update to a `AppPermission`. Fields that are set will be updated. +""" +input AppPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgPermission` being updated. + """ + orgPermissionPatch: OrgPermissionPatch! +} + +""" +Represents an update to a `OrgPermission`. Fields that are set will be updated. +""" +input OrgPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + """The output of our update `AppAdminGrant` mutation.""" type UpdateAppAdminGrantPayload { """ @@ -6391,31 +7363,31 @@ input AppOwnerGrantPatch { updatedAt: Datetime } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our update `AppAchievement` mutation.""" +type UpdateAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppAchievement` that was updated by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the `updateAppAchievement` mutation.""" +input UpdateAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -6424,49 +7396,52 @@ input UpdateAppLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. + An object where the defined keys will be set on the `AppAchievement` being updated. """ - appLimitDefaultPatch: AppLimitDefaultPatch! + appAchievementPatch: AppAchievementPatch! } """ -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppAchievement`. Fields that are set will be updated. """ -input AppLimitDefaultPatch { +input AppAchievementPatch { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement being tracked""" name: String - """Default maximum usage allowed for this limit""" - max: Int + """Cumulative count of completed steps toward this requirement""" + count: Int + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our update `AppStep` mutation.""" +type UpdateAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppStep` that was updated by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the `updateAppStep` mutation.""" +input UpdateAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -6475,22 +7450,25 @@ input UpdateOrgLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. + An object where the defined keys will be set on the `AppStep` being updated. """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + appStepPatch: AppStepPatch! } """ -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppStep`. Fields that are set will be updated. """ -input OrgLimitDefaultPatch { +input AppStepPatch { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement this step fulfills""" name: String - """Default maximum usage allowed for this limit""" - max: Int + """Number of units completed in this step action""" + count: Int + createdAt: Datetime + updatedAt: Datetime } """The output of our update `OrgAdminGrant` mutation.""" @@ -6607,210 +7585,104 @@ input OrgOwnerGrantPatch { updatedAt: Datetime } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge -} -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - clientMutationId: String - id: UUID! + id: Int! """ - An object where the defined keys will be set on the `OrgPermission` being updated. + An object where the defined keys will be set on the `MembershipType` being updated. """ - orgPermissionPatch: OrgPermissionPatch! + membershipTypePatch: MembershipTypePatch! } """ -Represents an update to a `OrgPermission`. Fields that are set will be updated. +Represents an update to a `MembershipType`. Fields that are set will be updated. """ -input OrgPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - +input MembershipTypePatch { """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - bitnum: Int + id: Int - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString + """Human-readable name of the membership type""" + name: String - """Human-readable description of what this permission allows""" + """Description of what this membership type represents""" description: String -} - -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit """ - Our root query field type. Allows us to run any query from our mutation payload. + Short prefix used to namespace tables and functions for this membership scope """ - query: Query - - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} + prefix: String -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) """ - clientMutationId: String - id: UUID! + parentMembershipType: Int """ - An object where the defined keys will be set on the `AppLimit` being updated. + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs """ - appLimitPatch: AppLimitPatch! -} - -""" -Represents an update to a `AppLimit`. Fields that are set will be updated. -""" -input AppLimitPatch { - id: UUID - - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: Int - - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + hasUsersTableEntry: Boolean } -"""The output of our update `AppAchievement` mutation.""" -type UpdateAppAchievementPayload { +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAchievement` that was updated by this mutation.""" - appAchievement: AppAchievement + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `updateAppAchievement` mutation.""" -input UpdateAppAchievementInput { +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -6819,52 +7691,52 @@ input UpdateAppAchievementInput { id: UUID! """ - An object where the defined keys will be set on the `AppAchievement` being updated. + An object where the defined keys will be set on the `AppLimitDefault` being updated. """ - appAchievementPatch: AppAchievementPatch! + appLimitDefaultPatch: AppLimitDefaultPatch! } """ -Represents an update to a `AppAchievement`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input AppAchievementPatch { +input AppLimitDefaultPatch { id: UUID - actorId: UUID - """Name identifier of the level requirement being tracked""" + """Name identifier of the limit this default applies to""" name: String - """Cumulative count of completed steps toward this requirement""" - count: Int - createdAt: Datetime - updatedAt: Datetime + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our update `AppStep` mutation.""" -type UpdateAppStepPayload { +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was updated by this mutation.""" - appStep: AppStep + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `updateAppStep` mutation.""" -input UpdateAppStepInput { +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -6873,52 +7745,52 @@ input UpdateAppStepInput { id: UUID! """ - An object where the defined keys will be set on the `AppStep` being updated. + An object where the defined keys will be set on the `OrgLimitDefault` being updated. """ - appStepPatch: AppStepPatch! + orgLimitDefaultPatch: OrgLimitDefaultPatch! } """ -Represents an update to a `AppStep`. Fields that are set will be updated. +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. """ -input AppStepPatch { +input OrgLimitDefaultPatch { id: UUID - actorId: UUID - """Name identifier of the level requirement this step fulfills""" + """Name identifier of the limit this default applies to""" name: String - """Number of units completed in this step action""" - count: Int - createdAt: Datetime - updatedAt: Datetime + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { +"""The output of our update `AppLevelRequirement` mutation.""" +type UpdateAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `AppLevelRequirement` that was updated by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { +"""All input for the `updateAppLevelRequirement` mutation.""" +input UpdateAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -6927,25 +7799,31 @@ input UpdateAppClaimedInviteInput { id: UUID! """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. + An object where the defined keys will be set on the `AppLevelRequirement` being updated. """ - appClaimedInvitePatch: AppClaimedInvitePatch! + appLevelRequirementPatch: AppLevelRequirementPatch! } """ -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. +Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. """ -input AppClaimedInvitePatch { +input AppLevelRequirementPatch { id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """Name identifier of the requirement (matches step names)""" + name: String - """User ID of the original invitation sender""" - senderId: UUID + """Name of the level this requirement belongs to""" + level: String - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID + """Human-readable description of what this requirement entails""" + description: String + + """Number of steps needed to satisfy this requirement""" + requiredCount: Int + + """Display ordering priority; lower values appear first""" + priority: Int createdAt: Datetime updatedAt: Datetime } @@ -7021,31 +7899,31 @@ input OrgChartEdgeGrantPatch { createdAt: Datetime } -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -7054,102 +7932,27 @@ input UpdateOrgLimitInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimit` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - orgLimitPatch: OrgLimitPatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `OrgLimit`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input OrgLimitPatch { +input AppClaimedInvitePatch { id: UUID - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: Int - - """Maximum allowed usage; NULL means use the default limit value""" - max: Int - entityId: UUID -} - -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! - - """ - An object where the defined keys will be set on the `MembershipType` being updated. - """ - membershipTypePatch: MembershipTypePatch! -} - -""" -Represents an update to a `MembershipType`. Fields that are set will be updated. -""" -input MembershipTypePatch { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int - - """Human-readable name of the membership type""" - name: String - - """Description of what this membership type represents""" - description: String - - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """User ID of the original invitation sender""" + senderId: UUID - """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs - """ - hasUsersTableEntry: Boolean + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } """The output of our update `AppGrant` mutation.""" @@ -7500,31 +8303,31 @@ input OrgChartEdgePatch { positionLevel: Int } -"""The output of our update `AppLevelRequirement` mutation.""" -type UpdateAppLevelRequirementPayload { +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevelRequirement` that was updated by this mutation.""" - appLevelRequirement: AppLevelRequirement + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `updateAppLevelRequirement` mutation.""" -input UpdateAppLevelRequirementInput { +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -7533,33 +8336,111 @@ input UpdateAppLevelRequirementInput { id: UUID! """ - An object where the defined keys will be set on the `AppLevelRequirement` being updated. + An object where the defined keys will be set on the `AppLimit` being updated. """ - appLevelRequirementPatch: AppLevelRequirementPatch! + appLimitPatch: AppLimitPatch! } """ -Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. +Represents an update to a `AppLimit`. Fields that are set will be updated. """ -input AppLevelRequirementPatch { +input AppLimitPatch { id: UUID - """Name identifier of the requirement (matches step names)""" + """Name identifier of the limit being tracked""" name: String - """Name of the level this requirement belongs to""" - level: String + """User whose usage is being tracked against this limit""" + actorId: UUID - """Human-readable description of what this requirement entails""" - description: String + """Current usage count for this actor and limit""" + num: BigInt - """Number of steps needed to satisfy this requirement""" - requiredCount: Int + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt - """Display ordering priority; lower values appear first""" - priority: Int - createdAt: Datetime - updatedAt: Datetime + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput +} + +"""The output of our update `OrgLimitAggregate` mutation.""" +type UpdateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was updated by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the `updateOrgLimitAggregate` mutation.""" +input UpdateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitAggregate` being updated. + """ + orgLimitAggregatePatch: OrgLimitAggregatePatch! +} + +""" +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. +""" +input OrgLimitAggregatePatch { + id: UUID + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput } """The output of our update `OrgMemberProfile` mutation.""" @@ -7641,31 +8522,31 @@ input OrgMemberProfilePatch { """The `Upload` scalar type represents a file upload.""" scalar Upload -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { +"""The output of our update `OrgLimit` mutation.""" +type UpdateOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge } -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -7674,53 +8555,44 @@ input UpdateOrgMembershipSettingInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + An object where the defined keys will be set on the `OrgLimit` being updated. """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! + orgLimitPatch: OrgLimitPatch! } """ -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +Represents an update to a `OrgLimit`. Fields that are set will be updated. """ -input OrgMembershipSettingPatch { +input OrgLimitPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """References the entity these settings apply to""" - entityId: UUID + """Name identifier of the limit being tracked""" + name: String - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """User whose usage is being tracked against this limit""" + actorId: UUID - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """Current usage count for this actor and limit""" + num: BigInt """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - createChildCascadeAdmins: Boolean + max: BigInt """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. """ - createChildCascadeMembers: Boolean + softMax: BigInt - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window """ - populateMemberEmail: Boolean + windowDuration: IntervalInput + entityId: UUID } """The output of our update `AppLevel` mutation.""" @@ -7853,12 +8725,109 @@ input AppInvitePatch { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime updatedAt: Datetime } +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + """ + orgMembershipSettingPatch: OrgMembershipSettingPatch! +} + +""" +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +""" +input OrgMembershipSettingPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID + + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String +} + """The output of our update `OrgInvite` mutation.""" type UpdateOrgInvitePayload { """ @@ -7930,6 +8899,11 @@ input OrgInvitePatch { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime @@ -8002,11 +8976,6 @@ input AppMembershipPatch { """ isActive: Boolean - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -8221,6 +9190,72 @@ input DeleteOrgPermissionDefaultInput { id: UUID! } +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `AppAdminGrant` mutation.""" type DeleteAppAdminGrantPayload { """ @@ -8287,31 +9322,31 @@ input DeleteAppOwnerGrantInput { id: UUID! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppAchievement` mutation.""" +type DeleteAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppAchievement` that was deleted by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppAchievement` mutation.""" +input DeleteAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8320,31 +9355,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `AppStep` mutation.""" +type DeleteAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppStep` that was deleted by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteAppStep` mutation.""" +input DeleteAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8419,130 +9454,68 @@ input DeleteOrgOwnerGrantInput { id: UUID! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge } -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} - -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) """ - clientMutationId: String - id: UUID! + id: Int! } -"""The output of our delete `AppAchievement` mutation.""" -type DeleteAppAchievementPayload { +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAchievement` that was deleted by this mutation.""" - appAchievement: AppAchievement + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `deleteAppAchievement` mutation.""" -input DeleteAppAchievementInput { +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8551,31 +9524,31 @@ input DeleteAppAchievementInput { id: UUID! } -"""The output of our delete `AppStep` mutation.""" -type DeleteAppStepPayload { +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was deleted by this mutation.""" - appStep: AppStep + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `deleteAppStep` mutation.""" -input DeleteAppStepInput { +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8584,31 +9557,31 @@ input DeleteAppStepInput { id: UUID! } -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { +"""The output of our delete `AppLevelRequirement` mutation.""" +type DeleteAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `AppLevelRequirement` that was deleted by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { +"""All input for the `deleteAppLevelRequirement` mutation.""" +input DeleteAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8650,31 +9623,31 @@ input DeleteOrgChartEdgeGrantInput { id: UUID! } -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8683,43 +9656,6 @@ input DeleteOrgLimitInput { id: UUID! } -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge -} - -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! -} - """The output of our delete `AppGrant` mutation.""" type DeleteAppGrantPayload { """ @@ -8918,31 +9854,64 @@ input DeleteOrgChartEdgeInput { id: UUID! } -"""The output of our delete `AppLevelRequirement` mutation.""" -type DeleteAppLevelRequirementPayload { +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevelRequirement` that was deleted by this mutation.""" - appLevelRequirement: AppLevelRequirement + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge +} + +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `deleteAppLevelRequirement` mutation.""" -input DeleteAppLevelRequirementInput { +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -8984,31 +9953,31 @@ input DeleteOrgMemberProfileInput { id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -9083,6 +10052,39 @@ input DeleteAppInviteInput { id: UUID! } +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `OrgInvite` mutation.""" type DeleteOrgInvitePayload { """ @@ -9222,27 +10224,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! -} - -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! } """The root query type which gives access points into the data universe.""" @@ -9435,6 +10416,64 @@ type Query { orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] ): OrgPermissionDefaultConnection + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppPermissionFilter + + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgPermissionFilter + + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection + """Reads and enables pagination through a set of `AppAdminGrant`.""" appAdminGrants( """Only read the first `n` values of the set.""" @@ -9493,8 +10532,8 @@ type Query { orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): AppOwnerGrantConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `AppAchievement`.""" + appAchievements( """Only read the first `n` values of the set.""" first: Int @@ -9516,14 +10555,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: AppAchievementFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAchievementConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `AppStep`.""" + appSteps( """Only read the first `n` values of the set.""" first: Int @@ -9545,11 +10584,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: AppStepFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] + ): AppStepConnection """Reads and enables pagination through a set of `OrgAdminGrant`.""" orgAdminGrants( @@ -9609,8 +10648,8 @@ type Query { orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgOwnerGrantConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -9632,14 +10671,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: MembershipTypeFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -9661,14 +10700,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: AppLimitDefaultFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( """Only read the first `n` values of the set.""" first: Int @@ -9690,14 +10729,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitFilter + where: OrgLimitDefaultFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection - """Reads and enables pagination through a set of `AppAchievement`.""" - appAchievements( + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + appLevelRequirements( """Only read the first `n` values of the set.""" first: Int @@ -9719,14 +10758,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppAchievementFilter + where: AppLevelRequirementFilter - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAchievementConnection + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelRequirementConnection - """Reads and enables pagination through a set of `AppStep`.""" - appSteps( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -9748,11 +10787,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppStepFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] - ): AppStepConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection """Reads and enables pagination through a set of `AppClaimedInvite`.""" appClaimedInvites( @@ -9783,8 +10822,8 @@ type Query { orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Only read the first `n` values of the set.""" first: Int @@ -9806,14 +10845,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: AppGrantFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -9835,14 +10874,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -9864,14 +10903,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter - - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + where: OrgMembershipDefaultFilter - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection + + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -9893,14 +10932,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter + where: OrgClaimedInviteFilter - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -9922,14 +10961,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: AppLimitEventFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [NATURAL] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -9951,14 +10990,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: OrgLimitEventFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [NATURAL] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvites( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -9980,14 +11019,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgClaimedInviteFilter + where: OrgGrantFilter - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -10009,14 +11048,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgGrantFilter + where: OrgChartEdgeFilter - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Only read the first `n` values of the set.""" first: Int @@ -10038,14 +11077,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: AppLimitFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection - """Reads and enables pagination through a set of `AppLevelRequirement`.""" - appLevelRequirements( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Only read the first `n` values of the set.""" first: Int @@ -10067,11 +11106,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLevelRequirementFilter + where: OrgLimitAggregateFilter - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLevelRequirementConnection + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection """Reads and enables pagination through a set of `OrgMemberProfile`.""" orgMemberProfiles( @@ -10102,8 +11141,8 @@ type Query { orderBy: [OrgMemberProfileOrderBy!] = [PRIMARY_KEY_ASC] ): OrgMemberProfileConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( """Only read the first `n` values of the set.""" first: Int @@ -10125,11 +11164,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter + where: OrgLimitFilter - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection """Reads and enables pagination through a set of `AppLevel`.""" appLevels( @@ -10189,6 +11228,35 @@ type Query { orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] ): AppInviteConnection + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgMembershipSettingFilter + + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection + """Reads and enables pagination through a set of `OrgInvite`.""" orgInvites( """Only read the first `n` values of the set.""" @@ -10323,6 +11391,22 @@ type Mutation { input: CreateOrgPermissionDefaultInput! ): CreateOrgPermissionDefaultPayload + """Creates a single `AppPermission`.""" + createAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + """Creates a single `AppAdminGrant`.""" createAppAdminGrant( """ @@ -10339,21 +11423,21 @@ type Mutation { input: CreateAppOwnerGrantInput! ): CreateAppOwnerGrantPayload - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( + """Creates a single `AppAchievement`.""" + createAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload + input: CreateAppAchievementInput! + ): CreateAppAchievementPayload - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( + """Creates a single `AppStep`.""" + createAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload + input: CreateAppStepInput! + ): CreateAppStepPayload """Creates a single `OrgAdminGrant`.""" createOrgAdminGrant( @@ -10371,53 +11455,37 @@ type Mutation { input: CreateOrgOwnerGrantInput! ): CreateOrgOwnerGrantPayload - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload - - """Creates a single `AppLimit`.""" - createAppLimit( + """Creates a single `MembershipType`.""" + createMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload - """Creates a single `AppAchievement`.""" - createAppAchievement( + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppAchievementInput! - ): CreateAppAchievementPayload + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload - """Creates a single `AppStep`.""" - createAppStep( + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppStepInput! - ): CreateAppStepPayload + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload - """Creates a single `AppClaimedInvite`.""" - createAppClaimedInvite( + """Creates a single `AppLevelRequirement`.""" + createAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload + input: CreateAppLevelRequirementInput! + ): CreateAppLevelRequirementPayload """Creates a single `OrgChartEdgeGrant`.""" createOrgChartEdgeGrant( @@ -10427,21 +11495,13 @@ type Mutation { input: CreateOrgChartEdgeGrantInput! ): CreateOrgChartEdgeGrantPayload - """Creates a single `OrgLimit`.""" - createOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload - - """Creates a single `MembershipType`.""" - createMembershipType( + """Creates a single `AppClaimedInvite`.""" + createAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload + input: CreateAppClaimedInviteInput! + ): CreateAppClaimedInvitePayload """Creates a single `AppGrant`.""" createAppGrant( @@ -10475,6 +11535,22 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload + + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload + """Creates a single `OrgGrant`.""" createOrgGrant( """ @@ -10491,13 +11567,21 @@ type Mutation { input: CreateOrgChartEdgeInput! ): CreateOrgChartEdgePayload - """Creates a single `AppLevelRequirement`.""" - createAppLevelRequirement( + """Creates a single `AppLimit`.""" + createAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLevelRequirementInput! - ): CreateAppLevelRequirementPayload + input: CreateAppLimitInput! + ): CreateAppLimitPayload + + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload """Creates a single `OrgMemberProfile`.""" createOrgMemberProfile( @@ -10507,13 +11591,13 @@ type Mutation { input: CreateOrgMemberProfileInput! ): CreateOrgMemberProfilePayload - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( + """Creates a single `OrgLimit`.""" + createOrgLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload """Creates a single `AppLevel`.""" createAppLevel( @@ -10531,6 +11615,14 @@ type Mutation { input: CreateAppInviteInput! ): CreateAppInvitePayload + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload + """Creates a single `OrgInvite`.""" createOrgInvite( """ @@ -10570,18 +11662,34 @@ type Mutation { """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppPermissionDefaultInput! - ): UpdateAppPermissionDefaultPayload + input: UpdateAppPermissionDefaultInput! + ): UpdateAppPermissionDefaultPayload + + """ + Updates a single `OrgPermissionDefault` using a unique key and a patch. + """ + updateOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultInput! + ): UpdateOrgPermissionDefaultPayload + + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload - """ - Updates a single `OrgPermissionDefault` using a unique key and a patch. - """ - updateOrgPermissionDefault( + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgPermissionDefaultInput! - ): UpdateOrgPermissionDefaultPayload + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload """Updates a single `AppAdminGrant` using a unique key and a patch.""" updateAppAdminGrant( @@ -10599,21 +11707,21 @@ type Mutation { input: UpdateAppOwnerGrantInput! ): UpdateAppOwnerGrantPayload - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( + """Updates a single `AppAchievement` using a unique key and a patch.""" + updateAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload + input: UpdateAppAchievementInput! + ): UpdateAppAchievementPayload - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( + """Updates a single `AppStep` using a unique key and a patch.""" + updateAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload + input: UpdateAppStepInput! + ): UpdateAppStepPayload """Updates a single `OrgAdminGrant` using a unique key and a patch.""" updateOrgAdminGrant( @@ -10631,53 +11739,37 @@ type Mutation { input: UpdateOrgOwnerGrantInput! ): UpdateOrgOwnerGrantPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload - """Updates a single `AppAchievement` using a unique key and a patch.""" - updateAppAchievement( + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppAchievementInput! - ): UpdateAppAchievementPayload + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload - """Updates a single `AppStep` using a unique key and a patch.""" - updateAppStep( + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppStepInput! - ): UpdateAppStepPayload + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" - updateAppClaimedInvite( + """Updates a single `AppLevelRequirement` using a unique key and a patch.""" + updateAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload + input: UpdateAppLevelRequirementInput! + ): UpdateAppLevelRequirementPayload """Updates a single `OrgChartEdgeGrant` using a unique key and a patch.""" updateOrgChartEdgeGrant( @@ -10687,21 +11779,13 @@ type Mutation { input: UpdateOrgChartEdgeGrantInput! ): UpdateOrgChartEdgeGrantPayload - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload - - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" + updateAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload + input: UpdateAppClaimedInviteInput! + ): UpdateAppClaimedInvitePayload """Updates a single `AppGrant` using a unique key and a patch.""" updateAppGrant( @@ -10755,13 +11839,21 @@ type Mutation { input: UpdateOrgChartEdgeInput! ): UpdateOrgChartEdgePayload - """Updates a single `AppLevelRequirement` using a unique key and a patch.""" - updateAppLevelRequirement( + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLevelRequirementInput! - ): UpdateAppLevelRequirementPayload + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload + + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload """Updates a single `OrgMemberProfile` using a unique key and a patch.""" updateOrgMemberProfile( @@ -10771,15 +11863,13 @@ type Mutation { input: UpdateOrgMemberProfileInput! ): UpdateOrgMemberProfilePayload - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload """Updates a single `AppLevel` using a unique key and a patch.""" updateAppLevel( @@ -10797,6 +11887,16 @@ type Mutation { input: UpdateAppInviteInput! ): UpdateAppInvitePayload + """ + Updates a single `OrgMembershipSetting` using a unique key and a patch. + """ + updateOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload + """Updates a single `OrgInvite` using a unique key and a patch.""" updateOrgInvite( """ @@ -10845,6 +11945,22 @@ type Mutation { input: DeleteOrgPermissionDefaultInput! ): DeleteOrgPermissionDefaultPayload + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + """Deletes a single `AppAdminGrant` using a unique key.""" deleteAppAdminGrant( """ @@ -10861,21 +11977,21 @@ type Mutation { input: DeleteAppOwnerGrantInput! ): DeleteAppOwnerGrantPayload - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( + """Deletes a single `AppAchievement` using a unique key.""" + deleteAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload + input: DeleteAppAchievementInput! + ): DeleteAppAchievementPayload - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( + """Deletes a single `AppStep` using a unique key.""" + deleteAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload + input: DeleteAppStepInput! + ): DeleteAppStepPayload """Deletes a single `OrgAdminGrant` using a unique key.""" deleteOrgAdminGrant( @@ -10893,53 +12009,37 @@ type Mutation { input: DeleteOrgOwnerGrantInput! ): DeleteOrgOwnerGrantPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload - - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload - """Deletes a single `AppAchievement` using a unique key.""" - deleteAppAchievement( + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppAchievementInput! - ): DeleteAppAchievementPayload + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload - """Deletes a single `AppStep` using a unique key.""" - deleteAppStep( + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppStepInput! - ): DeleteAppStepPayload + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( + """Deletes a single `AppLevelRequirement` using a unique key.""" + deleteAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload + input: DeleteAppLevelRequirementInput! + ): DeleteAppLevelRequirementPayload """Deletes a single `OrgChartEdgeGrant` using a unique key.""" deleteOrgChartEdgeGrant( @@ -10949,21 +12049,13 @@ type Mutation { input: DeleteOrgChartEdgeGrantInput! ): DeleteOrgChartEdgeGrantPayload - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload - - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( + """Deletes a single `AppClaimedInvite` using a unique key.""" + deleteAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload + input: DeleteAppClaimedInviteInput! + ): DeleteAppClaimedInvitePayload """Deletes a single `AppGrant` using a unique key.""" deleteAppGrant( @@ -11013,13 +12105,21 @@ type Mutation { input: DeleteOrgChartEdgeInput! ): DeleteOrgChartEdgePayload - """Deletes a single `AppLevelRequirement` using a unique key.""" - deleteAppLevelRequirement( + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLevelRequirementInput! - ): DeleteAppLevelRequirementPayload + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload + + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload """Deletes a single `OrgMemberProfile` using a unique key.""" deleteOrgMemberProfile( @@ -11029,13 +12129,13 @@ type Mutation { input: DeleteOrgMemberProfileInput! ): DeleteOrgMemberProfilePayload - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload """Deletes a single `AppLevel` using a unique key.""" deleteAppLevel( @@ -11053,6 +12153,14 @@ type Mutation { input: DeleteAppInviteInput! ): DeleteAppInvitePayload + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload + """Deletes a single `OrgInvite` using a unique key.""" deleteOrgInvite( """ @@ -11090,18 +12198,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/constructive-sdk/schemas/app.graphql b/sdk/constructive-sdk/schemas/app.graphql index 9f1e36a1d..c5ee475f6 100644 --- a/sdk/constructive-sdk/schemas/app.graphql +++ b/sdk/constructive-sdk/schemas/app.graphql @@ -193,11 +193,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! } """ @@ -209,22 +204,6 @@ to unexpected results. """ scalar Datetime -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! -} - """The root query type which gives access points into the data universe.""" type Query { """ @@ -250,18 +229,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/constructive-sdk/schemas/auth.graphql b/sdk/constructive-sdk/schemas/auth.graphql index f1a5922e9..9c5551c80 100644 --- a/sdk/constructive-sdk/schemas/auth.graphql +++ b/sdk/constructive-sdk/schemas/auth.graphql @@ -4378,27 +4378,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! -} - -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! } """The root query type which gives access points into the data universe.""" @@ -5004,18 +4983,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/constructive-sdk/schemas/objects.graphql b/sdk/constructive-sdk/schemas/objects.graphql index c5b7b8027..98a0969f3 100644 --- a/sdk/constructive-sdk/schemas/objects.graphql +++ b/sdk/constructive-sdk/schemas/objects.graphql @@ -1887,27 +1887,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! -} - -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! } """The root query type which gives access points into the data universe.""" @@ -2255,18 +2234,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/constructive-sdk/schemas/public.graphql b/sdk/constructive-sdk/schemas/public.graphql index c5753ff28..a99747048 100644 --- a/sdk/constructive-sdk/schemas/public.graphql +++ b/sdk/constructive-sdk/schemas/public.graphql @@ -129,52 +129,6 @@ type GetAllEdge { node: GetAllRecord } -"""A connection to a list of `Object` values.""" -type ObjectConnection { - """A list of `Object` objects.""" - nodes: [Object]! - - """ - A list of edges which contains the `Object` and cursor to aid in pagination. - """ - edges: [ObjectEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `Object` you could get from the connection.""" - totalCount: Int! -} - -type Object { - hashUuid: UUID - id: UUID! - databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime -} - -""" -A point in time as described by the [ISO -8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC -3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values -that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead -to unexpected results. -""" -scalar Datetime - -"""A `Object` edge in the connection.""" -type ObjectEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `Object` at the end of the edge.""" - node: Object -} - """A connection to a list of `AppPermission` values.""" type AppPermissionConnection { """A list of `AppPermission` objects.""" @@ -273,6 +227,52 @@ type OrgPermissionEdge { node: OrgPermission } +"""A connection to a list of `Object` values.""" +type ObjectConnection { + """A list of `Object` objects.""" + nodes: [Object]! + + """ + A list of edges which contains the `Object` and cursor to aid in pagination. + """ + edges: [ObjectEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Object` you could get from the connection.""" + totalCount: Int! +} + +type Object { + hashUuid: UUID + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime +} + +""" +A point in time as described by the [ISO +8601](https://en.wikipedia.org/wiki/ISO_8601) and, if it has a timezone, [RFC +3339](https://datatracker.ietf.org/doc/html/rfc3339) standards. Input values +that do not conform to both ISO 8601 and RFC 3339 may be coerced, which may lead +to unexpected results. +""" +scalar Datetime + +"""A `Object` edge in the connection.""" +type ObjectEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Object` at the end of the edge.""" + node: Object +} + """A connection to a list of `AppLevelRequirement` values.""" type AppLevelRequirementConnection { """A list of `AppLevelRequirement` objects.""" @@ -1302,6 +1302,35 @@ type User { orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] ): OrgLimitConnection! + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregatesByEntityId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitAggregateFilter + + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection! + """Reads and enables pagination through a set of `AppStep`.""" appStepsByActorId( """Only read the first `n` values of the set.""" @@ -1795,64 +1824,37 @@ type User { orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] ): AuditLogConnection! - """ - TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. - """ - searchTsvRank: Float - - """ - TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. - """ - displayNameTrgmSimilarity: Float - - """ - Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. - """ - searchScore: Float -} - -scalar ConstructiveInternalTypeImage - -"""A full-text search tsvector value represented as a string.""" -scalar FullText - -type RoleType { - id: Int! - name: String! -} + """Reads and enables pagination through a set of `AgentThread`.""" + agentThreadsByEntityId( + """Only read the first `n` values of the set.""" + first: Int -"""A connection to a list of `Database` values.""" -type DatabaseConnection { - """A list of `Database` objects.""" - nodes: [Database]! + """Only read the last `n` values of the set.""" + last: Int - """ - A list of edges which contains the `Database` and cursor to aid in pagination. - """ - edges: [DatabaseEdge]! + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int - """Information to aid in pagination.""" - pageInfo: PageInfo! + """Read all values in the set before (above) this cursor.""" + before: Cursor - """The count of *all* `Database` you could get from the connection.""" - totalCount: Int! -} + """Read all values in the set after (below) this cursor.""" + after: Cursor -type Database { - id: UUID! - ownerId: UUID - schemaHash: String - name: String - label: String - hash: UUID - createdAt: Datetime - updatedAt: Datetime + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentThreadFilter - """Reads a single `User` that is related to this `Database`.""" - owner: User + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentThreadConnection! - """Reads and enables pagination through a set of `Schema`.""" - schemas( + """Reads and enables pagination through a set of `AgentThread`.""" + ownedAgentThreads( """Only read the first `n` values of the set.""" first: Int @@ -1874,14 +1876,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: SchemaFilter + where: AgentThreadFilter - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaConnection! + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentThreadConnection! - """Reads and enables pagination through a set of `Table`.""" - tables( + """Reads and enables pagination through a set of `AgentMessage`.""" + ownedAgentMessages( """Only read the first `n` values of the set.""" first: Int @@ -1903,14 +1905,14 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableFilter + where: AgentMessageFilter - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection! + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection! - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( + """Reads and enables pagination through a set of `AgentTask`.""" + ownedAgentTasks( """Only read the first `n` values of the set.""" first: Int @@ -1932,14 +1934,157 @@ type Database { """ A filter to be used in determining which values should be returned by the collection. """ - where: CheckConstraintFilter + where: AgentTaskFilter - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection! + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection! - """Reads and enables pagination through a set of `Field`.""" - fields( + """ + TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. + """ + searchTsvRank: Float + + """ + TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. + """ + displayNameTrgmSimilarity: Float + + """ + Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. + """ + searchScore: Float +} + +scalar ConstructiveInternalTypeImage + +"""A full-text search tsvector value represented as a string.""" +scalar FullText + +type RoleType { + id: Int! + name: String! +} + +"""A connection to a list of `Database` values.""" +type DatabaseConnection { + """A list of `Database` objects.""" + nodes: [Database]! + + """ + A list of edges which contains the `Database` and cursor to aid in pagination. + """ + edges: [DatabaseEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `Database` you could get from the connection.""" + totalCount: Int! +} + +type Database { + id: UUID! + ownerId: UUID + schemaHash: String + name: String + label: String + hash: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `Database`.""" + owner: User + + """Reads and enables pagination through a set of `Schema`.""" + schemas( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SchemaFilter + + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection! + + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection! + + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: CheckConstraintFilter + + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection! + + """Reads and enables pagination through a set of `Field`.""" + fields( """Only read the first `n` values of the set.""" first: Int @@ -3642,6 +3787,12 @@ type Database { orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): NotificationsModuleConnection! + """Reads a single `PlansModule` that is related to this `Database`.""" + plansModule: PlansModule + + """Reads a single `BillingModule` that is related to this `Database`.""" + billingModule: BillingModule + """ Reads and enables pagination through a set of `DatabaseProvisionModule`. """ @@ -5699,6 +5850,18 @@ input DatabaseFilter { """`notificationsModules` exist.""" notificationsModulesExist: Boolean + """Filter by the object’s `plansModule` relation.""" + plansModule: PlansModuleFilter + + """A related `plansModule` exists.""" + plansModuleExists: Boolean + + """Filter by the object’s `billingModule` relation.""" + billingModule: BillingModuleFilter + + """A related `billingModule` exists.""" + billingModuleExists: Boolean + """Filter by the object’s `databaseProvisionModules` relation.""" databaseProvisionModules: DatabaseToManyDatabaseProvisionModuleFilter @@ -5962,6 +6125,12 @@ input UserFilter { """`orgLimitsByEntityId` exist.""" orgLimitsByEntityIdExist: Boolean + """Filter by the object’s `orgLimitAggregatesByEntityId` relation.""" + orgLimitAggregatesByEntityId: UserToManyOrgLimitAggregateFilter + + """`orgLimitAggregatesByEntityId` exist.""" + orgLimitAggregatesByEntityIdExist: Boolean + """Filter by the object’s `appStepsByActorId` relation.""" appStepsByActorId: UserToManyAppStepFilter @@ -6064,6 +6233,30 @@ input UserFilter { """`auditLogsByActorId` exist.""" auditLogsByActorIdExist: Boolean + """Filter by the object’s `agentThreadsByEntityId` relation.""" + agentThreadsByEntityId: UserToManyAgentThreadFilter + + """`agentThreadsByEntityId` exist.""" + agentThreadsByEntityIdExist: Boolean + + """Filter by the object’s `ownedAgentThreads` relation.""" + ownedAgentThreads: UserToManyAgentThreadFilter + + """`ownedAgentThreads` exist.""" + ownedAgentThreadsExist: Boolean + + """Filter by the object’s `ownedAgentMessages` relation.""" + ownedAgentMessages: UserToManyAgentMessageFilter + + """`ownedAgentMessages` exist.""" + ownedAgentMessagesExist: Boolean + + """Filter by the object’s `ownedAgentTasks` relation.""" + ownedAgentTasks: UserToManyAgentTaskFilter + + """`ownedAgentTasks` exist.""" + ownedAgentTasksExist: Boolean + """TSV search on the `search_tsv` column.""" tsvSearchTsv: String @@ -6392,9 +6585,6 @@ input AppMembershipFilter { """Filter by the object’s `isActive` field.""" isActive: BooleanFilter - """Filter by the object’s `isExternal` field.""" - isExternal: BooleanFilter - """Filter by the object’s `isOwner` field.""" isOwner: BooleanFilter @@ -6903,9 +7093,15 @@ input OrgMembershipSettingFilter { """Filter by the object’s `allowExternalMembers` field.""" allowExternalMembers: BooleanFilter + """Filter by the object’s `inviteProfileAssignmentMode` field.""" + inviteProfileAssignmentMode: StringFilter + """Filter by the object’s `populateMemberEmail` field.""" populateMemberEmail: BooleanFilter + """Filter by the object’s `limitAllocationMode` field.""" + limitAllocationMode: StringFilter + """Checks for all expressions in this list.""" and: [OrgMembershipSettingFilter!] @@ -7370,10 +7566,19 @@ input AppLimitFilter { actorId: UUIDFilter """Filter by the object’s `num` field.""" - num: IntFilter + num: BigIntFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter """Checks for all expressions in this list.""" and: [AppLimitFilter!] @@ -7388,6 +7593,124 @@ input AppLimitFilter { actor: UserFilter } +""" +A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ +""" +input BigIntFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: BigInt + + """Not equal to the specified value.""" + notEqualTo: BigInt + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: BigInt + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: BigInt + + """Included in the specified list.""" + in: [BigInt!] + + """Not included in the specified list.""" + notIn: [BigInt!] + + """Less than the specified value.""" + lessThan: BigInt + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: BigInt + + """Greater than the specified value.""" + greaterThan: BigInt + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: BigInt +} + +""" +A signed eight-byte integer. The upper big integer values are greater than the +max value for a JavaScript number. Therefore all big integers will be output as +strings and not numbers. +""" +scalar BigInt + +""" +A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ +""" +input IntervalFilter { + """ + Is null (if `true` is specified) or is not null (if `false` is specified). + """ + isNull: Boolean + + """Equal to the specified value.""" + equalTo: IntervalInput + + """Not equal to the specified value.""" + notEqualTo: IntervalInput + + """ + Not equal to the specified value, treating null like an ordinary value. + """ + distinctFrom: IntervalInput + + """Equal to the specified value, treating null like an ordinary value.""" + notDistinctFrom: IntervalInput + + """Included in the specified list.""" + in: [IntervalInput!] + + """Not included in the specified list.""" + notIn: [IntervalInput!] + + """Less than the specified value.""" + lessThan: IntervalInput + + """Less than or equal to the specified value.""" + lessThanOrEqualTo: IntervalInput + + """Greater than the specified value.""" + greaterThan: IntervalInput + + """Greater than or equal to the specified value.""" + greaterThanOrEqualTo: IntervalInput +} + +""" +An interval of time that has passed where the smallest distinct unit is a second. +""" +input IntervalInput { + """ + A quantity of seconds. This is the only non-integer field, as all the other + fields will dump their overflow into a smaller unit of time. Intervals don’t + have a smaller unit than seconds. + """ + seconds: Float + + """A quantity of minutes.""" + minutes: Int + + """A quantity of hours.""" + hours: Int + + """A quantity of days.""" + days: Int + + """A quantity of months.""" + months: Int + + """A quantity of years.""" + years: Int +} + """ A filter to be used against many `OrgLimit` object types. All fields are combined with a logical ‘and.’ """ @@ -7416,10 +7739,19 @@ input OrgLimitFilter { actorId: UUIDFilter """Filter by the object’s `num` field.""" - num: IntFilter + num: BigIntFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter """Filter by the object’s `entityId` field.""" entityId: UUIDFilter @@ -7440,6 +7772,61 @@ input OrgLimitFilter { entity: UserFilter } +""" +A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyOrgLimitAggregateFilter { + """Filters to entities where at least one related entity matches.""" + some: OrgLimitAggregateFilter + + """Filters to entities where every related entity matches.""" + every: OrgLimitAggregateFilter + + """Filters to entities where no related entity matches.""" + none: OrgLimitAggregateFilter +} + +""" +A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ +""" +input OrgLimitAggregateFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `num` field.""" + num: BigIntFilter + + """Filter by the object’s `max` field.""" + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter + + """Filter by the object’s `windowStart` field.""" + windowStart: DatetimeFilter + + """Filter by the object’s `windowDuration` field.""" + windowDuration: IntervalFilter + + """Checks for all expressions in this list.""" + and: [OrgLimitAggregateFilter!] + + """Checks for any expressions in this list.""" + or: [OrgLimitAggregateFilter!] + + """Negates the expression.""" + not: OrgLimitAggregateFilter + + """Filter by the object’s `entity` relation.""" + entity: UserFilter +} + """ A filter to be used against many `AppStep` object types. All fields are combined with a logical ‘and.’ """ @@ -8001,55 +8388,6 @@ input Base64EncodedBinaryFilter { """Binary data encoded using Base64""" scalar Base64EncodedBinary -""" -A filter to be used against BigInt fields. All fields are combined with a logical ‘and.’ -""" -input BigIntFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: BigInt - - """Not equal to the specified value.""" - notEqualTo: BigInt - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: BigInt - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: BigInt - - """Included in the specified list.""" - in: [BigInt!] - - """Not included in the specified list.""" - notIn: [BigInt!] - - """Less than the specified value.""" - lessThan: BigInt - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: BigInt - - """Greater than the specified value.""" - greaterThan: BigInt - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: BigInt -} - -""" -A signed eight-byte integer. The upper big integer values are greater than the -max value for a JavaScript number. Therefore all big integers will be output as -strings and not numbers. -""" -scalar BigInt - """ A filter to be used against many `AppInvite` object types. All fields are combined with a logical ‘and.’ """ @@ -8092,6 +8430,9 @@ input AppInviteFilter { """Filter by the object’s `multiple` field.""" multiple: BooleanFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + """Filter by the object’s `expiresAt` field.""" expiresAt: DatetimeFilter @@ -8214,6 +8555,9 @@ input OrgInviteFilter { """Filter by the object’s `multiple` field.""" multiple: BooleanFilter + """Filter by the object’s `profileId` field.""" + profileId: UUIDFilter + """Filter by the object’s `expiresAt` field.""" expiresAt: DatetimeFilter @@ -8558,6 +8902,232 @@ input InternetAddressFilter { containsOrContainedBy: InternetAddress } +""" +A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyAgentThreadFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentThreadFilter + + """Filters to entities where every related entity matches.""" + every: AgentThreadFilter + + """Filters to entities where no related entity matches.""" + none: AgentThreadFilter +} + +""" +A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadFilter { + """Filter by the object’s `title` field.""" + title: StringFilter + + """Filter by the object’s `mode` field.""" + mode: StringFilter + + """Filter by the object’s `model` field.""" + model: StringFilter + + """Filter by the object’s `systemPrompt` field.""" + systemPrompt: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentThreadFilter!] + + """Checks for any expressions in this list.""" + or: [AgentThreadFilter!] + + """Negates the expression.""" + not: AgentThreadFilter + + """Filter by the object’s `entity` relation.""" + entity: UserFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """Filter by the object’s `agentMessagesByThreadId` relation.""" + agentMessagesByThreadId: AgentThreadToManyAgentMessageFilter + + """`agentMessagesByThreadId` exist.""" + agentMessagesByThreadIdExist: Boolean + + """Filter by the object’s `agentTasksByThreadId` relation.""" + agentTasksByThreadId: AgentThreadToManyAgentTaskFilter + + """`agentTasksByThreadId` exist.""" + agentTasksByThreadIdExist: Boolean +} + +""" +A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadToManyAgentMessageFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentMessageFilter + + """Filters to entities where every related entity matches.""" + every: AgentMessageFilter + + """Filters to entities where no related entity matches.""" + none: AgentMessageFilter +} + +""" +A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input AgentMessageFilter { + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `authorRole` field.""" + authorRole: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `parts` field.""" + parts: JSONFilter + + """Checks for all expressions in this list.""" + and: [AgentMessageFilter!] + + """Checks for any expressions in this list.""" + or: [AgentMessageFilter!] + + """Negates the expression.""" + not: AgentMessageFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """Filter by the object’s `thread` relation.""" + thread: AgentThreadFilter +} + +""" +A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input AgentThreadToManyAgentTaskFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentTaskFilter + + """Filters to entities where every related entity matches.""" + every: AgentTaskFilter + + """Filters to entities where no related entity matches.""" + none: AgentTaskFilter +} + +""" +A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input AgentTaskFilter { + """Filter by the object’s `threadId` field.""" + threadId: UUIDFilter + + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `source` field.""" + source: StringFilter + + """Filter by the object’s `error` field.""" + error: StringFilter + + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + + """Filter by the object’s `ownerId` field.""" + ownerId: UUIDFilter + + """Filter by the object’s `status` field.""" + status: StringFilter + + """Checks for all expressions in this list.""" + and: [AgentTaskFilter!] + + """Checks for any expressions in this list.""" + or: [AgentTaskFilter!] + + """Negates the expression.""" + not: AgentTaskFilter + + """Filter by the object’s `owner` relation.""" + owner: UserFilter + + """Filter by the object’s `thread` relation.""" + thread: AgentThreadFilter +} + +""" +A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyAgentMessageFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentMessageFilter + + """Filters to entities where every related entity matches.""" + every: AgentMessageFilter + + """Filters to entities where no related entity matches.""" + none: AgentMessageFilter +} + +""" +A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ +""" +input UserToManyAgentTaskFilter { + """Filters to entities where at least one related entity matches.""" + some: AgentTaskFilter + + """Filters to entities where every related entity matches.""" + every: AgentTaskFilter + + """Filters to entities where no related entity matches.""" + none: AgentTaskFilter +} + """ A filter to be used against many `Schema` object types. All fields are combined with a logical ‘and.’ """ @@ -12926,6 +13496,9 @@ input LimitsModuleFilter { """Filter by the object’s `limitCheckFunction` field.""" limitCheckFunction: StringFilter + """Filter by the object’s `aggregateTableId` field.""" + aggregateTableId: UUIDFilter + """Filter by the object’s `prefix` field.""" prefix: StringFilter @@ -12950,6 +13523,12 @@ input LimitsModuleFilter { """Filter by the object’s `actorTable` relation.""" actorTable: TableFilter + """Filter by the object’s `aggregateTable` relation.""" + aggregateTable: TableFilter + + """A related `aggregateTable` exists.""" + aggregateTableExists: Boolean + """Filter by the object’s `database` relation.""" database: DatabaseFilter @@ -13432,6 +14011,12 @@ input ProfilesModuleFilter { """Filter by the object’s `profileDefinitionGrantsTableName` field.""" profileDefinitionGrantsTableName: StringFilter + """Filter by the object’s `profileTemplatesTableId` field.""" + profileTemplatesTableId: UUIDFilter + + """Filter by the object’s `profileTemplatesTableName` field.""" + profileTemplatesTableName: StringFilter + """Filter by the object’s `membershipType` field.""" membershipType: IntFilter @@ -13489,6 +14074,9 @@ input ProfilesModuleFilter { """Filter by the object’s `profilePermissionsTable` relation.""" profilePermissionsTable: TableFilter + """Filter by the object’s `profileTemplatesTable` relation.""" + profileTemplatesTable: TableFilter + """Filter by the object’s `schema` relation.""" schema: SchemaFilter @@ -13696,75 +14284,6 @@ input SessionsModuleFilter { usersTable: TableFilter } -""" -A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ -""" -input IntervalFilter { - """ - Is null (if `true` is specified) or is not null (if `false` is specified). - """ - isNull: Boolean - - """Equal to the specified value.""" - equalTo: IntervalInput - - """Not equal to the specified value.""" - notEqualTo: IntervalInput - - """ - Not equal to the specified value, treating null like an ordinary value. - """ - distinctFrom: IntervalInput - - """Equal to the specified value, treating null like an ordinary value.""" - notDistinctFrom: IntervalInput - - """Included in the specified list.""" - in: [IntervalInput!] - - """Not included in the specified list.""" - notIn: [IntervalInput!] - - """Less than the specified value.""" - lessThan: IntervalInput - - """Less than or equal to the specified value.""" - lessThanOrEqualTo: IntervalInput - - """Greater than the specified value.""" - greaterThan: IntervalInput - - """Greater than or equal to the specified value.""" - greaterThanOrEqualTo: IntervalInput -} - -""" -An interval of time that has passed where the smallest distinct unit is a second. -""" -input IntervalInput { - """ - A quantity of seconds. This is the only non-integer field, as all the other - fields will dump their overflow into a smaller unit of time. Intervals don’t - have a smaller unit than seconds. - """ - seconds: Float - - """A quantity of minutes.""" - minutes: Int - - """A quantity of hours.""" - hours: Int - - """A quantity of days.""" - days: Int - - """A quantity of months.""" - months: Int - - """A quantity of years.""" - years: Int -} - """ A filter to be used against many `UserAuthModule` object types. All fields are combined with a logical ‘and.’ """ @@ -14398,18 +14917,12 @@ input StorageModuleFilter { """Filter by the object’s `filesTableId` field.""" filesTableId: UUIDFilter - """Filter by the object’s `uploadRequestsTableId` field.""" - uploadRequestsTableId: UUIDFilter - """Filter by the object’s `bucketsTableName` field.""" bucketsTableName: StringFilter """Filter by the object’s `filesTableName` field.""" filesTableName: StringFilter - """Filter by the object’s `uploadRequestsTableName` field.""" - uploadRequestsTableName: StringFilter - """Filter by the object’s `membershipType` field.""" membershipType: IntFilter @@ -14434,6 +14947,9 @@ input StorageModuleFilter { """Filter by the object’s `allowedOrigins` field.""" allowedOrigins: StringListFilter + """Filter by the object’s `restrictReads` field.""" + restrictReads: BooleanFilter + """Filter by the object’s `uploadUrlExpirySeconds` field.""" uploadUrlExpirySeconds: IntFilter @@ -14478,9 +14994,6 @@ input StorageModuleFilter { """Filter by the object’s `schema` relation.""" schema: SchemaFilter - - """Filter by the object’s `uploadRequestsTable` relation.""" - uploadRequestsTable: TableFilter } """ @@ -15028,6 +15541,145 @@ input NotificationsModuleFilter { userSettingsTableByUserSettingsTableIdExists: Boolean } +""" +A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ +""" +input PlansModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `plansTableId` field.""" + plansTableId: UUIDFilter + + """Filter by the object’s `plansTableName` field.""" + plansTableName: StringFilter + + """Filter by the object’s `planLimitsTableId` field.""" + planLimitsTableId: UUIDFilter + + """Filter by the object’s `planLimitsTableName` field.""" + planLimitsTableName: StringFilter + + """Filter by the object’s `applyPlanFunction` field.""" + applyPlanFunction: StringFilter + + """Filter by the object’s `applyPlanAggregateFunction` field.""" + applyPlanAggregateFunction: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [PlansModuleFilter!] + + """Checks for any expressions in this list.""" + or: [PlansModuleFilter!] + + """Negates the expression.""" + not: PlansModuleFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `planLimitsTable` relation.""" + planLimitsTable: TableFilter + + """Filter by the object’s `plansTable` relation.""" + plansTable: TableFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + +""" +A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ +""" +input BillingModuleFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `schemaId` field.""" + schemaId: UUIDFilter + + """Filter by the object’s `privateSchemaId` field.""" + privateSchemaId: UUIDFilter + + """Filter by the object’s `metersTableId` field.""" + metersTableId: UUIDFilter + + """Filter by the object’s `metersTableName` field.""" + metersTableName: StringFilter + + """Filter by the object’s `planSubscriptionsTableId` field.""" + planSubscriptionsTableId: UUIDFilter + + """Filter by the object’s `planSubscriptionsTableName` field.""" + planSubscriptionsTableName: StringFilter + + """Filter by the object’s `ledgerTableId` field.""" + ledgerTableId: UUIDFilter + + """Filter by the object’s `ledgerTableName` field.""" + ledgerTableName: StringFilter + + """Filter by the object’s `balancesTableId` field.""" + balancesTableId: UUIDFilter + + """Filter by the object’s `balancesTableName` field.""" + balancesTableName: StringFilter + + """Filter by the object’s `recordUsageFunction` field.""" + recordUsageFunction: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Checks for all expressions in this list.""" + and: [BillingModuleFilter!] + + """Checks for any expressions in this list.""" + or: [BillingModuleFilter!] + + """Negates the expression.""" + not: BillingModuleFilter + + """Filter by the object’s `balancesTable` relation.""" + balancesTable: TableFilter + + """Filter by the object’s `database` relation.""" + database: DatabaseFilter + + """Filter by the object’s `ledgerTable` relation.""" + ledgerTable: TableFilter + + """Filter by the object’s `metersTable` relation.""" + metersTable: TableFilter + + """Filter by the object’s `planSubscriptionsTable` relation.""" + planSubscriptionsTable: TableFilter + + """Filter by the object’s `privateSchema` relation.""" + privateSchema: SchemaFilter + + """Filter by the object’s `schema` relation.""" + schema: SchemaFilter +} + """ A filter to be used against many `DatabaseProvisionModule` object types. All fields are combined with a logical ‘and.’ """ @@ -19277,6 +19929,7 @@ type LimitsModule { limitDecrementTrigger: String! limitUpdateTrigger: String! limitCheckFunction: String! + aggregateTableId: UUID prefix: String membershipType: Int! entityTableId: UUID @@ -19285,6 +19938,9 @@ type LimitsModule { """Reads a single `Table` that is related to this `LimitsModule`.""" actorTable: Table + """Reads a single `Table` that is related to this `LimitsModule`.""" + aggregateTable: Table + """Reads a single `Database` that is related to this `LimitsModule`.""" database: Database @@ -19346,6 +20002,8 @@ enum LimitsModuleOrderBy { LIMIT_UPDATE_TRIGGER_DESC LIMIT_CHECK_FUNCTION_ASC LIMIT_CHECK_FUNCTION_DESC + AGGREGATE_TABLE_ID_ASC + AGGREGATE_TABLE_ID_DESC PREFIX_ASC PREFIX_DESC MEMBERSHIP_TYPE_ASC @@ -19828,6 +20486,8 @@ type ProfilesModule { profileGrantsTableName: String! profileDefinitionGrantsTableId: UUID! profileDefinitionGrantsTableName: String! + profileTemplatesTableId: UUID! + profileTemplatesTableName: String! membershipType: Int! entityTableId: UUID actorTableId: UUID! @@ -19862,6 +20522,9 @@ type ProfilesModule { """Reads a single `Table` that is related to this `ProfilesModule`.""" profilePermissionsTable: Table + """Reads a single `Table` that is related to this `ProfilesModule`.""" + profileTemplatesTable: Table + """Reads a single `Schema` that is related to this `ProfilesModule`.""" schema: Schema @@ -19907,6 +20570,10 @@ enum ProfilesModuleOrderBy { PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC + PROFILE_TEMPLATES_TABLE_ID_ASC + PROFILE_TEMPLATES_TABLE_ID_DESC + PROFILE_TEMPLATES_TABLE_NAME_ASC + PROFILE_TEMPLATES_TABLE_NAME_DESC MEMBERSHIP_TYPE_ASC MEMBERSHIP_TYPE_DESC ENTITY_TABLE_ID_ASC @@ -20896,10 +21563,8 @@ type StorageModule { privateSchemaId: UUID! bucketsTableId: UUID! filesTableId: UUID! - uploadRequestsTableId: UUID! bucketsTableName: String! filesTableName: String! - uploadRequestsTableName: String! membershipType: Int policies: JSON skipDefaultPolicyTables: [String]! @@ -20908,6 +21573,7 @@ type StorageModule { publicUrlPrefix: String provider: String allowedOrigins: [String] + restrictReads: Boolean! uploadUrlExpirySeconds: Int downloadUrlExpirySeconds: Int defaultMaxFileSize: BigInt @@ -20931,9 +21597,6 @@ type StorageModule { """Reads a single `Schema` that is related to this `StorageModule`.""" schema: Schema - - """Reads a single `Table` that is related to this `StorageModule`.""" - uploadRequestsTable: Table } """A `StorageModule` edge in the connection.""" @@ -20962,14 +21625,10 @@ enum StorageModuleOrderBy { BUCKETS_TABLE_ID_DESC FILES_TABLE_ID_ASC FILES_TABLE_ID_DESC - UPLOAD_REQUESTS_TABLE_ID_ASC - UPLOAD_REQUESTS_TABLE_ID_DESC BUCKETS_TABLE_NAME_ASC BUCKETS_TABLE_NAME_DESC FILES_TABLE_NAME_ASC FILES_TABLE_NAME_DESC - UPLOAD_REQUESTS_TABLE_NAME_ASC - UPLOAD_REQUESTS_TABLE_NAME_DESC MEMBERSHIP_TYPE_ASC MEMBERSHIP_TYPE_DESC POLICIES_ASC @@ -20986,6 +21645,8 @@ enum StorageModuleOrderBy { PROVIDER_DESC ALLOWED_ORIGINS_ASC ALLOWED_ORIGINS_DESC + RESTRICT_READS_ASC + RESTRICT_READS_DESC UPLOAD_URL_EXPIRY_SECONDS_ASC UPLOAD_URL_EXPIRY_SECONDS_DESC DOWNLOAD_URL_EXPIRY_SECONDS_ASC @@ -21103,7 +21764,7 @@ type EntityTypeProvision { """ Whether to provision storage_module for this type. Defaults to false. - When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + When true, creates {prefix}_buckets and {prefix}_files tables with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. Storage tables get owner_id FK to the entity table, so files are owned by the entity. """ @@ -21138,7 +21799,7 @@ type EntityTypeProvision { - allowed_origins (text[]) per-bucket CORS override - provisions (jsonb object) optional: customize storage tables with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets", "upload_requests". + Keyed by table role: "files", "buckets". Each value uses the same shape as table_provision: { nodes, fields, grants, use_rls, policies }. Fanned out to secure_table_provision targeting the corresponding table. @@ -21693,6 +22354,73 @@ enum NotificationsModuleOrderBy { HAS_SUBSCRIPTIONS_DESC } +type PlansModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + plansTableId: UUID! + plansTableName: String! + planLimitsTableId: UUID! + planLimitsTableName: String! + applyPlanFunction: String! + applyPlanAggregateFunction: String! + prefix: String + + """Reads a single `Database` that is related to this `PlansModule`.""" + database: Database + + """Reads a single `Table` that is related to this `PlansModule`.""" + planLimitsTable: Table + + """Reads a single `Table` that is related to this `PlansModule`.""" + plansTable: Table + + """Reads a single `Schema` that is related to this `PlansModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `PlansModule`.""" + schema: Schema +} + +type BillingModule { + id: UUID! + databaseId: UUID! + schemaId: UUID! + privateSchemaId: UUID! + metersTableId: UUID! + metersTableName: String! + planSubscriptionsTableId: UUID! + planSubscriptionsTableName: String! + ledgerTableId: UUID! + ledgerTableName: String! + balancesTableId: UUID! + balancesTableName: String! + recordUsageFunction: String! + prefix: String + + """Reads a single `Table` that is related to this `BillingModule`.""" + balancesTable: Table + + """Reads a single `Database` that is related to this `BillingModule`.""" + database: Database + + """Reads a single `Table` that is related to this `BillingModule`.""" + ledgerTable: Table + + """Reads a single `Table` that is related to this `BillingModule`.""" + metersTable: Table + + """Reads a single `Table` that is related to this `BillingModule`.""" + planSubscriptionsTable: Table + + """Reads a single `Schema` that is related to this `BillingModule`.""" + privateSchema: Schema + + """Reads a single `Schema` that is related to this `BillingModule`.""" + schema: Schema +} + """A connection to a list of `DatabaseProvisionModule` values.""" type DatabaseProvisionModuleConnection { """A list of `DatabaseProvisionModule` objects.""" @@ -21856,278 +22584,273 @@ type AppMembership { """Whether this member has been verified (e.g. email confirmation)""" isVerified: Boolean! - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean! - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean! - - """Whether the actor is the owner of this entity""" - isOwner: Boolean! - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean! - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString! - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString! - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID - - """Reads a single `User` that is related to this `AppMembership`.""" - actor: User -} - -"""A connection to a list of `AppAdminGrant` values.""" -type AppAdminGrantConnection { - """A list of `AppAdminGrant` objects.""" - nodes: [AppAdminGrant]! - - """ - A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. - """ - edges: [AppAdminGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppAdminGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of admin role grants and revocations between members""" -type AppAdminGrant { - id: UUID! - - """True to grant admin, false to revoke admin""" - isGrant: Boolean! - - """The member receiving or losing the admin grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppAdminGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppAdminGrant`.""" - grantor: User -} - -"""A `AppAdminGrant` edge in the connection.""" -type AppAdminGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppAdminGrant` at the end of the edge.""" - node: AppAdminGrant -} - -"""Methods to use when ordering `AppAdminGrant`.""" -enum AppAdminGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppOwnerGrant` values.""" -type AppOwnerGrantConnection { - """A list of `AppOwnerGrant` objects.""" - nodes: [AppOwnerGrant]! - - """ - A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. - """ - edges: [AppOwnerGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppOwnerGrant` you could get from the connection.""" - totalCount: Int! -} - -"""Records of ownership transfers and grants between members""" -type AppOwnerGrant { - id: UUID! - - """True to grant ownership, false to revoke ownership""" - isGrant: Boolean! - - """The member receiving or losing the ownership grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppOwnerGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppOwnerGrant`.""" - grantor: User -} - -"""A `AppOwnerGrant` edge in the connection.""" -type AppOwnerGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppOwnerGrant` at the end of the edge.""" - node: AppOwnerGrant -} - -"""Methods to use when ordering `AppOwnerGrant`.""" -enum AppOwnerGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `AppGrant` values.""" -type AppGrantConnection { - """A list of `AppGrant` objects.""" - nodes: [AppGrant]! - - """ - A list of edges which contains the `AppGrant` and cursor to aid in pagination. - """ - edges: [AppGrantEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AppGrant` you could get from the connection.""" - totalCount: Int! -} - -""" -Records of individual permission grants and revocations for members via bitmask -""" -type AppGrant { - id: UUID! - - """Bitmask of permissions being granted or revoked""" - permissions: BitString! - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean! - - """The member receiving or losing the permission grant""" - actorId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime - - """Reads a single `User` that is related to this `AppGrant`.""" - actor: User - - """Reads a single `User` that is related to this `AppGrant`.""" - grantor: User -} - -"""A `AppGrant` edge in the connection.""" -type AppGrantEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `AppGrant` at the end of the edge.""" - node: AppGrant -} - -"""Methods to use when ordering `AppGrant`.""" -enum AppGrantOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC - IS_GRANT_ASC - IS_GRANT_DESC - ACTOR_ID_ASC - ACTOR_ID_DESC - GRANTOR_ID_ASC - GRANTOR_ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - -"""A connection to a list of `OrgMembership` values.""" -type OrgMembershipConnection { - """A list of `OrgMembership` objects.""" - nodes: [OrgMembership]! - - """ - A list of edges which contains the `OrgMembership` and cursor to aid in pagination. - """ - edges: [OrgMembershipEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `OrgMembership` you could get from the connection.""" - totalCount: Int! -} - -""" -Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status -""" -type OrgMembership { - id: UUID! - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean! - - """Whether this member has been banned from the entity""" - isBanned: Boolean! - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean! + + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean! + + """Whether the actor is the owner of this entity""" + isOwner: Boolean! + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean! + + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString! + + """ + Bitmask of permissions directly granted to this member (not from profiles) + """ + granted: BitString! + + """References the user who holds this membership""" + actorId: UUID! + profileId: UUID + + """Reads a single `User` that is related to this `AppMembership`.""" + actor: User +} + +"""A connection to a list of `AppAdminGrant` values.""" +type AppAdminGrantConnection { + """A list of `AppAdminGrant` objects.""" + nodes: [AppAdminGrant]! + + """ + A list of edges which contains the `AppAdminGrant` and cursor to aid in pagination. + """ + edges: [AppAdminGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppAdminGrant` you could get from the connection.""" + totalCount: Int! +} + +"""Records of admin role grants and revocations between members""" +type AppAdminGrant { + id: UUID! + + """True to grant admin, false to revoke admin""" + isGrant: Boolean! + + """The member receiving or losing the admin grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppAdminGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppAdminGrant`.""" + grantor: User +} + +"""A `AppAdminGrant` edge in the connection.""" +type AppAdminGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppAdminGrant` at the end of the edge.""" + node: AppAdminGrant +} + +"""Methods to use when ordering `AppAdminGrant`.""" +enum AppAdminGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `AppOwnerGrant` values.""" +type AppOwnerGrantConnection { + """A list of `AppOwnerGrant` objects.""" + nodes: [AppOwnerGrant]! + + """ + A list of edges which contains the `AppOwnerGrant` and cursor to aid in pagination. + """ + edges: [AppOwnerGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppOwnerGrant` you could get from the connection.""" + totalCount: Int! +} + +"""Records of ownership transfers and grants between members""" +type AppOwnerGrant { + id: UUID! + + """True to grant ownership, false to revoke ownership""" + isGrant: Boolean! + + """The member receiving or losing the ownership grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppOwnerGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppOwnerGrant`.""" + grantor: User +} + +"""A `AppOwnerGrant` edge in the connection.""" +type AppOwnerGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppOwnerGrant` at the end of the edge.""" + node: AppOwnerGrant +} + +"""Methods to use when ordering `AppOwnerGrant`.""" +enum AppOwnerGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `AppGrant` values.""" +type AppGrantConnection { + """A list of `AppGrant` objects.""" + nodes: [AppGrant]! + + """ + A list of edges which contains the `AppGrant` and cursor to aid in pagination. + """ + edges: [AppGrantEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AppGrant` you could get from the connection.""" + totalCount: Int! +} + +""" +Records of individual permission grants and revocations for members via bitmask +""" +type AppGrant { + id: UUID! + + """Bitmask of permissions being granted or revoked""" + permissions: BitString! + + """True to grant the permissions, false to revoke them""" + isGrant: Boolean! + + """The member receiving or losing the permission grant""" + actorId: UUID! + grantorId: UUID + createdAt: Datetime + updatedAt: Datetime + + """Reads a single `User` that is related to this `AppGrant`.""" + actor: User + + """Reads a single `User` that is related to this `AppGrant`.""" + grantor: User +} + +"""A `AppGrant` edge in the connection.""" +type AppGrantEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AppGrant` at the end of the edge.""" + node: AppGrant +} + +"""Methods to use when ordering `AppGrant`.""" +enum AppGrantOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC + IS_GRANT_ASC + IS_GRANT_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + GRANTOR_ID_ASC + GRANTOR_ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC +} + +"""A connection to a list of `OrgMembership` values.""" +type OrgMembershipConnection { + """A list of `OrgMembership` objects.""" + nodes: [OrgMembership]! + + """ + A list of edges which contains the `OrgMembership` and cursor to aid in pagination. + """ + edges: [OrgMembershipEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `OrgMembership` you could get from the connection.""" + totalCount: Int! +} + +""" +Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status +""" +type OrgMembership { + id: UUID! + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether this membership has been approved by an admin""" + isApproved: Boolean! + + """Whether this member has been banned from the entity""" + isBanned: Boolean! + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean! """ Computed field indicating the membership is approved, verified, not banned, and not disabled @@ -22331,11 +23054,21 @@ type OrgMembershipSetting { """ allowExternalMembers: Boolean! + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String! + """ Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ populateMemberEmail: Boolean! + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String! + """Reads a single `User` that is related to this `OrgMembershipSetting`.""" entity: User } @@ -22953,10 +23686,25 @@ type AppLimit { actorId: UUID! """Current usage count for this actor and limit""" - num: Int + num: BigInt - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval """Reads a single `User` that is related to this `AppLimit`.""" actor: User @@ -22986,6 +23734,12 @@ enum AppLimitOrderBy { NUM_DESC MAX_ASC MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC } """A connection to a list of `OrgLimit` values.""" @@ -23016,10 +23770,25 @@ type OrgLimit { actorId: UUID! """Current usage count for this actor and limit""" - num: Int + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval entityId: UUID! """Reads a single `User` that is related to this `OrgLimit`.""" @@ -23053,8 +23822,98 @@ enum OrgLimitOrderBy { NUM_DESC MAX_ASC MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC +} + +"""A connection to a list of `OrgLimitAggregate` values.""" +type OrgLimitAggregateConnection { + """A list of `OrgLimitAggregate` objects.""" + nodes: [OrgLimitAggregate]! + + """ + A list of edges which contains the `OrgLimitAggregate` and cursor to aid in pagination. + """ + edges: [OrgLimitAggregateEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgLimitAggregate` you could get from the connection. + """ + totalCount: Int! +} + +""" +Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) +""" +type OrgLimitAggregate { + id: UUID! + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID! + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: Interval + + """Reads a single `User` that is related to this `OrgLimitAggregate`.""" + entity: User +} + +"""A `OrgLimitAggregate` edge in the connection.""" +type OrgLimitAggregateEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgLimitAggregate` at the end of the edge.""" + node: OrgLimitAggregate +} + +"""Methods to use when ordering `OrgLimitAggregate`.""" +enum OrgLimitAggregateOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC ENTITY_ID_ASC ENTITY_ID_DESC + NUM_ASC + NUM_DESC + MAX_ASC + MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC + WINDOW_START_ASC + WINDOW_START_DESC + WINDOW_DURATION_ASC + WINDOW_DURATION_DESC } """A connection to a list of `AppStep` values.""" @@ -23656,6 +24515,11 @@ type AppInvite { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime! createdAt: Datetime @@ -23697,6 +24561,8 @@ enum AppInviteOrderBy { MULTIPLE_DESC DATA_ASC DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC EXPIRES_AT_ASC EXPIRES_AT_DESC CREATED_AT_ASC @@ -23826,6 +24692,11 @@ type OrgInvite { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime! createdAt: Datetime @@ -23876,6 +24747,8 @@ enum OrgInviteOrderBy { MULTIPLE_DESC DATA_ASC DATA_DESC + PROFILE_ID_ASC + PROFILE_ID_DESC EXPIRES_AT_ASC EXPIRES_AT_DESC CREATED_AT_ASC @@ -24045,73 +24918,387 @@ enum AuditLogOrderBy { CREATED_AT_DESC } -"""A connection to a list of `AppPermissionDefault` values.""" -type AppPermissionDefaultConnection { - """A list of `AppPermissionDefault` objects.""" - nodes: [AppPermissionDefault]! +"""A connection to a list of `AgentThread` values.""" +type AgentThreadConnection { + """A list of `AgentThread` objects.""" + nodes: [AgentThread]! """ - A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. + A list of edges which contains the `AgentThread` and cursor to aid in pagination. """ - edges: [AppPermissionDefaultEdge]! + edges: [AgentThreadEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! + """The count of *all* `AgentThread` you could get from the connection.""" + totalCount: Int! +} + +""" +Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. +""" +type AgentThread { """ - The count of *all* `AppPermissionDefault` you could get from the connection. + Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. + """ + title: String + + """ + Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. + """ + mode: String! + + """ + Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. + """ + model: String + + """ + Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. + """ + systemPrompt: String + id: UUID! + + """Timestamp when this record was created""" + createdAt: Datetime! + + """Timestamp when this record was last updated""" + updatedAt: Datetime! + + """User who owns this record within the entity""" + ownerId: UUID! + + """Entity this record belongs to""" + entityId: UUID! + + """Current status of this record""" + status: String! + + """Reads a single `User` that is related to this `AgentThread`.""" + entity: User + + """Reads a single `User` that is related to this `AgentThread`.""" + owner: User + + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessagesByThreadId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentMessageFilter + + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection! + + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasksByThreadId( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AgentTaskFilter + + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection! +} + +"""A connection to a list of `AgentMessage` values.""" +type AgentMessageConnection { + """A list of `AgentMessage` objects.""" + nodes: [AgentMessage]! + """ + A list of edges which contains the `AgentMessage` and cursor to aid in pagination. + """ + edges: [AgentMessageEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentMessage` you could get from the connection.""" totalCount: Int! } """ -Stores the default permission bitmask assigned to new members upon joining +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. """ -type AppPermissionDefault { +type AgentMessage { + """ + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + """ + threadId: UUID! + + """ + Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. + """ + entityId: UUID! + + """ + Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. + """ + authorRole: String! id: UUID! - """Default permission bitmask applied to new members""" - permissions: BitString! + """Timestamp when this record was created""" + createdAt: Datetime! + + """Timestamp when this record was last updated""" + updatedAt: Datetime! + + """User who owns this record""" + ownerId: UUID! + + """JSON metadata for extensible key-value storage""" + parts: JSON + + """Reads a single `User` that is related to this `AgentMessage`.""" + owner: User + + """Reads a single `AgentThread` that is related to this `AgentMessage`.""" + thread: AgentThread } -"""A `AppPermissionDefault` edge in the connection.""" -type AppPermissionDefaultEdge { +"""A `AgentMessage` edge in the connection.""" +type AgentMessageEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `AppPermissionDefault` at the end of the edge.""" - node: AppPermissionDefault + """The `AgentMessage` at the end of the edge.""" + node: AgentMessage +} + +"""Methods to use when ordering `AgentMessage`.""" +enum AgentMessageOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + THREAD_ID_ASC + THREAD_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + AUTHOR_ROLE_ASC + AUTHOR_ROLE_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + PARTS_ASC + PARTS_DESC +} + +"""A connection to a list of `AgentTask` values.""" +type AgentTaskConnection { + """A list of `AgentTask` objects.""" + nodes: [AgentTask]! + + """ + A list of edges which contains the `AgentTask` and cursor to aid in pagination. + """ + edges: [AgentTaskEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `AgentTask` you could get from the connection.""" + totalCount: Int! } """ -A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +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. """ -input AppPermissionDefaultFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +type AgentTask { + """ + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + """ + threadId: UUID! - """Filter by the object’s `permissions` field.""" - permissions: BitStringFilter + """ + Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. + """ + entityId: UUID! - """Checks for all expressions in this list.""" - and: [AppPermissionDefaultFilter!] + """Natural-language description of the work to do. Required.""" + description: String! - """Checks for any expressions in this list.""" - or: [AppPermissionDefaultFilter!] + """ + Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. + """ + source: String! - """Negates the expression.""" - not: AppPermissionDefaultFilter + """ + Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. + """ + error: String + id: UUID! + + """Timestamp when this record was created""" + createdAt: Datetime! + + """Timestamp when this record was last updated""" + updatedAt: Datetime! + + """User who owns this record""" + ownerId: UUID! + + """Current status of this record""" + status: String! + + """Reads a single `User` that is related to this `AgentTask`.""" + owner: User + + """Reads a single `AgentThread` that is related to this `AgentTask`.""" + thread: AgentThread } -"""Methods to use when ordering `AppPermissionDefault`.""" -enum AppPermissionDefaultOrderBy { +"""A `AgentTask` edge in the connection.""" +type AgentTaskEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentTask` at the end of the edge.""" + node: AgentTask +} + +"""Methods to use when ordering `AgentTask`.""" +enum AgentTaskOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC + THREAD_ID_ASC + THREAD_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + SOURCE_ASC + SOURCE_DESC + ERROR_ASC + ERROR_DESC ID_ASC ID_DESC - PERMISSIONS_ASC - PERMISSIONS_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + STATUS_ASC + STATUS_DESC +} + +"""A `AgentThread` edge in the connection.""" +type AgentThreadEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `AgentThread` at the end of the edge.""" + node: AgentThread +} + +"""Methods to use when ordering `AgentThread`.""" +enum AgentThreadOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + TITLE_ASC + TITLE_DESC + MODE_ASC + MODE_DESC + MODEL_ASC + MODEL_DESC + SYSTEM_PROMPT_ASC + SYSTEM_PROMPT_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + OWNER_ID_ASC + OWNER_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + STATUS_ASC + STATUS_DESC +} + +"""A connection to a list of `RoleType` values.""" +type RoleTypeConnection { + """A list of `RoleType` objects.""" + nodes: [RoleType]! + + """ + A list of edges which contains the `RoleType` and cursor to aid in pagination. + """ + edges: [RoleTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `RoleType` you could get from the connection.""" + totalCount: Int! +} + +"""A `RoleType` edge in the connection.""" +type RoleTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RoleType` at the end of the edge.""" + node: RoleType +} + +"""Methods to use when ordering `RoleType`.""" +enum RoleTypeOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC } """A connection to a list of `IdentityProvider` values.""" @@ -24366,34 +25553,258 @@ enum StoreOrderBy { CREATED_AT_DESC } -"""A connection to a list of `RoleType` values.""" -type RoleTypeConnection { - """A list of `RoleType` objects.""" - nodes: [RoleType]! +"""A connection to a list of `AppPermissionDefault` values.""" +type AppPermissionDefaultConnection { + """A list of `AppPermissionDefault` objects.""" + nodes: [AppPermissionDefault]! """ - A list of edges which contains the `RoleType` and cursor to aid in pagination. + A list of edges which contains the `AppPermissionDefault` and cursor to aid in pagination. """ - edges: [RoleTypeEdge]! + edges: [AppPermissionDefaultEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `RoleType` you could get from the connection.""" + """ + The count of *all* `AppPermissionDefault` you could get from the connection. + """ totalCount: Int! } -"""A `RoleType` edge in the connection.""" -type RoleTypeEdge { +""" +Stores the default permission bitmask assigned to new members upon joining +""" +type AppPermissionDefault { + id: UUID! + + """Default permission bitmask applied to new members""" + permissions: BitString! +} + +"""A `AppPermissionDefault` edge in the connection.""" +type AppPermissionDefaultEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `RoleType` at the end of the edge.""" - node: RoleType + """The `AppPermissionDefault` at the end of the edge.""" + node: AppPermissionDefault } -"""Methods to use when ordering `RoleType`.""" -enum RoleTypeOrderBy { +""" +A filter to be used against `AppPermissionDefault` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionDefaultFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `permissions` field.""" + permissions: BitStringFilter + + """Checks for all expressions in this list.""" + and: [AppPermissionDefaultFilter!] + + """Checks for any expressions in this list.""" + or: [AppPermissionDefaultFilter!] + + """Negates the expression.""" + not: AppPermissionDefaultFilter +} + +"""Methods to use when ordering `AppPermissionDefault`.""" +enum AppPermissionDefaultOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + PERMISSIONS_ASC + PERMISSIONS_DESC +} + +""" +A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +""" +input AppPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [AppPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [AppPermissionFilter!] + + """Negates the expression.""" + not: AppPermissionFilter +} + +"""Methods to use when ordering `AppPermission`.""" +enum AppPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + +""" +A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ +""" +input OrgPermissionFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `bitnum` field.""" + bitnum: IntFilter + + """Filter by the object’s `bitstr` field.""" + bitstr: BitStringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Checks for all expressions in this list.""" + and: [OrgPermissionFilter!] + + """Checks for any expressions in this list.""" + or: [OrgPermissionFilter!] + + """Negates the expression.""" + not: OrgPermissionFilter +} + +"""Methods to use when ordering `OrgPermission`.""" +enum OrgPermissionOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + NAME_ASC + NAME_DESC + BITNUM_ASC + BITNUM_DESC + BITSTR_ASC + BITSTR_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC +} + +"""A connection to a list of `MembershipType` values.""" +type MembershipTypeConnection { + """A list of `MembershipType` objects.""" + nodes: [MembershipType]! + + """ + A list of edges which contains the `MembershipType` and cursor to aid in pagination. + """ + edges: [MembershipTypeEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `MembershipType` you could get from the connection.""" + totalCount: Int! +} + +""" +Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) +""" +type MembershipType { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! + + """Human-readable name of the membership type""" + name: String! + + """Description of what this membership type represents""" + description: String! + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean! +} + +"""A `MembershipType` edge in the connection.""" +type MembershipTypeEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `MembershipType` at the end of the edge.""" + node: MembershipType +} + +""" +A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +""" +input MembershipTypeFilter { + """Filter by the object’s `id` field.""" + id: IntFilter + + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `prefix` field.""" + prefix: StringFilter + + """Filter by the object’s `parentMembershipType` field.""" + parentMembershipType: IntFilter + + """Filter by the object’s `hasUsersTableEntry` field.""" + hasUsersTableEntry: BooleanFilter + + """Checks for all expressions in this list.""" + and: [MembershipTypeFilter!] + + """Checks for any expressions in this list.""" + or: [MembershipTypeFilter!] + + """Negates the expression.""" + not: MembershipTypeFilter +} + +"""Methods to use when ordering `MembershipType`.""" +enum MembershipTypeOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -24401,6 +25812,14 @@ enum RoleTypeOrderBy { ID_DESC NAME_ASC NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PREFIX_ASC + PREFIX_DESC + PARENT_MEMBERSHIP_TYPE_ASC + PARENT_MEMBERSHIP_TYPE_DESC + HAS_USERS_TABLE_ENTRY_ASC + HAS_USERS_TABLE_ENTRY_DESC } """A connection to a list of `MigrateFile` values.""" @@ -24528,6 +25947,147 @@ enum MigrateFileOrderBy { UPLOAD_DESC } +"""A connection to a list of `DevicesModule` values.""" +type DevicesModuleConnection { + """A list of `DevicesModule` objects.""" + nodes: [DevicesModule]! + + """ + A list of edges which contains the `DevicesModule` and cursor to aid in pagination. + """ + edges: [DevicesModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `DevicesModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `DevicesModule` edge in the connection.""" +type DevicesModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `DevicesModule` at the end of the edge.""" + node: DevicesModule +} + +"""Methods to use when ordering `DevicesModule`.""" +enum DevicesModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + USER_DEVICES_TABLE_ID_ASC + USER_DEVICES_TABLE_ID_DESC + DEVICE_SETTINGS_TABLE_ID_ASC + DEVICE_SETTINGS_TABLE_ID_DESC + USER_DEVICES_TABLE_ASC + USER_DEVICES_TABLE_DESC + DEVICE_SETTINGS_TABLE_ASC + DEVICE_SETTINGS_TABLE_DESC +} + +"""A connection to a list of `NodeTypeRegistry` values.""" +type NodeTypeRegistryConnection { + """A list of `NodeTypeRegistry` objects.""" + nodes: [NodeTypeRegistry]! + + """ + A list of edges which contains the `NodeTypeRegistry` and cursor to aid in pagination. + """ + edges: [NodeTypeRegistryEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `NodeTypeRegistry` you could get from the connection. + """ + totalCount: Int! +} + +type NodeTypeRegistry { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON! + tags: [String]! +} + +"""A `NodeTypeRegistry` edge in the connection.""" +type NodeTypeRegistryEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `NodeTypeRegistry` at the end of the edge.""" + node: NodeTypeRegistry +} + +""" +A filter to be used against `NodeTypeRegistry` object types. All fields are combined with a logical ‘and.’ +""" +input NodeTypeRegistryFilter { + """Filter by the object’s `name` field.""" + name: StringFilter + + """Filter by the object’s `slug` field.""" + slug: StringFilter + + """Filter by the object’s `category` field.""" + category: StringFilter + + """Filter by the object’s `displayName` field.""" + displayName: StringFilter + + """Filter by the object’s `description` field.""" + description: StringFilter + + """Filter by the object’s `parameterSchema` field.""" + parameterSchema: JSONFilter + + """Filter by the object’s `tags` field.""" + tags: StringListFilter + + """Checks for all expressions in this list.""" + and: [NodeTypeRegistryFilter!] + + """Checks for any expressions in this list.""" + or: [NodeTypeRegistryFilter!] + + """Negates the expression.""" + not: NodeTypeRegistryFilter +} + +"""Methods to use when ordering `NodeTypeRegistry`.""" +enum NodeTypeRegistryOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + NAME_ASC + NAME_DESC + SLUG_ASC + SLUG_DESC + CATEGORY_ASC + CATEGORY_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + DESCRIPTION_ASC + DESCRIPTION_DESC + PARAMETER_SCHEMA_ASC + PARAMETER_SCHEMA_DESC + TAGS_ASC + TAGS_DESC +} + """A connection to a list of `AppLimitDefault` values.""" type AppLimitDefaultConnection { """A list of `AppLimitDefault` objects.""" @@ -24557,7 +26117,10 @@ type AppLimitDefault { name: String! """Default maximum usage allowed for this limit""" - max: Int + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """A `AppLimitDefault` edge in the connection.""" @@ -24580,7 +26143,10 @@ input AppLimitDefaultFilter { name: StringFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter """Checks for all expressions in this list.""" and: [AppLimitDefaultFilter!] @@ -24603,6 +26169,8 @@ enum AppLimitDefaultOrderBy { NAME_DESC MAX_ASC MAX_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """A connection to a list of `OrgLimitDefault` values.""" @@ -24634,7 +26202,10 @@ type OrgLimitDefault { name: String! """Default maximum usage allowed for this limit""" - max: Int + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """A `OrgLimitDefault` edge in the connection.""" @@ -24657,7 +26228,10 @@ input OrgLimitDefaultFilter { name: StringFilter """Filter by the object’s `max` field.""" - max: IntFilter + max: BigIntFilter + + """Filter by the object’s `softMax` field.""" + softMax: BigIntFilter """Checks for all expressions in this list.""" and: [OrgLimitDefaultFilter!] @@ -24680,53 +26254,8 @@ enum OrgLimitDefaultOrderBy { NAME_DESC MAX_ASC MAX_DESC -} - -"""A connection to a list of `DevicesModule` values.""" -type DevicesModuleConnection { - """A list of `DevicesModule` objects.""" - nodes: [DevicesModule]! - - """ - A list of edges which contains the `DevicesModule` and cursor to aid in pagination. - """ - edges: [DevicesModuleEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `DevicesModule` you could get from the connection.""" - totalCount: Int! -} - -"""A `DevicesModule` edge in the connection.""" -type DevicesModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `DevicesModule` at the end of the edge.""" - node: DevicesModule -} - -"""Methods to use when ordering `DevicesModule`.""" -enum DevicesModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - USER_DEVICES_TABLE_ID_ASC - USER_DEVICES_TABLE_ID_DESC - DEVICE_SETTINGS_TABLE_ID_ASC - DEVICE_SETTINGS_TABLE_ID_DESC - USER_DEVICES_TABLE_ASC - USER_DEVICES_TABLE_DESC - DEVICE_SETTINGS_TABLE_ASC - DEVICE_SETTINGS_TABLE_DESC + SOFT_MAX_ASC + SOFT_MAX_DESC } """A connection to a list of `UserConnectedAccount` values.""" @@ -24884,36 +26413,45 @@ enum ObjectOrderBy { } """ -A filter to be used against `AppPermission` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ """ -input AppPermissionFilter { +input AppLevelRequirementFilter { """Filter by the object’s `id` field.""" id: UUIDFilter """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter - - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """Filter by the object’s `level` field.""" + level: StringFilter """Filter by the object’s `description` field.""" description: StringFilter + """Filter by the object’s `requiredCount` field.""" + requiredCount: IntFilter + + """Filter by the object’s `priority` field.""" + priority: IntFilter + + """Filter by the object’s `createdAt` field.""" + createdAt: DatetimeFilter + + """Filter by the object’s `updatedAt` field.""" + updatedAt: DatetimeFilter + """Checks for all expressions in this list.""" - and: [AppPermissionFilter!] + and: [AppLevelRequirementFilter!] """Checks for any expressions in this list.""" - or: [AppPermissionFilter!] + or: [AppLevelRequirementFilter!] """Negates the expression.""" - not: AppPermissionFilter + not: AppLevelRequirementFilter } -"""Methods to use when ordering `AppPermission`.""" -enum AppPermissionOrderBy { +"""Methods to use when ordering `AppLevelRequirement`.""" +enum AppLevelRequirementOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC @@ -24921,58 +26459,189 @@ enum AppPermissionOrderBy { ID_DESC NAME_ASC NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC + LEVEL_ASC + LEVEL_DESC DESCRIPTION_ASC DESCRIPTION_DESC + REQUIRED_COUNT_ASC + REQUIRED_COUNT_DESC + PRIORITY_ASC + PRIORITY_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC } -""" -A filter to be used against `OrgPermission` object types. All fields are combined with a logical ‘and.’ -""" -input OrgPermissionFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +"""A connection to a list of `Commit` values.""" +type CommitConnection { + """A list of `Commit` objects.""" + nodes: [Commit]! - """Filter by the object’s `name` field.""" - name: StringFilter + """ + A list of edges which contains the `Commit` and cursor to aid in pagination. + """ + edges: [CommitEdge]! - """Filter by the object’s `bitnum` field.""" - bitnum: IntFilter + """Information to aid in pagination.""" + pageInfo: PageInfo! - """Filter by the object’s `bitstr` field.""" - bitstr: BitStringFilter + """The count of *all* `Commit` you could get from the connection.""" + totalCount: Int! +} - """Filter by the object’s `description` field.""" - description: StringFilter +"""A commit records changes to the repository.""" +type Commit { + """The primary unique identifier for the commit.""" + id: UUID! - """Checks for all expressions in this list.""" - and: [OrgPermissionFilter!] + """The commit message""" + message: String - """Checks for any expressions in this list.""" - or: [OrgPermissionFilter!] + """The repository identifier""" + databaseId: UUID! + storeId: UUID! - """Negates the expression.""" - not: OrgPermissionFilter + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime! } -"""Methods to use when ordering `OrgPermission`.""" -enum OrgPermissionOrderBy { +"""A `Commit` edge in the connection.""" +type CommitEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `Commit` at the end of the edge.""" + node: Commit +} + +""" +A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +""" +input CommitFilter { + """Filter by the object’s `id` field.""" + id: UUIDFilter + + """Filter by the object’s `message` field.""" + message: StringFilter + + """Filter by the object’s `databaseId` field.""" + databaseId: UUIDFilter + + """Filter by the object’s `storeId` field.""" + storeId: UUIDFilter + + """Filter by the object’s `parentIds` field.""" + parentIds: UUIDListFilter + + """Filter by the object’s `authorId` field.""" + authorId: UUIDFilter + + """Filter by the object’s `committerId` field.""" + committerId: UUIDFilter + + """Filter by the object’s `treeId` field.""" + treeId: UUIDFilter + + """Filter by the object’s `date` field.""" + date: DatetimeFilter + + """Checks for all expressions in this list.""" + and: [CommitFilter!] + + """Checks for any expressions in this list.""" + or: [CommitFilter!] + + """Negates the expression.""" + not: CommitFilter +} + +"""Methods to use when ordering `Commit`.""" +enum CommitOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - BITNUM_ASC - BITNUM_DESC - BITSTR_ASC - BITSTR_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + MESSAGE_ASC + MESSAGE_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + STORE_ID_ASC + STORE_ID_DESC + PARENT_IDS_ASC + PARENT_IDS_DESC + AUTHOR_ID_ASC + AUTHOR_ID_DESC + COMMITTER_ID_ASC + COMMITTER_ID_DESC + TREE_ID_ASC + TREE_ID_DESC + DATE_ASC + DATE_DESC +} + +"""A connection to a list of `RateLimitsModule` values.""" +type RateLimitsModuleConnection { + """A list of `RateLimitsModule` objects.""" + nodes: [RateLimitsModule]! + + """ + A list of edges which contains the `RateLimitsModule` and cursor to aid in pagination. + """ + edges: [RateLimitsModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `RateLimitsModule` you could get from the connection. + """ + totalCount: Int! +} + +"""A `RateLimitsModule` edge in the connection.""" +type RateLimitsModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `RateLimitsModule` at the end of the edge.""" + node: RateLimitsModule +} + +"""Methods to use when ordering `RateLimitsModule`.""" +enum RateLimitsModuleOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ID_ASC + RATE_LIMIT_SETTINGS_TABLE_ID_DESC + IP_RATE_LIMITS_TABLE_ID_ASC + IP_RATE_LIMITS_TABLE_ID_DESC + RATE_LIMITS_TABLE_ID_ASC + RATE_LIMITS_TABLE_ID_DESC + RATE_LIMIT_SETTINGS_TABLE_ASC + RATE_LIMIT_SETTINGS_TABLE_DESC + IP_RATE_LIMITS_TABLE_ASC + IP_RATE_LIMITS_TABLE_DESC + RATE_LIMITS_TABLE_ASC + RATE_LIMITS_TABLE_DESC } """A connection to a list of `AppMembershipDefault` values.""" @@ -25125,283 +26794,303 @@ enum OrgMembershipDefaultOrderBy { ENTITY_ID_DESC } -"""A connection to a list of `Commit` values.""" -type CommitConnection { - """A list of `Commit` objects.""" - nodes: [Commit]! +"""A connection to a list of `AppLimitEvent` values.""" +type AppLimitEventConnection { + """A list of `AppLimitEvent` objects.""" + nodes: [AppLimitEvent]! """ - A list of edges which contains the `Commit` and cursor to aid in pagination. + A list of edges which contains the `AppLimitEvent` and cursor to aid in pagination. """ - edges: [CommitEdge]! + edges: [AppLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `Commit` you could get from the connection.""" + """The count of *all* `AppLimitEvent` you could get from the connection.""" totalCount: Int! } -"""A commit records changes to the repository.""" -type Commit { - """The primary unique identifier for the commit.""" - id: UUID! +"""Append-only log of limit events for historical reporting and audit""" +type AppLimitEvent { + """Limit name this event applies to""" + name: String - """The commit message""" - message: String + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """The repository identifier""" - databaseId: UUID! - storeId: UUID! + """Entity this event applies to; NULL for app-level events""" + entityId: UUID - """Parent commits""" - parentIds: [UUID] + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """The author of the commit""" - authorId: UUID + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """The committer of the commit""" - committerId: UUID + """Usage count before this event""" + numBefore: BigInt - """The root of the tree""" - treeId: UUID - date: Datetime! + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String } -"""A `Commit` edge in the connection.""" -type CommitEdge { +"""A `AppLimitEvent` edge in the connection.""" +type AppLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `Commit` at the end of the edge.""" - node: Commit + """The `AppLimitEvent` at the end of the edge.""" + node: AppLimitEvent } """ -A filter to be used against `Commit` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `AppLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input CommitFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter +input AppLimitEventFilter { + """Filter by the object’s `name` field.""" + name: StringFilter - """Filter by the object’s `message` field.""" - message: StringFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `databaseId` field.""" - databaseId: UUIDFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `storeId` field.""" - storeId: UUIDFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `parentIds` field.""" - parentIds: UUIDListFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter - """Filter by the object’s `authorId` field.""" - authorId: UUIDFilter + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter - """Filter by the object’s `committerId` field.""" - committerId: UUIDFilter + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter - """Filter by the object’s `treeId` field.""" - treeId: UUIDFilter + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter - """Filter by the object’s `date` field.""" - date: DatetimeFilter + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [CommitFilter!] + and: [AppLimitEventFilter!] """Checks for any expressions in this list.""" - or: [CommitFilter!] + or: [AppLimitEventFilter!] """Negates the expression.""" - not: CommitFilter + not: AppLimitEventFilter } -"""Methods to use when ordering `Commit`.""" -enum CommitOrderBy { +"""Methods to use when ordering `AppLimitEvent`.""" +enum AppLimitEventOrderBy { NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - MESSAGE_ASC - MESSAGE_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - STORE_ID_ASC - STORE_ID_DESC - PARENT_IDS_ASC - PARENT_IDS_DESC - AUTHOR_ID_ASC - AUTHOR_ID_DESC - COMMITTER_ID_ASC - COMMITTER_ID_DESC - TREE_ID_ASC - TREE_ID_DESC - DATE_ASC - DATE_DESC + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC } -"""A connection to a list of `RateLimitsModule` values.""" -type RateLimitsModuleConnection { - """A list of `RateLimitsModule` objects.""" - nodes: [RateLimitsModule]! +"""A connection to a list of `OrgLimitEvent` values.""" +type OrgLimitEventConnection { + """A list of `OrgLimitEvent` objects.""" + nodes: [OrgLimitEvent]! """ - A list of edges which contains the `RateLimitsModule` and cursor to aid in pagination. + A list of edges which contains the `OrgLimitEvent` and cursor to aid in pagination. """ - edges: [RateLimitsModuleEdge]! + edges: [OrgLimitEventEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `RateLimitsModule` you could get from the connection. - """ + """The count of *all* `OrgLimitEvent` you could get from the connection.""" totalCount: Int! } -"""A `RateLimitsModule` edge in the connection.""" -type RateLimitsModuleEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `RateLimitsModule` at the end of the edge.""" - node: RateLimitsModule -} - -"""Methods to use when ordering `RateLimitsModule`.""" -enum RateLimitsModuleOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - DATABASE_ID_ASC - DATABASE_ID_DESC - SCHEMA_ID_ASC - SCHEMA_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ID_ASC - RATE_LIMIT_SETTINGS_TABLE_ID_DESC - IP_RATE_LIMITS_TABLE_ID_ASC - IP_RATE_LIMITS_TABLE_ID_DESC - RATE_LIMITS_TABLE_ID_ASC - RATE_LIMITS_TABLE_ID_DESC - RATE_LIMIT_SETTINGS_TABLE_ASC - RATE_LIMIT_SETTINGS_TABLE_DESC - IP_RATE_LIMITS_TABLE_ASC - IP_RATE_LIMITS_TABLE_DESC - RATE_LIMITS_TABLE_ASC - RATE_LIMITS_TABLE_DESC -} - -"""A connection to a list of `MembershipType` values.""" -type MembershipTypeConnection { - """A list of `MembershipType` objects.""" - nodes: [MembershipType]! - - """ - A list of edges which contains the `MembershipType` and cursor to aid in pagination. - """ - edges: [MembershipTypeEdge]! +"""Append-only log of limit events for historical reporting and audit""" +type OrgLimitEvent { + """Limit name this event applies to""" + name: String - """Information to aid in pagination.""" - pageInfo: PageInfo! + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID - """The count of *all* `MembershipType` you could get from the connection.""" - totalCount: Int! -} + """Entity this event applies to; NULL for app-level events""" + entityId: UUID -""" -Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) -""" -type MembershipType { - """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) - """ - id: Int! + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String - """Human-readable name of the membership type""" - name: String! + """Change amount: positive for increment, negative for decrement""" + delta: BigInt - """Description of what this membership type represents""" - description: String! + """Usage count before this event""" + numBefore: BigInt - """ - Short prefix used to namespace tables and functions for this membership scope - """ - prefix: String! + """Usage count after this event""" + numAfter: BigInt - """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) - """ - parentMembershipType: Int + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Optional reason or source: achievement, invite, plan_change, purchase, etc. """ - hasUsersTableEntry: Boolean! + reason: String } -"""A `MembershipType` edge in the connection.""" -type MembershipTypeEdge { +"""A `OrgLimitEvent` edge in the connection.""" +type OrgLimitEventEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `MembershipType` at the end of the edge.""" - node: MembershipType + """The `OrgLimitEvent` at the end of the edge.""" + node: OrgLimitEvent } """ -A filter to be used against `MembershipType` object types. All fields are combined with a logical ‘and.’ +A filter to be used against `OrgLimitEvent` object types. All fields are combined with a logical ‘and.’ """ -input MembershipTypeFilter { - """Filter by the object’s `id` field.""" - id: IntFilter - +input OrgLimitEventFilter { """Filter by the object’s `name` field.""" name: StringFilter - """Filter by the object’s `description` field.""" - description: StringFilter + """Filter by the object’s `actorId` field.""" + actorId: UUIDFilter - """Filter by the object’s `prefix` field.""" - prefix: StringFilter + """Filter by the object’s `entityId` field.""" + entityId: UUIDFilter - """Filter by the object’s `parentMembershipType` field.""" - parentMembershipType: IntFilter + """Filter by the object’s `eventType` field.""" + eventType: StringFilter - """Filter by the object’s `hasUsersTableEntry` field.""" - hasUsersTableEntry: BooleanFilter + """Filter by the object’s `delta` field.""" + delta: BigIntFilter + + """Filter by the object’s `numBefore` field.""" + numBefore: BigIntFilter + + """Filter by the object’s `numAfter` field.""" + numAfter: BigIntFilter + + """Filter by the object’s `maxAtEvent` field.""" + maxAtEvent: BigIntFilter + + """Filter by the object’s `reason` field.""" + reason: StringFilter """Checks for all expressions in this list.""" - and: [MembershipTypeFilter!] + and: [OrgLimitEventFilter!] """Checks for any expressions in this list.""" - or: [MembershipTypeFilter!] + or: [OrgLimitEventFilter!] """Negates the expression.""" - not: MembershipTypeFilter + not: OrgLimitEventFilter } -"""Methods to use when ordering `MembershipType`.""" -enum MembershipTypeOrderBy { +"""Methods to use when ordering `OrgLimitEvent`.""" +enum OrgLimitEventOrderBy { + NATURAL + NAME_ASC + NAME_DESC + ACTOR_ID_ASC + ACTOR_ID_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + EVENT_TYPE_ASC + EVENT_TYPE_DESC + DELTA_ASC + DELTA_DESC + NUM_BEFORE_ASC + NUM_BEFORE_DESC + NUM_AFTER_ASC + NUM_AFTER_DESC + MAX_AT_EVENT_ASC + MAX_AT_EVENT_DESC + REASON_ASC + REASON_DESC +} + +"""A connection to a list of `PlansModule` values.""" +type PlansModuleConnection { + """A list of `PlansModule` objects.""" + nodes: [PlansModule]! + + """ + A list of edges which contains the `PlansModule` and cursor to aid in pagination. + """ + edges: [PlansModuleEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `PlansModule` you could get from the connection.""" + totalCount: Int! +} + +"""A `PlansModule` edge in the connection.""" +type PlansModuleEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `PlansModule` at the end of the edge.""" + node: PlansModule +} + +"""Methods to use when ordering `PlansModule`.""" +enum PlansModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - NAME_ASC - NAME_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + PLANS_TABLE_ID_ASC + PLANS_TABLE_ID_DESC + PLANS_TABLE_NAME_ASC + PLANS_TABLE_NAME_DESC + PLAN_LIMITS_TABLE_ID_ASC + PLAN_LIMITS_TABLE_ID_DESC + PLAN_LIMITS_TABLE_NAME_ASC + PLAN_LIMITS_TABLE_NAME_DESC + APPLY_PLAN_FUNCTION_ASC + APPLY_PLAN_FUNCTION_DESC + APPLY_PLAN_AGGREGATE_FUNCTION_ASC + APPLY_PLAN_AGGREGATE_FUNCTION_DESC PREFIX_ASC PREFIX_DESC - PARENT_MEMBERSHIP_TYPE_ASC - PARENT_MEMBERSHIP_TYPE_DESC - HAS_USERS_TABLE_ENTRY_ASC - HAS_USERS_TABLE_ENTRY_DESC } """A connection to a list of `RlsModule` values.""" @@ -25459,67 +27148,6 @@ enum RlsModuleOrderBy { CURRENT_ROLE_ID_DESC } -""" -A filter to be used against `AppLevelRequirement` object types. All fields are combined with a logical ‘and.’ -""" -input AppLevelRequirementFilter { - """Filter by the object’s `id` field.""" - id: UUIDFilter - - """Filter by the object’s `name` field.""" - name: StringFilter - - """Filter by the object’s `level` field.""" - level: StringFilter - - """Filter by the object’s `description` field.""" - description: StringFilter - - """Filter by the object’s `requiredCount` field.""" - requiredCount: IntFilter - - """Filter by the object’s `priority` field.""" - priority: IntFilter - - """Filter by the object’s `createdAt` field.""" - createdAt: DatetimeFilter - - """Filter by the object’s `updatedAt` field.""" - updatedAt: DatetimeFilter - - """Checks for all expressions in this list.""" - and: [AppLevelRequirementFilter!] - - """Checks for any expressions in this list.""" - or: [AppLevelRequirementFilter!] - - """Negates the expression.""" - not: AppLevelRequirementFilter -} - -"""Methods to use when ordering `AppLevelRequirement`.""" -enum AppLevelRequirementOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - NAME_ASC - NAME_DESC - LEVEL_ASC - LEVEL_DESC - DESCRIPTION_ASC - DESCRIPTION_DESC - REQUIRED_COUNT_ASC - REQUIRED_COUNT_DESC - PRIORITY_ASC - PRIORITY_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC -} - """A connection to a list of `SqlAction` values.""" type SqlActionConnection { """A list of `SqlAction` objects.""" @@ -25643,134 +27271,81 @@ enum SqlActionOrderBy { ACTOR_ID_DESC } -"""A connection to a list of `OrgMembershipSetting` values.""" -type OrgMembershipSettingConnection { - """A list of `OrgMembershipSetting` objects.""" - nodes: [OrgMembershipSetting]! +"""A connection to a list of `BillingModule` values.""" +type BillingModuleConnection { + """A list of `BillingModule` objects.""" + nodes: [BillingModule]! """ - A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + A list of edges which contains the `BillingModule` and cursor to aid in pagination. """ - edges: [OrgMembershipSettingEdge]! + edges: [BillingModuleEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """ - The count of *all* `OrgMembershipSetting` you could get from the connection. - """ + """The count of *all* `BillingModule` you could get from the connection.""" totalCount: Int! } -"""A `OrgMembershipSetting` edge in the connection.""" -type OrgMembershipSettingEdge { +"""A `BillingModule` edge in the connection.""" +type BillingModuleEdge { """A cursor for use in pagination.""" cursor: Cursor - """The `OrgMembershipSetting` at the end of the edge.""" - node: OrgMembershipSetting + """The `BillingModule` at the end of the edge.""" + node: BillingModule } -"""Methods to use when ordering `OrgMembershipSetting`.""" -enum OrgMembershipSettingOrderBy { +"""Methods to use when ordering `BillingModule`.""" +enum BillingModuleOrderBy { NATURAL PRIMARY_KEY_ASC PRIMARY_KEY_DESC ID_ASC ID_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - CREATED_BY_ASC - CREATED_BY_DESC - UPDATED_BY_ASC - UPDATED_BY_DESC - ENTITY_ID_ASC - ENTITY_ID_DESC - DELETE_MEMBER_CASCADE_CHILDREN_ASC - DELETE_MEMBER_CASCADE_CHILDREN_DESC - CREATE_CHILD_CASCADE_OWNERS_ASC - CREATE_CHILD_CASCADE_OWNERS_DESC - CREATE_CHILD_CASCADE_ADMINS_ASC - CREATE_CHILD_CASCADE_ADMINS_DESC - CREATE_CHILD_CASCADE_MEMBERS_ASC - CREATE_CHILD_CASCADE_MEMBERS_DESC - ALLOW_EXTERNAL_MEMBERS_ASC - ALLOW_EXTERNAL_MEMBERS_DESC - POPULATE_MEMBER_EMAIL_ASC - POPULATE_MEMBER_EMAIL_DESC + DATABASE_ID_ASC + DATABASE_ID_DESC + SCHEMA_ID_ASC + SCHEMA_ID_DESC + PRIVATE_SCHEMA_ID_ASC + PRIVATE_SCHEMA_ID_DESC + METERS_TABLE_ID_ASC + METERS_TABLE_ID_DESC + METERS_TABLE_NAME_ASC + METERS_TABLE_NAME_DESC + PLAN_SUBSCRIPTIONS_TABLE_ID_ASC + PLAN_SUBSCRIPTIONS_TABLE_ID_DESC + PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC + PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC + LEDGER_TABLE_ID_ASC + LEDGER_TABLE_ID_DESC + LEDGER_TABLE_NAME_ASC + LEDGER_TABLE_NAME_DESC + BALANCES_TABLE_ID_ASC + BALANCES_TABLE_ID_DESC + BALANCES_TABLE_NAME_ASC + BALANCES_TABLE_NAME_DESC + RECORD_USAGE_FUNCTION_ASC + RECORD_USAGE_FUNCTION_DESC + PREFIX_ASC + PREFIX_DESC } -"""A connection to a list of `User` values.""" -type UserConnection { - """A list of `User` objects.""" - nodes: [User]! +"""A connection to a list of `AstMigration` values.""" +type AstMigrationConnection { + """A list of `AstMigration` objects.""" + nodes: [AstMigration]! """ - A list of edges which contains the `User` and cursor to aid in pagination. + A list of edges which contains the `AstMigration` and cursor to aid in pagination. """ - edges: [UserEdge]! + edges: [AstMigrationEdge]! """Information to aid in pagination.""" pageInfo: PageInfo! - """The count of *all* `User` you could get from the connection.""" - totalCount: Int! -} - -"""A `User` edge in the connection.""" -type UserEdge { - """A cursor for use in pagination.""" - cursor: Cursor - - """The `User` at the end of the edge.""" - node: User -} - -"""Methods to use when ordering `User`.""" -enum UserOrderBy { - NATURAL - PRIMARY_KEY_ASC - PRIMARY_KEY_DESC - ID_ASC - ID_DESC - USERNAME_ASC - USERNAME_DESC - DISPLAY_NAME_ASC - DISPLAY_NAME_DESC - PROFILE_PICTURE_ASC - PROFILE_PICTURE_DESC - SEARCH_TSV_ASC - SEARCH_TSV_DESC - TYPE_ASC - TYPE_DESC - CREATED_AT_ASC - CREATED_AT_DESC - UPDATED_AT_ASC - UPDATED_AT_DESC - SEARCH_TSV_RANK_ASC - SEARCH_TSV_RANK_DESC - DISPLAY_NAME_TRGM_SIMILARITY_ASC - DISPLAY_NAME_TRGM_SIMILARITY_DESC - SEARCH_SCORE_ASC - SEARCH_SCORE_DESC -} - -"""A connection to a list of `AstMigration` values.""" -type AstMigrationConnection { - """A list of `AstMigration` objects.""" - nodes: [AstMigration]! - - """ - A list of edges which contains the `AstMigration` and cursor to aid in pagination. - """ - edges: [AstMigrationEdge]! - - """Information to aid in pagination.""" - pageInfo: PageInfo! - - """The count of *all* `AstMigration` you could get from the connection.""" + """The count of *all* `AstMigration` you could get from the connection.""" totalCount: Int! } @@ -25883,6 +27458,124 @@ enum AstMigrationOrderBy { ACTOR_ID_DESC } +"""A connection to a list of `User` values.""" +type UserConnection { + """A list of `User` objects.""" + nodes: [User]! + + """ + A list of edges which contains the `User` and cursor to aid in pagination. + """ + edges: [UserEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """The count of *all* `User` you could get from the connection.""" + totalCount: Int! +} + +"""A `User` edge in the connection.""" +type UserEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `User` at the end of the edge.""" + node: User +} + +"""Methods to use when ordering `User`.""" +enum UserOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + USERNAME_ASC + USERNAME_DESC + DISPLAY_NAME_ASC + DISPLAY_NAME_DESC + PROFILE_PICTURE_ASC + PROFILE_PICTURE_DESC + SEARCH_TSV_ASC + SEARCH_TSV_DESC + TYPE_ASC + TYPE_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + SEARCH_TSV_RANK_ASC + SEARCH_TSV_RANK_DESC + DISPLAY_NAME_TRGM_SIMILARITY_ASC + DISPLAY_NAME_TRGM_SIMILARITY_DESC + SEARCH_SCORE_ASC + SEARCH_SCORE_DESC +} + +"""A connection to a list of `OrgMembershipSetting` values.""" +type OrgMembershipSettingConnection { + """A list of `OrgMembershipSetting` objects.""" + nodes: [OrgMembershipSetting]! + + """ + A list of edges which contains the `OrgMembershipSetting` and cursor to aid in pagination. + """ + edges: [OrgMembershipSettingEdge]! + + """Information to aid in pagination.""" + pageInfo: PageInfo! + + """ + The count of *all* `OrgMembershipSetting` you could get from the connection. + """ + totalCount: Int! +} + +"""A `OrgMembershipSetting` edge in the connection.""" +type OrgMembershipSettingEdge { + """A cursor for use in pagination.""" + cursor: Cursor + + """The `OrgMembershipSetting` at the end of the edge.""" + node: OrgMembershipSetting +} + +"""Methods to use when ordering `OrgMembershipSetting`.""" +enum OrgMembershipSettingOrderBy { + NATURAL + PRIMARY_KEY_ASC + PRIMARY_KEY_DESC + ID_ASC + ID_DESC + CREATED_AT_ASC + CREATED_AT_DESC + UPDATED_AT_ASC + UPDATED_AT_DESC + CREATED_BY_ASC + CREATED_BY_DESC + UPDATED_BY_ASC + UPDATED_BY_DESC + ENTITY_ID_ASC + ENTITY_ID_DESC + DELETE_MEMBER_CASCADE_CHILDREN_ASC + DELETE_MEMBER_CASCADE_CHILDREN_DESC + CREATE_CHILD_CASCADE_OWNERS_ASC + CREATE_CHILD_CASCADE_OWNERS_DESC + CREATE_CHILD_CASCADE_ADMINS_ASC + CREATE_CHILD_CASCADE_ADMINS_DESC + CREATE_CHILD_CASCADE_MEMBERS_ASC + CREATE_CHILD_CASCADE_MEMBERS_DESC + ALLOW_EXTERNAL_MEMBERS_ASC + ALLOW_EXTERNAL_MEMBERS_DESC + INVITE_PROFILE_ASSIGNMENT_MODE_ASC + INVITE_PROFILE_ASSIGNMENT_MODE_DESC + POPULATE_MEMBER_EMAIL_ASC + POPULATE_MEMBER_EMAIL_DESC + LIMIT_ALLOCATION_MODE_ASC + LIMIT_ALLOCATION_MODE_DESC +} + """A connection to a list of `AppMembership` values.""" type AppMembershipConnection { """A list of `AppMembership` objects.""" @@ -25934,8 +27627,6 @@ enum AppMembershipOrderBy { IS_VERIFIED_DESC IS_ACTIVE_ASC IS_ACTIVE_DESC - IS_EXTERNAL_ASC - IS_EXTERNAL_DESC IS_OWNER_ASC IS_OWNER_DESC IS_ADMIN_ASC @@ -27330,6 +29021,55 @@ input CreateApiKeyInput { expiresIn: IntervalInput } +"""The output of our `sendVerificationEmail` mutation.""" +type SendVerificationEmailPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + result: Boolean + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `sendVerificationEmail` mutation.""" +input SendVerificationEmailInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + email: ConstructiveInternalTypeEmail +} + +"""The output of our `forgotPassword` mutation.""" +type ForgotPasswordPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the `forgotPassword` mutation.""" +input ForgotPasswordInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + email: ConstructiveInternalTypeEmail +} + """The output of our `signUp` mutation.""" type SignUpPayload { """ @@ -27479,55 +29219,6 @@ input ProvisionTableInput { description: String } -"""The output of our `sendVerificationEmail` mutation.""" -type SendVerificationEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - result: Boolean - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `sendVerificationEmail` mutation.""" -input SendVerificationEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - -"""The output of our `forgotPassword` mutation.""" -type ForgotPasswordPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query -} - -"""All input for the `forgotPassword` mutation.""" -input ForgotPasswordInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - email: ConstructiveInternalTypeEmail -} - """The output of our create `DefaultIdsModule` mutation.""" type CreateDefaultIdsModulePayload { """ @@ -27569,6 +29260,47 @@ input DefaultIdsModuleInput { databaseId: UUID! } +"""The output of our create `RoleType` mutation.""" +type CreateRoleTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RoleType` that was created by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the create `RoleType` mutation.""" +input CreateRoleTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `RoleType` to be created by this mutation.""" + roleType: RoleTypeInput! +} + +"""An input for mutations affecting `RoleType`""" +input RoleTypeInput { + id: Int! + name: String! +} + """The output of our create `ViewTable` mutation.""" type CreateViewTablePayload { """ @@ -27662,58 +29394,6 @@ input ApiSchemaInput { apiId: UUID! } -"""The output of our create `SiteTheme` mutation.""" -type CreateSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was created by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the create `SiteTheme` mutation.""" -input CreateSiteThemeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SiteTheme` to be created by this mutation.""" - siteTheme: SiteThemeInput! -} - -"""An input for mutations affecting `SiteTheme`""" -input SiteThemeInput { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this theme belongs to""" - siteId: UUID! - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON! -} - """The output of our create `OrgMember` mutation.""" type CreateOrgMemberPayload { """ @@ -27763,47 +29443,56 @@ input OrgMemberInput { entityId: UUID! } -"""The output of our create `AppPermissionDefault` mutation.""" -type CreateAppPermissionDefaultPayload { +"""The output of our create `SiteTheme` mutation.""" +type CreateSiteThemePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was created by this mutation.""" - appPermissionDefault: AppPermissionDefault + """The `SiteTheme` that was created by this mutation.""" + siteTheme: SiteTheme """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge } -"""All input for the create `AppPermissionDefault` mutation.""" -input CreateAppPermissionDefaultInput { +"""All input for the create `SiteTheme` mutation.""" +input CreateSiteThemeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppPermissionDefault` to be created by this mutation.""" - appPermissionDefault: AppPermissionDefaultInput! + """The `SiteTheme` to be created by this mutation.""" + siteTheme: SiteThemeInput! } -"""An input for mutations affecting `AppPermissionDefault`""" -input AppPermissionDefaultInput { +"""An input for mutations affecting `SiteTheme`""" +input SiteThemeInput { + """Unique identifier for this theme record""" id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """Reference to the metaschema database""" + databaseId: UUID! + + """Site this theme belongs to""" + siteId: UUID! + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON! } """The output of our create `IdentityProvider` mutation.""" @@ -27942,112 +29631,6 @@ input StoreInput { createdAt: Datetime } -"""The output of our create `ApiModule` mutation.""" -type CreateApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was created by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the create `ApiModule` mutation.""" -input CreateApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `ApiModule` to be created by this mutation.""" - apiModule: ApiModuleInput! -} - -"""An input for mutations affecting `ApiModule`""" -input ApiModuleInput { - """Unique identifier for this API module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """API this module configuration belongs to""" - apiId: UUID! - - """Module name (e.g. auth, uploads, webhooks)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! -} - -"""The output of our create `SiteModule` mutation.""" -type CreateSiteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteModule` that was created by this mutation.""" - siteModule: SiteModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge -} - -"""All input for the create `SiteModule` mutation.""" -input CreateSiteModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `SiteModule` to be created by this mutation.""" - siteModule: SiteModuleInput! -} - -"""An input for mutations affecting `SiteModule`""" -input SiteModuleInput { - """Unique identifier for this site module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this module configuration belongs to""" - siteId: UUID! - - """Module name (e.g. user_auth_module, analytics)""" - name: String! - - """JSON configuration data for this module""" - data: JSON! -} - """The output of our create `EncryptedSecretsModule` mutation.""" type CreateEncryptedSecretsModulePayload { """ @@ -28180,91 +29763,153 @@ input SecretsModuleInput { tableName: String } -"""The output of our create `RoleType` mutation.""" -type CreateRoleTypePayload { +"""The output of our create `AppPermissionDefault` mutation.""" +type CreateAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RoleType` that was created by this mutation.""" - roleType: RoleType + """The `AppPermissionDefault` that was created by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the create `RoleType` mutation.""" -input CreateRoleTypeInput { +"""All input for the create `AppPermissionDefault` mutation.""" +input CreateAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `RoleType` to be created by this mutation.""" - roleType: RoleTypeInput! + """The `AppPermissionDefault` to be created by this mutation.""" + appPermissionDefault: AppPermissionDefaultInput! } -"""An input for mutations affecting `RoleType`""" -input RoleTypeInput { - id: Int! +"""An input for mutations affecting `AppPermissionDefault`""" +input AppPermissionDefaultInput { + id: UUID + + """Default permission bitmask applied to new members""" + permissions: BitString +} + +"""The output of our create `ApiModule` mutation.""" +type CreateApiModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiModule` that was created by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the create `ApiModule` mutation.""" +input CreateApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `ApiModule` to be created by this mutation.""" + apiModule: ApiModuleInput! +} + +"""An input for mutations affecting `ApiModule`""" +input ApiModuleInput { + """Unique identifier for this API module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID! + + """API this module configuration belongs to""" + apiId: UUID! + + """Module name (e.g. auth, uploads, webhooks)""" name: String! + + """JSON configuration data for this module""" + data: JSON! } -"""The output of our create `OrgPermissionDefault` mutation.""" -type CreateOrgPermissionDefaultPayload { +"""The output of our create `SiteModule` mutation.""" +type CreateSiteModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was created by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `SiteModule` that was created by this mutation.""" + siteModule: SiteModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge } -"""All input for the create `OrgPermissionDefault` mutation.""" -input CreateOrgPermissionDefaultInput { +"""All input for the create `SiteModule` mutation.""" +input CreateSiteModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgPermissionDefault` to be created by this mutation.""" - orgPermissionDefault: OrgPermissionDefaultInput! + """The `SiteModule` to be created by this mutation.""" + siteModule: SiteModuleInput! } -"""An input for mutations affecting `OrgPermissionDefault`""" -input OrgPermissionDefaultInput { +"""An input for mutations affecting `SiteModule`""" +input SiteModuleInput { + """Unique identifier for this site module record""" id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """Reference to the metaschema database""" + databaseId: UUID! - """References the entity these default permissions apply to""" - entityId: UUID! + """Site this module configuration belongs to""" + siteId: UUID! + + """Module name (e.g. user_auth_module, analytics)""" + name: String! + + """JSON configuration data for this module""" + data: JSON! } """The output of our create `SchemaGrant` mutation.""" @@ -28602,132 +30247,360 @@ input AppOwnerGrantInput { updatedAt: Datetime } -"""The output of our create `MigrateFile` mutation.""" -type CreateMigrateFilePayload { +"""The output of our create `AppAchievement` mutation.""" +type CreateAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MigrateFile` that was created by this mutation.""" - migrateFile: MigrateFile + """The `AppAchievement` that was created by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the create `MigrateFile` mutation.""" -input CreateMigrateFileInput { +"""All input for the create `AppAchievement` mutation.""" +input CreateAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `MigrateFile` to be created by this mutation.""" - migrateFile: MigrateFileInput! + """The `AppAchievement` to be created by this mutation.""" + appAchievement: AppAchievementInput! } -"""An input for mutations affecting `MigrateFile`""" -input MigrateFileInput { +"""An input for mutations affecting `AppAchievement`""" +input AppAchievementInput { id: UUID - databaseId: UUID - upload: ConstructiveInternalTypeUpload + actorId: UUID + + """Name identifier of the level requirement being tracked""" + name: String! + + """Cumulative count of completed steps toward this requirement""" + count: Int + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppLimitDefault` mutation.""" -type CreateAppLimitDefaultPayload { +"""The output of our create `AppStep` mutation.""" +type CreateAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was created by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppStep` that was created by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the create `AppLimitDefault` mutation.""" -input CreateAppLimitDefaultInput { +"""All input for the create `AppStep` mutation.""" +input CreateAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimitDefault` to be created by this mutation.""" - appLimitDefault: AppLimitDefaultInput! + """The `AppStep` to be created by this mutation.""" + appStep: AppStepInput! } -"""An input for mutations affecting `AppLimitDefault`""" -input AppLimitDefaultInput { +"""An input for mutations affecting `AppStep`""" +input AppStepInput { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement this step fulfills""" name: String! - """Default maximum usage allowed for this limit""" - max: Int + """Number of units completed in this step action""" + count: Int + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `OrgLimitDefault` mutation.""" -type CreateOrgLimitDefaultPayload { +"""The output of our create `OrgPermissionDefault` mutation.""" +type CreateOrgPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was created by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `OrgPermissionDefault` that was created by this mutation.""" + orgPermissionDefault: OrgPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge } -"""All input for the create `OrgLimitDefault` mutation.""" -input CreateOrgLimitDefaultInput { +"""All input for the create `OrgPermissionDefault` mutation.""" +input CreateOrgPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimitDefault` to be created by this mutation.""" - orgLimitDefault: OrgLimitDefaultInput! + """The `OrgPermissionDefault` to be created by this mutation.""" + orgPermissionDefault: OrgPermissionDefaultInput! } -"""An input for mutations affecting `OrgLimitDefault`""" -input OrgLimitDefaultInput { +"""An input for mutations affecting `OrgPermissionDefault`""" +input OrgPermissionDefaultInput { id: UUID - """Name identifier of the limit this default applies to""" + """Default permission bitmask applied to new members""" + permissions: BitString + + """References the entity these default permissions apply to""" + entityId: UUID! +} + +"""The output of our create `AppPermission` mutation.""" +type CreateAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was created by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the create `AppPermission` mutation.""" +input CreateAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppPermission` to be created by this mutation.""" + appPermission: AppPermissionInput! +} + +"""An input for mutations affecting `AppPermission`""" +input AppPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `OrgPermission` mutation.""" +type CreateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was created by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the create `OrgPermission` mutation.""" +input CreateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgPermission` to be created by this mutation.""" + orgPermission: OrgPermissionInput! +} + +"""An input for mutations affecting `OrgPermission`""" +input OrgPermissionInput { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our create `MembershipType` mutation.""" +type CreateMembershipTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipType` that was created by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the create `MembershipType` mutation.""" +input CreateMembershipTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MembershipType` to be created by this mutation.""" + membershipType: MembershipTypeInput! +} + +"""An input for mutations affecting `MembershipType`""" +input MembershipTypeInput { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! + + """Human-readable name of the membership type""" name: String! - """Default maximum usage allowed for this limit""" - max: Int + """Description of what this membership type represents""" + description: String! + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String! + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean +} + +"""The output of our create `MigrateFile` mutation.""" +type CreateMigrateFilePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MigrateFile` that was created by this mutation.""" + migrateFile: MigrateFile + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `MigrateFile` mutation.""" +input CreateMigrateFileInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `MigrateFile` to be created by this mutation.""" + migrateFile: MigrateFileInput! +} + +"""An input for mutations affecting `MigrateFile`""" +input MigrateFileInput { + id: UUID + databaseId: UUID + upload: ConstructiveInternalTypeUpload } """The output of our create `DefaultPrivilege` mutation.""" @@ -29265,91 +31138,189 @@ input OrgOwnerGrantInput { updatedAt: Datetime } -"""The output of our create `UserConnectedAccount` mutation.""" -type CreateUserConnectedAccountPayload { +"""The output of our create `NodeTypeRegistry` mutation.""" +type CreateNodeTypeRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `UserConnectedAccount` that was created by this mutation.""" - userConnectedAccount: UserConnectedAccount + """The `NodeTypeRegistry` that was created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query + + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge } -"""All input for the create `UserConnectedAccount` mutation.""" -input CreateUserConnectedAccountInput { +"""All input for the create `NodeTypeRegistry` mutation.""" +input CreateNodeTypeRegistryInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `UserConnectedAccount` to be created by this mutation.""" - userConnectedAccount: UserConnectedAccountInput! + """The `NodeTypeRegistry` to be created by this mutation.""" + nodeTypeRegistry: NodeTypeRegistryInput! } -"""An input for mutations affecting `UserConnectedAccount`""" -input UserConnectedAccountInput { +"""An input for mutations affecting `NodeTypeRegistry`""" +input NodeTypeRegistryInput { + name: String! + slug: String! + category: String! + displayName: String + description: String + parameterSchema: JSON + tags: [String] +} + +"""The output of our create `AppLimitDefault` mutation.""" +type CreateAppLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitDefault` that was created by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the create `AppLimitDefault` mutation.""" +input CreateAppLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitDefault` to be created by this mutation.""" + appLimitDefault: AppLimitDefaultInput! +} + +"""An input for mutations affecting `AppLimitDefault`""" +input AppLimitDefaultInput { id: UUID - ownerId: UUID - service: String - identifier: String - details: JSON - isVerified: Boolean - createdAt: Datetime - updatedAt: Datetime + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } -"""The output of our create `Object` mutation.""" -type CreateObjectPayload { +"""The output of our create `OrgLimitDefault` mutation.""" +type CreateOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Object` that was created by this mutation.""" - object: Object + """The `OrgLimitDefault` that was created by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the create `Object` mutation.""" -input CreateObjectInput { +"""All input for the create `OrgLimitDefault` mutation.""" +input CreateOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Object` to be created by this mutation.""" - object: ObjectInput! + """The `OrgLimitDefault` to be created by this mutation.""" + orgLimitDefault: OrgLimitDefaultInput! } -"""An input for mutations affecting `Object`""" -input ObjectInput { - id: UUID! - databaseId: UUID! - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean +"""An input for mutations affecting `OrgLimitDefault`""" +input OrgLimitDefaultInput { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String! + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our create `UserConnectedAccount` mutation.""" +type CreateUserConnectedAccountPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `UserConnectedAccount` that was created by this mutation.""" + userConnectedAccount: UserConnectedAccount + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `UserConnectedAccount` mutation.""" +input CreateUserConnectedAccountInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `UserConnectedAccount` to be created by this mutation.""" + userConnectedAccount: UserConnectedAccountInput! +} + +"""An input for mutations affecting `UserConnectedAccount`""" +input UserConnectedAccountInput { + id: UUID + ownerId: UUID + service: String + identifier: String + details: JSON + isVerified: Boolean createdAt: Datetime + updatedAt: Datetime } """The output of our create `Database` mutation.""" @@ -29505,977 +31476,1033 @@ input CryptoAddressInput { updatedAt: Datetime } -"""The output of our create `AppPermission` mutation.""" -type CreateAppPermissionPayload { +"""The output of our create `AgentMessage` mutation.""" +type CreateAgentMessagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was created by this mutation.""" - appPermission: AppPermission + """The `AgentMessage` that was created by this mutation.""" + agentMessage: AgentMessage """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge } -"""All input for the create `AppPermission` mutation.""" -input CreateAppPermissionInput { +"""All input for the create `AgentMessage` mutation.""" +input CreateAgentMessageInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppPermission` to be created by this mutation.""" - appPermission: AppPermissionInput! + """The `AgentMessage` to be created by this mutation.""" + agentMessage: AgentMessageInput! } -"""An input for mutations affecting `AppPermission`""" -input AppPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String +"""An input for mutations affecting `AgentMessage`""" +input AgentMessageInput { + """ + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + """ + threadId: UUID! """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set + Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. """ - bitnum: Int + entityId: UUID! """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. """ - bitstr: BitString + authorRole: String! + id: UUID - """Human-readable description of what this permission allows""" - description: String + """Timestamp when this record was created""" + createdAt: Datetime + + """Timestamp when this record was last updated""" + updatedAt: Datetime + + """User who owns this record""" + ownerId: UUID + + """JSON metadata for extensible key-value storage""" + parts: JSON } -"""The output of our create `OrgPermission` mutation.""" -type CreateOrgPermissionPayload { +"""The output of our create `Object` mutation.""" +type CreateObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was created by this mutation.""" - orgPermission: OrgPermission + """The `Object` that was created by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the create `OrgPermission` mutation.""" -input CreateOrgPermissionInput { +"""All input for the create `Object` mutation.""" +input CreateObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgPermission` to be created by this mutation.""" - orgPermission: OrgPermissionInput! + """The `Object` to be created by this mutation.""" + object: ObjectInput! } -"""An input for mutations affecting `OrgPermission`""" -input OrgPermissionInput { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String +"""An input for mutations affecting `Object`""" +input ObjectInput { + id: UUID! + databaseId: UUID! + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean + createdAt: Datetime } -"""The output of our create `AppLimit` mutation.""" -type CreateAppLimitPayload { +"""The output of our create `SiteMetadatum` mutation.""" +type CreateSiteMetadatumPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was created by this mutation.""" - appLimit: AppLimit + """The `SiteMetadatum` that was created by this mutation.""" + siteMetadatum: SiteMetadatum """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge } -"""All input for the create `AppLimit` mutation.""" -input CreateAppLimitInput { +"""All input for the create `SiteMetadatum` mutation.""" +input CreateSiteMetadatumInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppLimit` to be created by this mutation.""" - appLimit: AppLimitInput! + """The `SiteMetadatum` to be created by this mutation.""" + siteMetadatum: SiteMetadatumInput! } -"""An input for mutations affecting `AppLimit`""" -input AppLimitInput { +"""An input for mutations affecting `SiteMetadatum`""" +input SiteMetadatumInput { + """Unique identifier for this metadata record""" id: UUID - """Name identifier of the limit being tracked""" - name: String + """Reference to the metaschema database""" + databaseId: UUID! - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Site this metadata belongs to""" + siteId: UUID! - """Current usage count for this actor and limit""" - num: Int + """Page title for SEO (max 120 characters)""" + title: String + + """Meta description for SEO and social sharing (max 120 characters)""" + description: String - """Maximum allowed usage; NULL means use the default limit value""" - max: Int + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage } -"""The output of our create `AppAchievement` mutation.""" -type CreateAppAchievementPayload { +"""The output of our create `AppLevelRequirement` mutation.""" +type CreateAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAchievement` that was created by this mutation.""" - appAchievement: AppAchievement + """The `AppLevelRequirement` that was created by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the create `AppAchievement` mutation.""" -input CreateAppAchievementInput { +"""All input for the create `AppLevelRequirement` mutation.""" +input CreateAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppAchievement` to be created by this mutation.""" - appAchievement: AppAchievementInput! + """The `AppLevelRequirement` to be created by this mutation.""" + appLevelRequirement: AppLevelRequirementInput! } -"""An input for mutations affecting `AppAchievement`""" -input AppAchievementInput { +"""An input for mutations affecting `AppLevelRequirement`""" +input AppLevelRequirementInput { id: UUID - actorId: UUID - """Name identifier of the level requirement being tracked""" + """Name identifier of the requirement (matches step names)""" name: String! - """Cumulative count of completed steps toward this requirement""" - count: Int + """Name of the level this requirement belongs to""" + level: String! + + """Human-readable description of what this requirement entails""" + description: String + + """Number of steps needed to satisfy this requirement""" + requiredCount: Int + + """Display ordering priority; lower values appear first""" + priority: Int createdAt: Datetime updatedAt: Datetime } -"""The output of our create `AppStep` mutation.""" -type CreateAppStepPayload { +"""The output of our create `FullTextSearch` mutation.""" +type CreateFullTextSearchPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was created by this mutation.""" - appStep: AppStep + """The `FullTextSearch` that was created by this mutation.""" + fullTextSearch: FullTextSearch """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `FullTextSearch`. May be used by Relay 1.""" + fullTextSearchEdge( + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] + ): FullTextSearchEdge } -"""All input for the create `AppStep` mutation.""" -input CreateAppStepInput { +"""All input for the create `FullTextSearch` mutation.""" +input CreateFullTextSearchInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppStep` to be created by this mutation.""" - appStep: AppStepInput! + """The `FullTextSearch` to be created by this mutation.""" + fullTextSearch: FullTextSearchInput! } -"""An input for mutations affecting `AppStep`""" -input AppStepInput { +"""An input for mutations affecting `FullTextSearch`""" +input FullTextSearchInput { id: UUID - actorId: UUID - - """Name identifier of the level requirement this step fulfills""" - name: String! - - """Number of units completed in this step action""" - count: Int + databaseId: UUID + tableId: UUID! + fieldId: UUID! + fieldIds: [UUID]! + weights: [String]! + langs: [String]! createdAt: Datetime updatedAt: Datetime } -"""The output of our create `SiteMetadatum` mutation.""" -type CreateSiteMetadatumPayload { +"""The output of our create `TableGrant` mutation.""" +type CreateTableGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteMetadatum` that was created by this mutation.""" - siteMetadatum: SiteMetadatum + """The `TableGrant` that was created by this mutation.""" + tableGrant: TableGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `TableGrant`. May be used by Relay 1.""" + tableGrantEdge( + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableGrantEdge } -"""All input for the create `SiteMetadatum` mutation.""" -input CreateSiteMetadatumInput { +"""All input for the create `TableGrant` mutation.""" +input CreateTableGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SiteMetadatum` to be created by this mutation.""" - siteMetadatum: SiteMetadatumInput! + """The `TableGrant` to be created by this mutation.""" + tableGrant: TableGrantInput! } -"""An input for mutations affecting `SiteMetadatum`""" -input SiteMetadatumInput { - """Unique identifier for this metadata record""" +"""An input for mutations affecting `TableGrant`""" +input TableGrantInput { id: UUID - - """Reference to the metaschema database""" - databaseId: UUID! - - """Site this metadata belongs to""" - siteId: UUID! - - """Page title for SEO (max 120 characters)""" - title: String - - """Meta description for SEO and social sharing (max 120 characters)""" - description: String - - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage + databaseId: UUID + tableId: UUID! + privilege: String! + granteeName: String! + fieldIds: [UUID] + isGrant: Boolean + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppClaimedInvite` mutation.""" -type CreateAppClaimedInvitePayload { +"""The output of our create `Commit` mutation.""" +type CreateCommitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was created by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `Commit` that was created by this mutation.""" + commit: Commit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `Commit`. May be used by Relay 1.""" + commitEdge( + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] + ): CommitEdge } -"""All input for the create `AppClaimedInvite` mutation.""" -input CreateAppClaimedInviteInput { +"""All input for the create `Commit` mutation.""" +input CreateCommitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppClaimedInvite` to be created by this mutation.""" - appClaimedInvite: AppClaimedInviteInput! + """The `Commit` to be created by this mutation.""" + commit: CommitInput! } -"""An input for mutations affecting `AppClaimedInvite`""" -input AppClaimedInviteInput { +"""An input for mutations affecting `Commit`""" +input CommitInput { + """The primary unique identifier for the commit.""" id: UUID - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON + """The commit message""" + message: String - """User ID of the original invitation sender""" - senderId: UUID + """The repository identifier""" + databaseId: UUID! + storeId: UUID! - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime + """Parent commits""" + parentIds: [UUID] + + """The author of the commit""" + authorId: UUID + + """The committer of the commit""" + committerId: UUID + + """The root of the tree""" + treeId: UUID + date: Datetime } -"""The output of our create `AppMembershipDefault` mutation.""" -type CreateAppMembershipDefaultPayload { +"""The output of our create `RateLimitsModule` mutation.""" +type CreateRateLimitsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was created by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `RateLimitsModule` that was created by this mutation.""" + rateLimitsModule: RateLimitsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `RateLimitsModule`. May be used by Relay 1.""" + rateLimitsModuleEdge( + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): RateLimitsModuleEdge } -"""All input for the create `AppMembershipDefault` mutation.""" -input CreateAppMembershipDefaultInput { +"""All input for the create `RateLimitsModule` mutation.""" +input CreateRateLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppMembershipDefault` to be created by this mutation.""" - appMembershipDefault: AppMembershipDefaultInput! + """The `RateLimitsModule` to be created by this mutation.""" + rateLimitsModule: RateLimitsModuleInput! } -"""An input for mutations affecting `AppMembershipDefault`""" -input AppMembershipDefaultInput { +"""An input for mutations affecting `RateLimitsModule`""" +input RateLimitsModuleInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + databaseId: UUID! + schemaId: UUID + rateLimitSettingsTableId: UUID + ipRateLimitsTableId: UUID + rateLimitsTableId: UUID + rateLimitSettingsTable: String + ipRateLimitsTable: String + rateLimitsTable: String } -"""The output of our create `OrgMembershipDefault` mutation.""" -type CreateOrgMembershipDefaultPayload { +"""The output of our create `OrgChartEdgeGrant` mutation.""" +type CreateOrgChartEdgeGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was created by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `OrgChartEdgeGrant` that was created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" + orgChartEdgeGrantEdge( + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantEdge } -"""All input for the create `OrgMembershipDefault` mutation.""" -input CreateOrgMembershipDefaultInput { +"""All input for the create `OrgChartEdgeGrant` mutation.""" +input CreateOrgChartEdgeGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembershipDefault` to be created by this mutation.""" - orgMembershipDefault: OrgMembershipDefaultInput! + """The `OrgChartEdgeGrant` to be created by this mutation.""" + orgChartEdgeGrant: OrgChartEdgeGrantInput! } -"""An input for mutations affecting `OrgMembershipDefault`""" -input OrgMembershipDefaultInput { +"""An input for mutations affecting `OrgChartEdgeGrant`""" +input OrgChartEdgeGrantInput { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean - - """References the entity these membership defaults apply to""" + """Organization this grant applies to""" entityId: UUID! + + """User ID of the subordinate being placed in the hierarchy""" + childId: UUID! + + """User ID of the manager being assigned; NULL for top-level positions""" + parentId: UUID + + """ + User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + """ + grantorId: UUID + + """TRUE to add/update the edge, FALSE to remove it""" + isGrant: Boolean + + """Job title or role name being assigned in this grant""" + positionTitle: String + + """Numeric seniority level being assigned in this grant""" + positionLevel: Int + + """Timestamp when this grant or revocation was recorded""" + createdAt: Datetime } -"""The output of our create `FullTextSearch` mutation.""" -type CreateFullTextSearchPayload { +"""The output of our create `PhoneNumber` mutation.""" +type CreatePhoneNumberPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `FullTextSearch` that was created by this mutation.""" - fullTextSearch: FullTextSearch + """The `PhoneNumber` that was created by this mutation.""" + phoneNumber: PhoneNumber """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `FullTextSearch`. May be used by Relay 1.""" - fullTextSearchEdge( - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!]! = [PRIMARY_KEY_ASC] - ): FullTextSearchEdge + """An edge for our `PhoneNumber`. May be used by Relay 1.""" + phoneNumberEdge( + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] + ): PhoneNumberEdge } -"""All input for the create `FullTextSearch` mutation.""" -input CreateFullTextSearchInput { +"""All input for the create `PhoneNumber` mutation.""" +input CreatePhoneNumberInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `FullTextSearch` to be created by this mutation.""" - fullTextSearch: FullTextSearchInput! + """The `PhoneNumber` to be created by this mutation.""" + phoneNumber: PhoneNumberInput! } -"""An input for mutations affecting `FullTextSearch`""" -input FullTextSearchInput { +"""An input for mutations affecting `PhoneNumber`""" +input PhoneNumberInput { id: UUID - databaseId: UUID - tableId: UUID! - fieldId: UUID! - fieldIds: [UUID]! - weights: [String]! - langs: [String]! + ownerId: UUID + + """Country calling code (e.g. +1, +44)""" + cc: String! + + """The phone number without country code""" + number: String! + + """Whether the phone number has been verified via SMS code""" + isVerified: Boolean + + """Whether this is the user's primary phone number""" + isPrimary: Boolean + + """ + Optional user-provided label for this phone number (e.g. "Mobile", "Work"). + """ + name: String createdAt: Datetime updatedAt: Datetime } -"""The output of our create `TableGrant` mutation.""" -type CreateTableGrantPayload { +"""The output of our create `AppClaimedInvite` mutation.""" +type CreateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `TableGrant` that was created by this mutation.""" - tableGrant: TableGrant + """The `AppClaimedInvite` that was created by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `TableGrant`. May be used by Relay 1.""" - tableGrantEdge( - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableGrantEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the create `TableGrant` mutation.""" -input CreateTableGrantInput { +"""All input for the create `AppClaimedInvite` mutation.""" +input CreateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `TableGrant` to be created by this mutation.""" - tableGrant: TableGrantInput! + """The `AppClaimedInvite` to be created by this mutation.""" + appClaimedInvite: AppClaimedInviteInput! } -"""An input for mutations affecting `TableGrant`""" -input TableGrantInput { +"""An input for mutations affecting `AppClaimedInvite`""" +input AppClaimedInviteInput { id: UUID - databaseId: UUID - tableId: UUID! - privilege: String! - granteeName: String! - fieldIds: [UUID] - isGrant: Boolean + + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON + + """User ID of the original invitation sender""" + senderId: UUID + + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our create `Commit` mutation.""" -type CreateCommitPayload { +"""The output of our create `AppMembershipDefault` mutation.""" +type CreateAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Commit` that was created by this mutation.""" - commit: Commit + """The `AppMembershipDefault` that was created by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Commit`. May be used by Relay 1.""" - commitEdge( - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!]! = [PRIMARY_KEY_ASC] - ): CommitEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the create `Commit` mutation.""" -input CreateCommitInput { +"""All input for the create `AppMembershipDefault` mutation.""" +input CreateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Commit` to be created by this mutation.""" - commit: CommitInput! + """The `AppMembershipDefault` to be created by this mutation.""" + appMembershipDefault: AppMembershipDefaultInput! } -"""An input for mutations affecting `Commit`""" -input CommitInput { - """The primary unique identifier for the commit.""" +"""An input for mutations affecting `AppMembershipDefault`""" +input AppMembershipDefaultInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """The commit message""" - message: String - - """The repository identifier""" - databaseId: UUID! - storeId: UUID! - - """Parent commits""" - parentIds: [UUID] - - """The author of the commit""" - authorId: UUID - - """The committer of the commit""" - committerId: UUID + """Whether new members are automatically approved upon joining""" + isApproved: Boolean - """The root of the tree""" - treeId: UUID - date: Datetime + """Whether new members are automatically verified upon joining""" + isVerified: Boolean } -"""The output of our create `RateLimitsModule` mutation.""" -type CreateRateLimitsModulePayload { +"""The output of our create `OrgMembershipDefault` mutation.""" +type CreateOrgMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RateLimitsModule` that was created by this mutation.""" - rateLimitsModule: RateLimitsModule + """The `OrgMembershipDefault` that was created by this mutation.""" + orgMembershipDefault: OrgMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RateLimitsModule`. May be used by Relay 1.""" - rateLimitsModuleEdge( - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): RateLimitsModuleEdge + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge } -"""All input for the create `RateLimitsModule` mutation.""" -input CreateRateLimitsModuleInput { +"""All input for the create `OrgMembershipDefault` mutation.""" +input CreateOrgMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `RateLimitsModule` to be created by this mutation.""" - rateLimitsModule: RateLimitsModuleInput! + """The `OrgMembershipDefault` to be created by this mutation.""" + orgMembershipDefault: OrgMembershipDefaultInput! } -"""An input for mutations affecting `RateLimitsModule`""" -input RateLimitsModuleInput { +"""An input for mutations affecting `OrgMembershipDefault`""" +input OrgMembershipDefaultInput { id: UUID - databaseId: UUID! - schemaId: UUID - rateLimitSettingsTableId: UUID - ipRateLimitsTableId: UUID - rateLimitsTableId: UUID - rateLimitSettingsTable: String - ipRateLimitsTable: String - rateLimitsTable: String + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID! } -"""The output of our create `OrgChartEdgeGrant` mutation.""" -type CreateOrgChartEdgeGrantPayload { +"""The output of our create `AuditLog` mutation.""" +type CreateAuditLogPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgChartEdgeGrant` that was created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrant + """The `AuditLog` that was created by this mutation.""" + auditLog: AuditLog """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgChartEdgeGrant`. May be used by Relay 1.""" - orgChartEdgeGrantEdge( - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantEdge + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge } -"""All input for the create `OrgChartEdgeGrant` mutation.""" -input CreateOrgChartEdgeGrantInput { +"""All input for the create `AuditLog` mutation.""" +input CreateAuditLogInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgChartEdgeGrant` to be created by this mutation.""" - orgChartEdgeGrant: OrgChartEdgeGrantInput! + """The `AuditLog` to be created by this mutation.""" + auditLog: AuditLogInput! } -"""An input for mutations affecting `OrgChartEdgeGrant`""" -input OrgChartEdgeGrantInput { +"""An input for mutations affecting `AuditLog`""" +input AuditLogInput { id: UUID - """Organization this grant applies to""" - entityId: UUID! - - """User ID of the subordinate being placed in the hierarchy""" - childId: UUID! - - """User ID of the manager being assigned; NULL for top-level positions""" - parentId: UUID - """ - User ID of the admin who performed this grant or revocation; NULL if grantor was deleted + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ - grantorId: UUID + event: String! - """TRUE to add/update the edge, FALSE to remove it""" - isGrant: Boolean + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID - """Job title or role name being assigned in this grant""" - positionTitle: String + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin - """Numeric seniority level being assigned in this grant""" - positionLevel: Int + """Browser or client user-agent string from the request""" + userAgent: String - """Timestamp when this grant or revocation was recorded""" + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress + + """Whether the authentication attempt succeeded""" + success: Boolean! + + """Timestamp when the audit event was recorded""" createdAt: Datetime } -"""The output of our create `PhoneNumber` mutation.""" -type CreatePhoneNumberPayload { +"""The output of our create `Domain` mutation.""" +type CreateDomainPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PhoneNumber` that was created by this mutation.""" - phoneNumber: PhoneNumber + """The `Domain` that was created by this mutation.""" + domain: Domain """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PhoneNumber`. May be used by Relay 1.""" - phoneNumberEdge( - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!]! = [PRIMARY_KEY_ASC] - ): PhoneNumberEdge + """An edge for our `Domain`. May be used by Relay 1.""" + domainEdge( + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] + ): DomainEdge } -"""All input for the create `PhoneNumber` mutation.""" -input CreatePhoneNumberInput { +"""All input for the create `Domain` mutation.""" +input CreateDomainInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `PhoneNumber` to be created by this mutation.""" - phoneNumber: PhoneNumberInput! + """The `Domain` to be created by this mutation.""" + domain: DomainInput! } -"""An input for mutations affecting `PhoneNumber`""" -input PhoneNumberInput { +"""An input for mutations affecting `Domain`""" +input DomainInput { + """Unique identifier for this domain record""" id: UUID - ownerId: UUID - """Country calling code (e.g. +1, +44)""" - cc: String! + """Reference to the metaschema database this domain belongs to""" + databaseId: UUID! - """The phone number without country code""" - number: String! + """API endpoint this domain routes to (mutually exclusive with site_id)""" + apiId: UUID - """Whether the phone number has been verified via SMS code""" - isVerified: Boolean + """Site this domain routes to (mutually exclusive with api_id)""" + siteId: UUID - """Whether this is the user's primary phone number""" - isPrimary: Boolean + """Subdomain portion of the hostname""" + subdomain: ConstructiveInternalTypeHostname - """ - Optional user-provided label for this phone number (e.g. "Mobile", "Work"). - """ - name: String - createdAt: Datetime - updatedAt: Datetime + """Root domain of the hostname""" + domain: ConstructiveInternalTypeHostname } -"""The output of our create `OrgLimit` mutation.""" -type CreateOrgLimitPayload { +"""The output of our create `AgentTask` mutation.""" +type CreateAgentTaskPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was created by this mutation.""" - orgLimit: OrgLimit + """The `AgentTask` that was created by this mutation.""" + agentTask: AgentTask """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge } -"""All input for the create `OrgLimit` mutation.""" -input CreateOrgLimitInput { +"""All input for the create `AgentTask` mutation.""" +input CreateAgentTaskInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgLimit` to be created by this mutation.""" - orgLimit: OrgLimitInput! + """The `AgentTask` to be created by this mutation.""" + agentTask: AgentTaskInput! } -"""An input for mutations affecting `OrgLimit`""" -input OrgLimitInput { +"""An input for mutations affecting `AgentTask`""" +input AgentTaskInput { + """ + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + """ + threadId: UUID! + + """ + Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. + """ + entityId: UUID! + + """Natural-language description of the work to do. Required.""" + description: String! + + """ + Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. + """ + source: String + + """ + Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. + """ + error: String id: UUID - """Name identifier of the limit being tracked""" - name: String + """Timestamp when this record was created""" + createdAt: Datetime - """User whose usage is being tracked against this limit""" - actorId: UUID! + """Timestamp when this record was last updated""" + updatedAt: Datetime - """Current usage count for this actor and limit""" - num: Int + """User who owns this record""" + ownerId: UUID - """Maximum allowed usage; NULL means use the default limit value""" - max: Int - entityId: UUID! + """Current status of this record""" + status: String } -"""The output of our create `MembershipType` mutation.""" -type CreateMembershipTypePayload { +"""The output of our create `AgentThread` mutation.""" +type CreateAgentThreadPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was created by this mutation.""" - membershipType: MembershipType + """The `AgentThread` that was created by this mutation.""" + agentThread: AgentThread """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge } -"""All input for the create `MembershipType` mutation.""" -input CreateMembershipTypeInput { +"""All input for the create `AgentThread` mutation.""" +input CreateAgentThreadInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `MembershipType` to be created by this mutation.""" - membershipType: MembershipTypeInput! + """The `AgentThread` to be created by this mutation.""" + agentThread: AgentThreadInput! } -"""An input for mutations affecting `MembershipType`""" -input MembershipTypeInput { +"""An input for mutations affecting `AgentThread`""" +input AgentThreadInput { """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. """ - id: Int! - - """Human-readable name of the membership type""" - name: String! - - """Description of what this membership type represents""" - description: String! + title: String """ - Short prefix used to namespace tables and functions for this membership scope + Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. """ - prefix: String! + mode: String """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. """ - parentMembershipType: Int + model: String """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. """ - hasUsersTableEntry: Boolean + systemPrompt: String + id: UUID + + """Timestamp when this record was created""" + createdAt: Datetime + + """Timestamp when this record was last updated""" + updatedAt: Datetime + + """User who owns this record within the entity""" + ownerId: UUID + + """Entity this record belongs to""" + entityId: UUID! + + """Current status of this record""" + status: String } -"""The output of our create `Domain` mutation.""" -type CreateDomainPayload { +"""The output of our create `Email` mutation.""" +type CreateEmailPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Domain` that was created by this mutation.""" - domain: Domain + """The `Email` that was created by this mutation.""" + email: Email """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Domain`. May be used by Relay 1.""" - domainEdge( - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!]! = [PRIMARY_KEY_ASC] - ): DomainEdge + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge } -"""All input for the create `Domain` mutation.""" -input CreateDomainInput { +"""All input for the create `Email` mutation.""" +input CreateEmailInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Domain` to be created by this mutation.""" - domain: DomainInput! + """The `Email` to be created by this mutation.""" + email: EmailInput! } -"""An input for mutations affecting `Domain`""" -input DomainInput { - """Unique identifier for this domain record""" +"""An input for mutations affecting `Email`""" +input EmailInput { id: UUID + ownerId: UUID - """Reference to the metaschema database this domain belongs to""" - databaseId: UUID! - - """API endpoint this domain routes to (mutually exclusive with site_id)""" - apiId: UUID + """The email address""" + email: ConstructiveInternalTypeEmail! - """Site this domain routes to (mutually exclusive with api_id)""" - siteId: UUID + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean - """Subdomain portion of the hostname""" - subdomain: ConstructiveInternalTypeHostname + """Whether this is the user's primary email address""" + isPrimary: Boolean - """Root domain of the hostname""" - domain: ConstructiveInternalTypeHostname + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime } """The output of our create `AppGrant` mutation.""" @@ -30582,6 +32609,128 @@ input OrgClaimedInviteInput { entityId: UUID! } +"""The output of our create `AppLimitEvent` mutation.""" +type CreateAppLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitEvent` that was created by this mutation.""" + appLimitEvent: AppLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AppLimitEvent` mutation.""" +input CreateAppLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AppLimitEvent` to be created by this mutation.""" + appLimitEvent: AppLimitEventInput! +} + +"""An input for mutations affecting `AppLimitEvent`""" +input AppLimitEventInput { + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + +"""The output of our create `OrgLimitEvent` mutation.""" +type CreateOrgLimitEventPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitEvent` that was created by this mutation.""" + orgLimitEvent: OrgLimitEvent + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `OrgLimitEvent` mutation.""" +input CreateOrgLimitEventInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitEvent` to be created by this mutation.""" + orgLimitEvent: OrgLimitEventInput! +} + +"""An input for mutations affecting `OrgLimitEvent`""" +input OrgLimitEventInput { + """Limit name this event applies to""" + name: String + + """User who triggered this event; NULL for system/aggregate events""" + actorId: UUID + + """Entity this event applies to; NULL for app-level events""" + entityId: UUID + + """Event type: inc, dec, check, modify, transfer, apply_plan, reset""" + eventType: String + + """Change amount: positive for increment, negative for decrement""" + delta: BigInt + + """Usage count before this event""" + numBefore: BigInt + + """Usage count after this event""" + numAfter: BigInt + + """Max limit ceiling at the time of this event""" + maxAtEvent: BigInt + + """ + Optional reason or source: achievement, invite, plan_change, purchase, etc. + """ + reason: String +} + """The output of our create `OrgChartEdge` mutation.""" type CreateOrgChartEdgePayload { """ @@ -30641,59 +32790,134 @@ input OrgChartEdgeInput { positionLevel: Int } -"""The output of our create `OrgGrant` mutation.""" -type CreateOrgGrantPayload { +"""The output of our create `AppLimit` mutation.""" +type CreateAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was created by this mutation.""" - orgGrant: OrgGrant + """The `AppLimit` that was created by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the create `OrgGrant` mutation.""" -input CreateOrgGrantInput { +"""All input for the create `AppLimit` mutation.""" +input CreateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgGrant` to be created by this mutation.""" - orgGrant: OrgGrantInput! + """The `AppLimit` to be created by this mutation.""" + appLimit: AppLimitInput! } -"""An input for mutations affecting `OrgGrant`""" -input OrgGrantInput { +"""An input for mutations affecting `AppLimit`""" +input AppLimitInput { id: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString - - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """Name identifier of the limit being tracked""" + name: String - """The member receiving or losing the permission grant""" + """User whose usage is being tracked against this limit""" actorId: UUID! - """The entity (org or group) this permission grant applies to""" + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput +} + +"""The output of our create `OrgLimitAggregate` mutation.""" +type CreateOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was created by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the create `OrgLimitAggregate` mutation.""" +input CreateOrgLimitAggregateInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimitAggregate` to be created by this mutation.""" + orgLimitAggregate: OrgLimitAggregateInput! +} + +"""An input for mutations affecting `OrgLimitAggregate`""" +input OrgLimitAggregateInput { + id: UUID + + """Name identifier of the aggregate limit being tracked""" + name: String + + """Entity (org) whose aggregate usage is being tracked""" entityId: UUID! - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + + """Current aggregate usage count for this entity and limit""" + num: BigInt + + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput } """The output of our create `BlueprintConstruction` mutation.""" @@ -30779,6 +33003,56 @@ input BlueprintConstructionInput { updatedAt: Datetime } +"""The output of our create `PlansModule` mutation.""" +type CreatePlansModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlansModule` that was created by this mutation.""" + plansModule: PlansModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PlansModule`. May be used by Relay 1.""" + plansModuleEdge( + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlansModuleEdge +} + +"""All input for the create `PlansModule` mutation.""" +input CreatePlansModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `PlansModule` to be created by this mutation.""" + plansModule: PlansModuleInput! +} + +"""An input for mutations affecting `PlansModule`""" +input PlansModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + plansTableId: UUID + plansTableName: String + planLimitsTableId: UUID + planLimitsTableName: String + applyPlanFunction: String + applyPlanAggregateFunction: String + prefix: String +} + """The output of our create `RlsModule` mutation.""" type CreateRlsModulePayload { """ @@ -30865,138 +33139,73 @@ input CreateSessionsModuleInput { } """An input for mutations affecting `SessionsModule`""" -input SessionsModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - sessionsTableId: UUID - sessionCredentialsTableId: UUID - authSettingsTableId: UUID - usersTableId: UUID - sessionsDefaultExpiration: IntervalInput - sessionsTable: String - sessionCredentialsTable: String - authSettingsTable: String -} - -"""The output of our create `AppLevelRequirement` mutation.""" -type CreateAppLevelRequirementPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLevelRequirement` that was created by this mutation.""" - appLevelRequirement: AppLevelRequirement - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge -} - -"""All input for the create `AppLevelRequirement` mutation.""" -input CreateAppLevelRequirementInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `AppLevelRequirement` to be created by this mutation.""" - appLevelRequirement: AppLevelRequirementInput! -} - -"""An input for mutations affecting `AppLevelRequirement`""" -input AppLevelRequirementInput { - id: UUID - - """Name identifier of the requirement (matches step names)""" - name: String! - - """Name of the level this requirement belongs to""" - level: String! - - """Human-readable description of what this requirement entails""" - description: String - - """Number of steps needed to satisfy this requirement""" - requiredCount: Int - - """Display ordering priority; lower values appear first""" - priority: Int - createdAt: Datetime - updatedAt: Datetime +input SessionsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + sessionsTableId: UUID + sessionCredentialsTableId: UUID + authSettingsTableId: UUID + usersTableId: UUID + sessionsDefaultExpiration: IntervalInput + sessionsTable: String + sessionCredentialsTable: String + authSettingsTable: String } -"""The output of our create `AuditLog` mutation.""" -type CreateAuditLogPayload { +"""The output of our create `OrgGrant` mutation.""" +type CreateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AuditLog` that was created by this mutation.""" - auditLog: AuditLog + """The `OrgGrant` that was created by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the create `AuditLog` mutation.""" -input CreateAuditLogInput { +"""All input for the create `OrgGrant` mutation.""" +input CreateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AuditLog` to be created by this mutation.""" - auditLog: AuditLogInput! + """The `OrgGrant` to be created by this mutation.""" + orgGrant: OrgGrantInput! } -"""An input for mutations affecting `AuditLog`""" -input AuditLogInput { +"""An input for mutations affecting `OrgGrant`""" +input OrgGrantInput { id: UUID - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String! - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Whether the authentication attempt succeeded""" - success: Boolean! + """The member receiving or losing the permission grant""" + actorId: UUID! - """Timestamp when the audit event was recorded""" + """The entity (org or group) this permission grant applies to""" + entityId: UUID! + grantorId: UUID createdAt: Datetime + updatedAt: Datetime } """The output of our create `AppLevel` mutation.""" @@ -31053,6 +33262,74 @@ input AppLevelInput { updatedAt: Datetime } +"""The output of our create `OrgLimit` mutation.""" +type CreateOrgLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimit` that was created by this mutation.""" + orgLimit: OrgLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge +} + +"""All input for the create `OrgLimit` mutation.""" +input CreateOrgLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgLimit` to be created by this mutation.""" + orgLimit: OrgLimitInput! +} + +"""An input for mutations affecting `OrgLimit`""" +input OrgLimitInput { + id: UUID + + """Name identifier of the limit being tracked""" + name: String + + """User whose usage is being tracked against this limit""" + actorId: UUID! + + """Current usage count for this actor and limit""" + num: BigInt + + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt + + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + entityId: UUID! +} + """The output of our create `Blueprint` mutation.""" type CreateBlueprintPayload { """ @@ -31188,61 +33465,6 @@ input DenormalizedTableFieldInput { funcOrder: Int } -"""The output of our create `Email` mutation.""" -type CreateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was created by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the create `Email` mutation.""" -input CreateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `Email` to be created by this mutation.""" - email: EmailInput! -} - -"""An input for mutations affecting `Email`""" -input EmailInput { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail! - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our create `OrgMemberProfile` mutation.""" type CreateOrgMemberProfilePayload { """ @@ -31357,223 +33579,110 @@ input SqlActionInput { actorId: UUID } -"""The output of our create `SecureTableProvision` mutation.""" -type CreateSecureTableProvisionPayload { +"""The output of our create `DatabaseTransfer` mutation.""" +type CreateDatabaseTransferPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was created by this mutation.""" - secureTableProvision: SecureTableProvision + """The `DatabaseTransfer` that was created by this mutation.""" + databaseTransfer: DatabaseTransfer """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge } -"""All input for the create `SecureTableProvision` mutation.""" -input CreateSecureTableProvisionInput { +"""All input for the create `DatabaseTransfer` mutation.""" +input CreateDatabaseTransferInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SecureTableProvision` to be created by this mutation.""" - secureTableProvision: SecureTableProvisionInput! + """The `DatabaseTransfer` to be created by this mutation.""" + databaseTransfer: DatabaseTransferInput! } -"""An input for mutations affecting `SecureTableProvision`""" -input SecureTableProvisionInput { - """Unique identifier for this provision row.""" +"""An input for mutations affecting `DatabaseTransfer`""" +input DatabaseTransferInput { id: UUID - - """The database this provision belongs to. Required.""" databaseId: UUID! - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ - schemaId: UUID - - """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID - - """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. - """ - tableName: String - - """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). - """ - nodes: JSON - - """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. - """ - useRls: Boolean - - """ - PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). - """ - fields: [JSON] - - """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. - """ - grants: JSON - - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON - - """ - Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. - """ - outFields: [UUID] -} - -"""The output of our create `OrgMembershipSetting` mutation.""" -type CreateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was created by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the create `OrgMembershipSetting` mutation.""" -input CreateOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `OrgMembershipSetting` to be created by this mutation.""" - orgMembershipSetting: OrgMembershipSettingInput! -} - -"""An input for mutations affecting `OrgMembershipSetting`""" -input OrgMembershipSettingInput { - id: UUID + targetOwnerId: UUID! + sourceApproved: Boolean + targetApproved: Boolean + sourceApprovedAt: Datetime + targetApprovedAt: Datetime + status: String + initiatedBy: UUID! + notes: String + expiresAt: Datetime createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" - entityId: UUID! - - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins - """ - createChildCascadeAdmins: Boolean - - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean - - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean - - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean + completedAt: Datetime } -"""The output of our create `DatabaseTransfer` mutation.""" -type CreateDatabaseTransferPayload { +"""The output of our create `BillingModule` mutation.""" +type CreateBillingModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DatabaseTransfer` that was created by this mutation.""" - databaseTransfer: DatabaseTransfer + """The `BillingModule` that was created by this mutation.""" + billingModule: BillingModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" - databaseTransferEdge( - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseTransferEdge + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge } -"""All input for the create `DatabaseTransfer` mutation.""" -input CreateDatabaseTransferInput { +"""All input for the create `BillingModule` mutation.""" +input CreateBillingModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `DatabaseTransfer` to be created by this mutation.""" - databaseTransfer: DatabaseTransferInput! + """The `BillingModule` to be created by this mutation.""" + billingModule: BillingModuleInput! } -"""An input for mutations affecting `DatabaseTransfer`""" -input DatabaseTransferInput { +"""An input for mutations affecting `BillingModule`""" +input BillingModuleInput { id: UUID databaseId: UUID! - targetOwnerId: UUID! - sourceApproved: Boolean - targetApproved: Boolean - sourceApprovedAt: Datetime - targetApprovedAt: Datetime - status: String - initiatedBy: UUID! - notes: String - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime - completedAt: Datetime + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + recordUsageFunction: String + prefix: String } """The output of our create `CryptoAuthModule` mutation.""" @@ -31739,22 +33848,157 @@ input CreateInvitesModuleInput { invitesModule: InvitesModuleInput! } -"""An input for mutations affecting `InvitesModule`""" -input InvitesModuleInput { - id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - emailsTableId: UUID - usersTableId: UUID - invitesTableId: UUID - claimedInvitesTableId: UUID - invitesTableName: String - claimedInvitesTableName: String - submitInviteCodeFunction: String - prefix: String - membershipType: Int! - entityTableId: UUID +"""An input for mutations affecting `InvitesModule`""" +input InvitesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + emailsTableId: UUID + usersTableId: UUID + invitesTableId: UUID + claimedInvitesTableId: UUID + invitesTableName: String + claimedInvitesTableName: String + submitInviteCodeFunction: String + prefix: String + membershipType: Int! + entityTableId: UUID +} + +"""The output of our create `SecureTableProvision` mutation.""" +type CreateSecureTableProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SecureTableProvision` that was created by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the create `SecureTableProvision` mutation.""" +input CreateSecureTableProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `SecureTableProvision` to be created by this mutation.""" + secureTableProvision: SecureTableProvisionInput! +} + +"""An input for mutations affecting `SecureTableProvision`""" +input SecureTableProvisionInput { + """Unique identifier for this provision row.""" + id: UUID + + """The database this provision belongs to. Required.""" + databaseId: UUID! + + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID + + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID + + """ + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + """ + tableName: String + + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON + + """ + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + """ + useRls: Boolean + + """ + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + """ + fields: [JSON] + + """ + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + """ + grants: JSON + + """ + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + """ + policies: JSON + + """ + Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. + """ + outFields: [UUID] +} + +"""The output of our create `AstMigration` mutation.""" +type CreateAstMigrationPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AstMigration` that was created by this mutation.""" + astMigration: AstMigration + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query +} + +"""All input for the create `AstMigration` mutation.""" +input CreateAstMigrationInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `AstMigration` to be created by this mutation.""" + astMigration: AstMigrationInput! +} + +"""An input for mutations affecting `AstMigration`""" +input AstMigrationInput { + id: Int + databaseId: UUID + name: String + requires: [String] + payload: JSON + deploys: String + deploy: JSON + revert: JSON + verify: JSON + createdAt: Datetime + action: String + actionId: UUID + actorId: UUID } """The output of our create `Enum` mutation.""" @@ -31964,502 +34208,297 @@ input WebauthnAuthModuleInput { challengeExpiry: IntervalInput } -"""The output of our create `App` mutation.""" -type CreateAppPayload { +"""The output of our create `AppInvite` mutation.""" +type CreateAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `App` that was created by this mutation.""" - app: App + """The `AppInvite` that was created by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the create `App` mutation.""" -input CreateAppInput { +"""All input for the create `AppInvite` mutation.""" +input CreateAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `App` to be created by this mutation.""" - app: AppInput! + """The `AppInvite` to be created by this mutation.""" + appInvite: AppInviteInput! } -"""An input for mutations affecting `App`""" -input AppInput { - """Unique identifier for this app""" +"""An input for mutations affecting `AppInvite`""" +input AppInviteInput { id: UUID - """Reference to the metaschema database this app belongs to""" - databaseId: UUID! + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail - """Site this app is associated with (one app per site)""" - siteId: UUID! + """User ID of the member who sent this invitation""" + senderId: UUID - """Display name of the app""" - name: String + """Unique random hex token used to redeem this invitation""" + inviteToken: String - """App icon or promotional image""" - appImage: ConstructiveInternalTypeImage + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """URL to the Apple App Store listing""" - appStoreLink: ConstructiveInternalTypeUrl + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """Apple App Store application identifier""" - appStoreId: String + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON """ - Apple App ID prefix (Team ID) for universal links and associated domains + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - appIdPrefix: String + profileId: UUID - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `Site` mutation.""" -type CreateSitePayload { +"""The output of our create `OrgMembershipSetting` mutation.""" +type CreateOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Site` that was created by this mutation.""" - site: Site + """The `OrgMembershipSetting` that was created by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the create `Site` mutation.""" -input CreateSiteInput { +"""All input for the create `OrgMembershipSetting` mutation.""" +input CreateOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Site` to be created by this mutation.""" - site: SiteInput! + """The `OrgMembershipSetting` to be created by this mutation.""" + orgMembershipSetting: OrgMembershipSettingInput! } -"""An input for mutations affecting `Site`""" -input SiteInput { - """Unique identifier for this site""" +"""An input for mutations affecting `OrgMembershipSetting`""" +input OrgMembershipSettingInput { id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID - """Reference to the metaschema database this site belongs to""" - databaseId: UUID! - - """Display title for the site (max 120 characters)""" - title: String - - """Short description of the site (max 120 characters)""" - description: String - - """Open Graph image used for social media link previews""" - ogImage: ConstructiveInternalTypeImage - - """Browser favicon attachment""" - favicon: ConstructiveInternalTypeAttachment - - """Apple touch icon for iOS home screen bookmarks""" - appleTouchIcon: ConstructiveInternalTypeImage - - """Primary logo image for the site""" - logo: ConstructiveInternalTypeImage - - """PostgreSQL database name this site connects to""" - dbname: String -} - -"""The output of our create `AstMigration` mutation.""" -type CreateAstMigrationPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AstMigration` that was created by this mutation.""" - astMigration: AstMigration + """References the entity these settings apply to""" + entityId: UUID! """ - Our root query field type. Allows us to run any query from our mutation payload. + When a member is deleted, whether to cascade-remove their descendant-entity memberships """ - query: Query -} + deleteMemberCascadeChildren: Boolean -"""All input for the create `AstMigration` mutation.""" -input CreateAstMigrationInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners """ - clientMutationId: String - - """The `AstMigration` to be created by this mutation.""" - astMigration: AstMigrationInput! -} - -"""An input for mutations affecting `AstMigration`""" -input AstMigrationInput { - id: Int - databaseId: UUID - name: String - requires: [String] - payload: JSON - deploys: String - deploy: JSON - revert: JSON - verify: JSON - createdAt: Datetime - action: String - actionId: UUID - actorId: UUID -} + createChildCascadeOwners: Boolean -"""The output of our create `PrimaryKeyConstraint` mutation.""" -type CreatePrimaryKeyConstraintPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins """ - clientMutationId: String - - """The `PrimaryKeyConstraint` that was created by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraint + createChildCascadeAdmins: Boolean """ - Our root query field type. Allows us to run any query from our mutation payload. + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members """ - query: Query - - """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" - primaryKeyConstraintEdge( - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintEdge -} + createChildCascadeMembers: Boolean -"""All input for the create `PrimaryKeyConstraint` mutation.""" -input CreatePrimaryKeyConstraintInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) """ - clientMutationId: String - - """The `PrimaryKeyConstraint` to be created by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraintInput! -} - -"""An input for mutations affecting `PrimaryKeyConstraint`""" -input PrimaryKeyConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} + allowExternalMembers: Boolean -"""The output of our create `Trigger` mutation.""" -type CreateTriggerPayload { """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) """ - clientMutationId: String - - """The `Trigger` that was created by this mutation.""" - trigger: Trigger + inviteProfileAssignmentMode: String """ - Our root query field type. Allows us to run any query from our mutation payload. + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. """ - query: Query - - """An edge for our `Trigger`. May be used by Relay 1.""" - triggerEdge( - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerEdge -} + populateMemberEmail: Boolean -"""All input for the create `Trigger` mutation.""" -input CreateTriggerInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) """ - clientMutationId: String - - """The `Trigger` to be created by this mutation.""" - trigger: TriggerInput! -} - -"""An input for mutations affecting `Trigger`""" -input TriggerInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String! - event: String - functionName: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime + limitAllocationMode: String } -"""The output of our create `CheckConstraint` mutation.""" -type CreateCheckConstraintPayload { +"""The output of our create `App` mutation.""" +type CreateAppPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CheckConstraint` that was created by this mutation.""" - checkConstraint: CheckConstraint + """The `App` that was created by this mutation.""" + app: App """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CheckConstraint`. May be used by Relay 1.""" - checkConstraintEdge( - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): CheckConstraintEdge + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge } -"""All input for the create `CheckConstraint` mutation.""" -input CreateCheckConstraintInput { +"""All input for the create `App` mutation.""" +input CreateAppInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `CheckConstraint` to be created by this mutation.""" - checkConstraint: CheckConstraintInput! + """The `App` to be created by this mutation.""" + app: AppInput! } -"""An input for mutations affecting `CheckConstraint`""" -input CheckConstraintInput { +"""An input for mutations affecting `App`""" +input AppInput { + """Unique identifier for this app""" id: UUID - databaseId: UUID - tableId: UUID! - name: String - type: String - fieldIds: [UUID]! - expr: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} -"""The output of our create `UniqueConstraint` mutation.""" -type CreateUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Reference to the metaschema database this app belongs to""" + databaseId: UUID! - """The `UniqueConstraint` that was created by this mutation.""" - uniqueConstraint: UniqueConstraint + """Site this app is associated with (one app per site)""" + siteId: UUID! - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Display name of the app""" + name: String - """An edge for our `UniqueConstraint`. May be used by Relay 1.""" - uniqueConstraintEdge( - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): UniqueConstraintEdge -} + """App icon or promotional image""" + appImage: ConstructiveInternalTypeImage + + """URL to the Apple App Store listing""" + appStoreLink: ConstructiveInternalTypeUrl + + """Apple App Store application identifier""" + appStoreId: String -"""All input for the create `UniqueConstraint` mutation.""" -input CreateUniqueConstraintInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Apple App ID prefix (Team ID) for universal links and associated domains """ - clientMutationId: String - - """The `UniqueConstraint` to be created by this mutation.""" - uniqueConstraint: UniqueConstraintInput! -} + appIdPrefix: String -"""An input for mutations affecting `UniqueConstraint`""" -input UniqueConstraintInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime + """URL to the Google Play Store listing""" + playStoreLink: ConstructiveInternalTypeUrl } -"""The output of our create `SpatialRelation` mutation.""" -type CreateSpatialRelationPayload { +"""The output of our create `Site` mutation.""" +type CreateSitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SpatialRelation` that was created by this mutation.""" - spatialRelation: SpatialRelation + """The `Site` that was created by this mutation.""" + site: Site """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SpatialRelation`. May be used by Relay 1.""" - spatialRelationEdge( - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] - ): SpatialRelationEdge + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge } -"""All input for the create `SpatialRelation` mutation.""" -input CreateSpatialRelationInput { +"""All input for the create `Site` mutation.""" +input CreateSiteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `SpatialRelation` to be created by this mutation.""" - spatialRelation: SpatialRelationInput! + """The `Site` to be created by this mutation.""" + site: SiteInput! } -"""An input for mutations affecting `SpatialRelation`""" -input SpatialRelationInput { +"""An input for mutations affecting `Site`""" +input SiteInput { + """Unique identifier for this site""" id: UUID - databaseId: UUID - tableId: UUID! - fieldId: UUID! - refTableId: UUID! - refFieldId: UUID! - name: String! - operator: String! - paramName: String - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our create `Policy` mutation.""" -type CreatePolicyPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Policy` that was created by this mutation.""" - policy: Policy - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge -} + """Reference to the metaschema database this site belongs to""" + databaseId: UUID! -"""All input for the create `Policy` mutation.""" -input CreatePolicyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Display title for the site (max 120 characters)""" + title: String - """The `Policy` to be created by this mutation.""" - policy: PolicyInput! -} + """Short description of the site (max 120 characters)""" + description: String -"""An input for mutations affecting `Policy`""" -input PolicyInput { - id: UUID - databaseId: UUID - tableId: UUID! - name: String - granteeName: String - privilege: String - permissive: Boolean - disabled: Boolean - policyType: String - data: JSON - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - createdAt: Datetime - updatedAt: Datetime + """Open Graph image used for social media link previews""" + ogImage: ConstructiveInternalTypeImage + + """Browser favicon attachment""" + favicon: ConstructiveInternalTypeAttachment + + """Apple touch icon for iOS home screen bookmarks""" + appleTouchIcon: ConstructiveInternalTypeImage + + """Primary logo image for the site""" + logo: ConstructiveInternalTypeImage + + """PostgreSQL database name this site connects to""" + dbname: String } """The output of our create `NotificationsModule` mutation.""" @@ -32574,434 +34613,406 @@ input PermissionsModuleInput { getMaskByName: String } -"""The output of our create `AppInvite` mutation.""" -type CreateAppInvitePayload { +"""The output of our create `WebauthnCredential` mutation.""" +type CreateWebauthnCredentialPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was created by this mutation.""" - appInvite: AppInvite + """The `WebauthnCredential` that was created by this mutation.""" + webauthnCredential: WebauthnCredential """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `WebauthnCredential`. May be used by Relay 1.""" + webauthnCredentialEdge( + """The method to use when ordering `WebauthnCredential`.""" + orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnCredentialEdge } -"""All input for the create `AppInvite` mutation.""" -input CreateAppInviteInput { +"""All input for the create `WebauthnCredential` mutation.""" +input CreateWebauthnCredentialInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppInvite` to be created by this mutation.""" - appInvite: AppInviteInput! + """The `WebauthnCredential` to be created by this mutation.""" + webauthnCredential: WebauthnCredentialInput! } -"""An input for mutations affecting `AppInvite`""" -input AppInviteInput { +"""An input for mutations affecting `WebauthnCredential`""" +input WebauthnCredentialInput { id: UUID + ownerId: UUID - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail + """ + Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. + """ + credentialId: String! - """User ID of the member who sent this invitation""" - senderId: UUID + """COSE-encoded public key bytes from the authenticator attestation.""" + publicKey: Base64EncodedBinary! - """Unique random hex token used to redeem this invitation""" - inviteToken: String + """ + Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. + """ + signCount: BigInt - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean + """ + Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. + """ + webauthnUserId: String! - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int + """ + Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. + """ + transports: [String] - """Running count of how many times this invite has been claimed""" - inviteCount: Int + """ + Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. + """ + credentialDeviceType: String! - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean + """ + Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. + """ + backupEligible: Boolean - """Optional JSON payload of additional invite metadata""" - data: JSON + """Current backup state; updated on each successful sign-in assertion.""" + backupState: Boolean - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime + """ + User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. + """ + name: String + + """ + Timestamp of the most recent successful sign-in assertion using this credential. + """ + lastUsedAt: Datetime createdAt: Datetime updatedAt: Datetime } -"""The output of our create `EmbeddingChunk` mutation.""" -type CreateEmbeddingChunkPayload { +"""The output of our create `PrimaryKeyConstraint` mutation.""" +type CreatePrimaryKeyConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EmbeddingChunk` that was created by this mutation.""" - embeddingChunk: EmbeddingChunk + """The `PrimaryKeyConstraint` that was created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" - embeddingChunkEdge( - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmbeddingChunkEdge + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge } -"""All input for the create `EmbeddingChunk` mutation.""" -input CreateEmbeddingChunkInput { +"""All input for the create `PrimaryKeyConstraint` mutation.""" +input CreatePrimaryKeyConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `EmbeddingChunk` to be created by this mutation.""" - embeddingChunk: EmbeddingChunkInput! + """The `PrimaryKeyConstraint` to be created by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraintInput! } -"""An input for mutations affecting `EmbeddingChunk`""" -input EmbeddingChunkInput { +"""An input for mutations affecting `PrimaryKeyConstraint`""" +input PrimaryKeyConstraintInput { id: UUID databaseId: UUID tableId: UUID! - embeddingFieldId: UUID - chunksTableId: UUID - chunksTableName: String - contentFieldName: String - dimensions: Int - metric: String - chunkSize: Int - chunkOverlap: Int - chunkStrategy: String - metadataFields: JSON - enqueueChunkingJob: Boolean - chunkingTaskName: String - parentFkFieldId: UUID + name: String + type: String + fieldIds: [UUID]! + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] createdAt: Datetime updatedAt: Datetime } -"""The output of our create `Schema` mutation.""" -type CreateSchemaPayload { +"""The output of our create `Trigger` mutation.""" +type CreateTriggerPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Schema` that was created by this mutation.""" - schema: Schema + """The `Trigger` that was created by this mutation.""" + trigger: Trigger """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge } -"""All input for the create `Schema` mutation.""" -input CreateSchemaInput { +"""All input for the create `Trigger` mutation.""" +input CreateTriggerInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Schema` to be created by this mutation.""" - schema: SchemaInput! + """The `Trigger` to be created by this mutation.""" + trigger: TriggerInput! } -"""An input for mutations affecting `Schema`""" -input SchemaInput { +"""An input for mutations affecting `Trigger`""" +input TriggerInput { id: UUID - databaseId: UUID! + databaseId: UUID + tableId: UUID! name: String! - schemaName: String! - label: String - description: String + event: String + functionName: String smartTags: JSON category: ObjectCategory module: String scope: Int tags: [String] - isPublic: Boolean createdAt: Datetime updatedAt: Datetime } -"""The output of our create `LimitsModule` mutation.""" -type CreateLimitsModulePayload { +"""The output of our create `CheckConstraint` mutation.""" +type CreateCheckConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `LimitsModule` that was created by this mutation.""" - limitsModule: LimitsModule + """The `CheckConstraint` that was created by this mutation.""" + checkConstraint: CheckConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge } -"""All input for the create `LimitsModule` mutation.""" -input CreateLimitsModuleInput { +"""All input for the create `CheckConstraint` mutation.""" +input CreateCheckConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `LimitsModule` to be created by this mutation.""" - limitsModule: LimitsModuleInput! + """The `CheckConstraint` to be created by this mutation.""" + checkConstraint: CheckConstraintInput! } -"""An input for mutations affecting `LimitsModule`""" -input LimitsModuleInput { +"""An input for mutations affecting `CheckConstraint`""" +input CheckConstraintInput { id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - limitIncrementFunction: String - limitDecrementFunction: String - limitIncrementTrigger: String - limitDecrementTrigger: String - limitUpdateTrigger: String - limitCheckFunction: String - prefix: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID + databaseId: UUID + tableId: UUID! + name: String + type: String + fieldIds: [UUID]! + expr: JSON + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `ProfilesModule` mutation.""" -type CreateProfilesModulePayload { +"""The output of our create `UniqueConstraint` mutation.""" +type CreateUniqueConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ProfilesModule` that was created by this mutation.""" - profilesModule: ProfilesModule + """The `UniqueConstraint` that was created by this mutation.""" + uniqueConstraint: UniqueConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge } -"""All input for the create `ProfilesModule` mutation.""" -input CreateProfilesModuleInput { +"""All input for the create `UniqueConstraint` mutation.""" +input CreateUniqueConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ProfilesModule` to be created by this mutation.""" - profilesModule: ProfilesModuleInput! + """The `UniqueConstraint` to be created by this mutation.""" + uniqueConstraint: UniqueConstraintInput! } -"""An input for mutations affecting `ProfilesModule`""" -input ProfilesModuleInput { +"""An input for mutations affecting `UniqueConstraint`""" +input UniqueConstraintInput { id: UUID - databaseId: UUID! - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - membershipType: Int! - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - prefix: String + databaseId: UUID + tableId: UUID! + name: String + description: String + smartTags: JSON + type: String + fieldIds: [UUID]! + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime } -"""The output of our create `AppMembership` mutation.""" -type CreateAppMembershipPayload { +"""The output of our create `SpatialRelation` mutation.""" +type CreateSpatialRelationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was created by this mutation.""" - appMembership: AppMembership + """The `SpatialRelation` that was created by this mutation.""" + spatialRelation: SpatialRelation """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `SpatialRelation`. May be used by Relay 1.""" + spatialRelationEdge( + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] + ): SpatialRelationEdge } -"""All input for the create `AppMembership` mutation.""" -input CreateAppMembershipInput { +"""All input for the create `SpatialRelation` mutation.""" +input CreateSpatialRelationInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `AppMembership` to be created by this mutation.""" - appMembership: AppMembershipInput! + """The `SpatialRelation` to be created by this mutation.""" + spatialRelation: SpatialRelationInput! } -"""An input for mutations affecting `AppMembership`""" -input AppMembershipInput { +"""An input for mutations affecting `SpatialRelation`""" +input SpatialRelationInput { id: UUID + databaseId: UUID + tableId: UUID! + fieldId: UUID! + refTableId: UUID! + refFieldId: UUID! + name: String! + operator: String! + paramName: String + category: ObjectCategory + module: String + scope: Int + tags: [String] createdAt: Datetime updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """Whether this member has been verified (e.g. email confirmation)""" - isVerified: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID! - profileId: UUID } -"""The output of our create `Index` mutation.""" -type CreateIndexPayload { +"""The output of our create `Policy` mutation.""" +type CreatePolicyPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Index` that was created by this mutation.""" - index: Index + """The `Policy` that was created by this mutation.""" + policy: Policy """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge } -"""All input for the create `Index` mutation.""" -input CreateIndexInput { +"""All input for the create `Policy` mutation.""" +input CreatePolicyInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Index` to be created by this mutation.""" - index: IndexInput! + """The `Policy` to be created by this mutation.""" + policy: PolicyInput! } -"""An input for mutations affecting `Index`""" -input IndexInput { +"""An input for mutations affecting `Policy`""" +input PolicyInput { id: UUID - databaseId: UUID! + databaseId: UUID tableId: UUID! name: String - fieldIds: [UUID] - includeFieldIds: [UUID] - accessMethod: String - indexParams: JSON - whereClause: JSON - isUnique: Boolean - options: JSON - opClasses: [String] + granteeName: String + privilege: String + permissive: Boolean + disabled: Boolean + policyType: String + data: JSON smartTags: JSON category: ObjectCategory module: String @@ -33011,91 +35022,59 @@ input IndexInput { updatedAt: Datetime } -"""The output of our create `WebauthnCredential` mutation.""" -type CreateWebauthnCredentialPayload { +"""The output of our create `EmbeddingChunk` mutation.""" +type CreateEmbeddingChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnCredential` that was created by this mutation.""" - webauthnCredential: WebauthnCredential - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge -} - -"""All input for the create `WebauthnCredential` mutation.""" -input CreateWebauthnCredentialInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The `WebauthnCredential` to be created by this mutation.""" - webauthnCredential: WebauthnCredentialInput! -} - -"""An input for mutations affecting `WebauthnCredential`""" -input WebauthnCredentialInput { - id: UUID - ownerId: UUID - - """ - Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. - """ - credentialId: String! - - """COSE-encoded public key bytes from the authenticator attestation.""" - publicKey: Base64EncodedBinary! - - """ - Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. - """ - signCount: BigInt - - """ - Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. - """ - webauthnUserId: String! - - """ - Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. - """ - transports: [String] - - """ - Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. - """ - credentialDeviceType: String! - - """ - Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. - """ - backupEligible: Boolean - - """Current backup state; updated on each successful sign-in assertion.""" - backupState: Boolean - + """The `EmbeddingChunk` that was created by this mutation.""" + embeddingChunk: EmbeddingChunk + """ - User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. + Our root query field type. Allows us to run any query from our mutation payload. """ - name: String + query: Query + + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge +} +"""All input for the create `EmbeddingChunk` mutation.""" +input CreateEmbeddingChunkInput { """ - Timestamp of the most recent successful sign-in assertion using this credential. + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - lastUsedAt: Datetime + clientMutationId: String + + """The `EmbeddingChunk` to be created by this mutation.""" + embeddingChunk: EmbeddingChunkInput! +} + +"""An input for mutations affecting `EmbeddingChunk`""" +input EmbeddingChunkInput { + id: UUID + databaseId: UUID + tableId: UUID! + embeddingFieldId: UUID + chunksTableId: UUID + chunksTableName: String + contentFieldName: String + dimensions: Int + metric: String + chunkSize: Int + chunkOverlap: Int + chunkStrategy: String + metadataFields: JSON + enqueueChunkingJob: Boolean + chunkingTaskName: String + parentFkFieldId: UUID createdAt: Datetime updatedAt: Datetime } @@ -33166,6 +35145,11 @@ input OrgInviteInput { """Optional JSON payload of additional invite metadata""" data: JSON + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + """Timestamp after which this invitation can no longer be redeemed""" expiresAt: Datetime createdAt: Datetime @@ -33173,43 +35157,43 @@ input OrgInviteInput { entityId: UUID! } -"""The output of our create `OrgMembership` mutation.""" -type CreateOrgMembershipPayload { +"""The output of our create `AppMembership` mutation.""" +type CreateAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was created by this mutation.""" - orgMembership: OrgMembership + """The `AppMembership` that was created by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the create `OrgMembership` mutation.""" -input CreateOrgMembershipInput { +"""All input for the create `AppMembership` mutation.""" +input CreateAppMembershipInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `OrgMembership` to be created by this mutation.""" - orgMembership: OrgMembershipInput! + """The `AppMembership` to be created by this mutation.""" + appMembership: AppMembershipInput! } -"""An input for mutations affecting `OrgMembership`""" -input OrgMembershipInput { +"""An input for mutations affecting `AppMembership`""" +input AppMembershipInput { id: UUID createdAt: Datetime updatedAt: Datetime @@ -33225,16 +35209,14 @@ input OrgMembershipInput { """Whether this membership is temporarily disabled""" isDisabled: Boolean + """Whether this member has been verified (e.g. email confirmation)""" + isVerified: Boolean + """ Computed field indicating the membership is approved, verified, not banned, and not disabled """ isActive: Boolean - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -33253,13 +35235,176 @@ input OrgMembershipInput { """References the user who holds this membership""" actorId: UUID! + profileId: UUID +} - """References the entity (org or group) this membership belongs to""" - entityId: UUID! +"""The output of our create `Schema` mutation.""" +type CreateSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID + """The `Schema` that was created by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the create `Schema` mutation.""" +input CreateSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Schema` to be created by this mutation.""" + schema: SchemaInput! +} + +"""An input for mutations affecting `Schema`""" +input SchemaInput { + id: UUID + databaseId: UUID! + name: String! + schemaName: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + isPublic: Boolean + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `Index` mutation.""" +type CreateIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Index` that was created by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the create `Index` mutation.""" +input CreateIndexInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Index` to be created by this mutation.""" + index: IndexInput! +} + +"""An input for mutations affecting `Index`""" +input IndexInput { + id: UUID + databaseId: UUID! + tableId: UUID! + name: String + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + options: JSON + opClasses: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our create `LimitsModule` mutation.""" +type CreateLimitsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `LimitsModule` that was created by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the create `LimitsModule` mutation.""" +input CreateLimitsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `LimitsModule` to be created by this mutation.""" + limitsModule: LimitsModuleInput! +} + +"""An input for mutations affecting `LimitsModule`""" +input LimitsModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + limitIncrementFunction: String + limitDecrementFunction: String + limitIncrementTrigger: String + limitDecrementTrigger: String + limitUpdateTrigger: String + limitCheckFunction: String + aggregateTableId: UUID + prefix: String + membershipType: Int! + entityTableId: UUID + actorTableId: UUID } """The output of our create `BlueprintTemplate` mutation.""" @@ -33445,117 +35590,207 @@ input HierarchyModuleInput { createdAt: Datetime } -"""The output of our create `ForeignKeyConstraint` mutation.""" -type CreateForeignKeyConstraintPayload { +"""The output of our create `ProfilesModule` mutation.""" +type CreateProfilesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ForeignKeyConstraint` that was created by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint + """The `ProfilesModule` that was created by this mutation.""" + profilesModule: ProfilesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge } -"""All input for the create `ForeignKeyConstraint` mutation.""" -input CreateForeignKeyConstraintInput { +"""All input for the create `ProfilesModule` mutation.""" +input CreateProfilesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `ForeignKeyConstraint` to be created by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraintInput! + """The `ProfilesModule` to be created by this mutation.""" + profilesModule: ProfilesModuleInput! } -"""An input for mutations affecting `ForeignKeyConstraint`""" -input ForeignKeyConstraintInput { +"""An input for mutations affecting `ProfilesModule`""" +input ProfilesModuleInput { + id: UUID + databaseId: UUID! + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + profileTemplatesTableId: UUID + profileTemplatesTableName: String + membershipType: Int! + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + prefix: String +} + +"""The output of our create `OrgMembership` mutation.""" +type CreateOrgMembershipPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembership` that was created by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the create `OrgMembership` mutation.""" +input CreateOrgMembershipInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `OrgMembership` to be created by this mutation.""" + orgMembership: OrgMembershipInput! +} + +"""An input for mutations affecting `OrgMembership`""" +input OrgMembershipInput { id: UUID - databaseId: UUID - tableId: UUID! - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID]! - refTableId: UUID! - refFieldIds: [UUID]! - deleteAction: String - updateAction: String - category: ObjectCategory - module: String - scope: Int - tags: [String] createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean + + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean + + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString + + """ + Bitmask of permissions directly granted to this member (not from profiles) + """ + granted: BitString + + """References the user who holds this membership""" + actorId: UUID! + + """References the entity (org or group) this membership belongs to""" + entityId: UUID! + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our create `Table` mutation.""" -type CreateTablePayload { +"""The output of our create `ForeignKeyConstraint` mutation.""" +type CreateForeignKeyConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Table` that was created by this mutation.""" - table: Table + """The `ForeignKeyConstraint` that was created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge } -"""All input for the create `Table` mutation.""" -input CreateTableInput { +"""All input for the create `ForeignKeyConstraint` mutation.""" +input CreateForeignKeyConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """The `Table` to be created by this mutation.""" - table: TableInput! + """The `ForeignKeyConstraint` to be created by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraintInput! } -"""An input for mutations affecting `Table`""" -input TableInput { +"""An input for mutations affecting `ForeignKeyConstraint`""" +input ForeignKeyConstraintInput { id: UUID databaseId: UUID - schemaId: UUID! - name: String! - label: String + tableId: UUID! + name: String description: String smartTags: JSON + type: String + fieldIds: [UUID]! + refTableId: UUID! + refFieldIds: [UUID]! + deleteAction: String + updateAction: String category: ObjectCategory module: String scope: Int - useRls: Boolean - timestamps: Boolean - peoplestamps: Boolean - pluralName: String - singularName: String tags: [String] - inheritsId: UUID createdAt: Datetime updatedAt: Datetime } @@ -33603,10 +35838,8 @@ input StorageModuleInput { privateSchemaId: UUID bucketsTableId: UUID filesTableId: UUID - uploadRequestsTableId: UUID bucketsTableName: String filesTableName: String - uploadRequestsTableName: String membershipType: Int policies: JSON skipDefaultPolicyTables: [String] @@ -33615,6 +35848,7 @@ input StorageModuleInput { publicUrlPrefix: String provider: String allowedOrigins: [String] + restrictReads: Boolean uploadUrlExpirySeconds: Int downloadUrlExpirySeconds: Int defaultMaxFileSize: BigInt @@ -33622,6 +35856,64 @@ input StorageModuleInput { cacheTtlSeconds: Int } +"""The output of our create `Table` mutation.""" +type CreateTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was created by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the create `Table` mutation.""" +input CreateTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """The `Table` to be created by this mutation.""" + table: TableInput! +} + +"""An input for mutations affecting `Table`""" +input TableInput { + id: UUID + databaseId: UUID + schemaId: UUID! + name: String! + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our create `EntityTypeProvision` mutation.""" type CreateEntityTypeProvisionPayload { """ @@ -33734,7 +36026,7 @@ input EntityTypeProvisionInput { """ Whether to provision storage_module for this type. Defaults to false. - When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + When true, creates {prefix}_buckets and {prefix}_files tables with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. Storage tables get owner_id FK to the entity table, so files are owned by the entity. """ @@ -33769,7 +36061,7 @@ input EntityTypeProvisionInput { - allowed_origins (text[]) per-bucket CORS override - provisions (jsonb object) optional: customize storage tables with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets", "upload_requests". + Keyed by table role: "files", "buckets". Each value uses the same shape as table_provision: { nodes, fields, grants, use_rls, policies }. Fanned out to secure_table_provision targeting the corresponding table. @@ -34396,6 +36688,52 @@ input DefaultIdsModulePatch { databaseId: UUID } +"""The output of our update `RoleType` mutation.""" +type UpdateRoleTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RoleType` that was updated by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `updateRoleType` mutation.""" +input UpdateRoleTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: Int! + + """ + An object where the defined keys will be set on the `RoleType` being updated. + """ + roleTypePatch: RoleTypePatch! +} + +""" +Represents an update to a `RoleType`. Fields that are set will be updated. +""" +input RoleTypePatch { + id: Int + name: String +} + """The output of our update `ViewTable` mutation.""" type UpdateViewTablePayload { """ @@ -34501,65 +36839,6 @@ input ApiSchemaPatch { apiId: UUID } -"""The output of our update `SiteTheme` mutation.""" -type UpdateSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was updated by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `updateSiteTheme` mutation.""" -input UpdateSiteThemeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this theme record""" - id: UUID! - - """ - An object where the defined keys will be set on the `SiteTheme` being updated. - """ - siteThemePatch: SiteThemePatch! -} - -""" -Represents an update to a `SiteTheme`. Fields that are set will be updated. -""" -input SiteThemePatch { - """Unique identifier for this theme record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """Site this theme belongs to""" - siteId: UUID - - """ - JSONB object containing theme tokens (colors, typography, spacing, etc.) - """ - theme: JSON -} - """The output of our update `OrgMember` mutation.""" type UpdateOrgMemberPayload { """ @@ -34614,52 +36893,63 @@ input OrgMemberPatch { entityId: UUID } -"""The output of our update `AppPermissionDefault` mutation.""" -type UpdateAppPermissionDefaultPayload { +"""The output of our update `SiteTheme` mutation.""" +type UpdateSiteThemePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was updated by this mutation.""" - appPermissionDefault: AppPermissionDefault + """The `SiteTheme` that was updated by this mutation.""" + siteTheme: SiteTheme """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge } -"""All input for the `updateAppPermissionDefault` mutation.""" -input UpdateAppPermissionDefaultInput { +"""All input for the `updateSiteTheme` mutation.""" +input UpdateSiteThemeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this theme record""" id: UUID! """ - An object where the defined keys will be set on the `AppPermissionDefault` being updated. + An object where the defined keys will be set on the `SiteTheme` being updated. """ - appPermissionDefaultPatch: AppPermissionDefaultPatch! + siteThemePatch: SiteThemePatch! } """ -Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. +Represents an update to a `SiteTheme`. Fields that are set will be updated. """ -input AppPermissionDefaultPatch { +input SiteThemePatch { + """Unique identifier for this theme record""" id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """Reference to the metaschema database""" + databaseId: UUID + + """Site this theme belongs to""" + siteId: UUID + + """ + JSONB object containing theme tokens (colors, typography, spacing, etc.) + """ + theme: JSON } """The output of our update `Ref` mutation.""" @@ -34716,181 +37006,61 @@ input RefPatch { } """The output of our update `Store` mutation.""" -type UpdateStorePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Store` that was updated by this mutation.""" - store: Store - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Store`. May be used by Relay 1.""" - storeEdge( - """The method to use when ordering `Store`.""" - orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] - ): StoreEdge -} - -"""All input for the `updateStore` mutation.""" -input UpdateStoreInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """The primary unique identifier for the store.""" - id: UUID! - - """ - An object where the defined keys will be set on the `Store` being updated. - """ - storePatch: StorePatch! -} - -""" -Represents an update to a `Store`. Fields that are set will be updated. -""" -input StorePatch { - """The primary unique identifier for the store.""" - id: UUID - - """The name of the store (e.g., metaschema, migrations).""" - name: String - - """The database this store belongs to.""" - databaseId: UUID - - """The current head tree_id for this store.""" - hash: UUID - createdAt: Datetime -} - -"""The output of our update `ApiModule` mutation.""" -type UpdateApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was updated by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the `updateApiModule` mutation.""" -input UpdateApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API module record""" - id: UUID! - - """ - An object where the defined keys will be set on the `ApiModule` being updated. - """ - apiModulePatch: ApiModulePatch! -} - -""" -Represents an update to a `ApiModule`. Fields that are set will be updated. -""" -input ApiModulePatch { - """Unique identifier for this API module record""" - id: UUID - - """Reference to the metaschema database""" - databaseId: UUID - - """API this module configuration belongs to""" - apiId: UUID - - """Module name (e.g. auth, uploads, webhooks)""" - name: String - - """JSON configuration data for this module""" - data: JSON -} - -"""The output of our update `SiteModule` mutation.""" -type UpdateSiteModulePayload { +type UpdateStorePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteModule` that was updated by this mutation.""" - siteModule: SiteModule + """The `Store` that was updated by this mutation.""" + store: Store """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge + """An edge for our `Store`. May be used by Relay 1.""" + storeEdge( + """The method to use when ordering `Store`.""" + orderBy: [StoreOrderBy!]! = [PRIMARY_KEY_ASC] + ): StoreEdge } -"""All input for the `updateSiteModule` mutation.""" -input UpdateSiteModuleInput { +"""All input for the `updateStore` mutation.""" +input UpdateStoreInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - """Unique identifier for this site module record""" + """The primary unique identifier for the store.""" id: UUID! """ - An object where the defined keys will be set on the `SiteModule` being updated. + An object where the defined keys will be set on the `Store` being updated. """ - siteModulePatch: SiteModulePatch! + storePatch: StorePatch! } """ -Represents an update to a `SiteModule`. Fields that are set will be updated. +Represents an update to a `Store`. Fields that are set will be updated. """ -input SiteModulePatch { - """Unique identifier for this site module record""" +input StorePatch { + """The primary unique identifier for the store.""" id: UUID - """Reference to the metaschema database""" - databaseId: UUID - - """Site this module configuration belongs to""" - siteId: UUID - - """Module name (e.g. user_auth_module, analytics)""" + """The name of the store (e.g., metaschema, migrations).""" name: String - """JSON configuration data for this module""" - data: JSON + """The database this store belongs to.""" + databaseId: UUID + + """The current head tree_id for this store.""" + hash: UUID + createdAt: Datetime } """The output of our update `EncryptedSecretsModule` mutation.""" @@ -35040,101 +37210,172 @@ input SecretsModulePatch { tableName: String } -"""The output of our update `RoleType` mutation.""" -type UpdateRoleTypePayload { +"""The output of our update `AppPermissionDefault` mutation.""" +type UpdateAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RoleType` that was updated by this mutation.""" - roleType: RoleType + """The `AppPermissionDefault` that was updated by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the `updateRoleType` mutation.""" -input UpdateRoleTypeInput { +"""All input for the `updateAppPermissionDefault` mutation.""" +input UpdateAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: Int! + id: UUID! """ - An object where the defined keys will be set on the `RoleType` being updated. + An object where the defined keys will be set on the `AppPermissionDefault` being updated. """ - roleTypePatch: RoleTypePatch! + appPermissionDefaultPatch: AppPermissionDefaultPatch! } """ -Represents an update to a `RoleType`. Fields that are set will be updated. +Represents an update to a `AppPermissionDefault`. Fields that are set will be updated. """ -input RoleTypePatch { - id: Int +input AppPermissionDefaultPatch { + id: UUID + + """Default permission bitmask applied to new members""" + permissions: BitString +} + +"""The output of our update `ApiModule` mutation.""" +type UpdateApiModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ApiModule` that was updated by this mutation.""" + apiModule: ApiModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge +} + +"""All input for the `updateApiModule` mutation.""" +input UpdateApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API module record""" + id: UUID! + + """ + An object where the defined keys will be set on the `ApiModule` being updated. + """ + apiModulePatch: ApiModulePatch! +} + +""" +Represents an update to a `ApiModule`. Fields that are set will be updated. +""" +input ApiModulePatch { + """Unique identifier for this API module record""" + id: UUID + + """Reference to the metaschema database""" + databaseId: UUID + + """API this module configuration belongs to""" + apiId: UUID + + """Module name (e.g. auth, uploads, webhooks)""" name: String + + """JSON configuration data for this module""" + data: JSON } -"""The output of our update `OrgPermissionDefault` mutation.""" -type UpdateOrgPermissionDefaultPayload { +"""The output of our update `SiteModule` mutation.""" +type UpdateSiteModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was updated by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `SiteModule` that was updated by this mutation.""" + siteModule: SiteModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge } -"""All input for the `updateOrgPermissionDefault` mutation.""" -input UpdateOrgPermissionDefaultInput { +"""All input for the `updateSiteModule` mutation.""" +input UpdateSiteModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this site module record""" id: UUID! """ - An object where the defined keys will be set on the `OrgPermissionDefault` being updated. + An object where the defined keys will be set on the `SiteModule` being updated. """ - orgPermissionDefaultPatch: OrgPermissionDefaultPatch! + siteModulePatch: SiteModulePatch! } """ -Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. +Represents an update to a `SiteModule`. Fields that are set will be updated. """ -input OrgPermissionDefaultPatch { +input SiteModulePatch { + """Unique identifier for this site module record""" id: UUID - """Default permission bitmask applied to new members""" - permissions: BitString + """Reference to the metaschema database""" + databaseId: UUID - """References the entity these default permissions apply to""" - entityId: UUID + """Site this module configuration belongs to""" + siteId: UUID + + """Module name (e.g. user_auth_module, analytics)""" + name: String + + """JSON configuration data for this module""" + data: JSON } """The output of our update `SchemaGrant` mutation.""" @@ -35507,31 +37748,31 @@ input AppOwnerGrantPatch { updatedAt: Datetime } -"""The output of our update `AppLimitDefault` mutation.""" -type UpdateAppLimitDefaultPayload { +"""The output of our update `AppAchievement` mutation.""" +type UpdateAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was updated by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppAchievement` that was updated by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the `updateAppLimitDefault` mutation.""" -input UpdateAppLimitDefaultInput { +"""All input for the `updateAppAchievement` mutation.""" +input UpdateAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -35540,49 +37781,52 @@ input UpdateAppLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `AppLimitDefault` being updated. + An object where the defined keys will be set on the `AppAchievement` being updated. """ - appLimitDefaultPatch: AppLimitDefaultPatch! + appAchievementPatch: AppAchievementPatch! } """ -Represents an update to a `AppLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppAchievement`. Fields that are set will be updated. """ -input AppLimitDefaultPatch { +input AppAchievementPatch { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement being tracked""" name: String - """Default maximum usage allowed for this limit""" - max: Int + """Cumulative count of completed steps toward this requirement""" + count: Int + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `OrgLimitDefault` mutation.""" -type UpdateOrgLimitDefaultPayload { +"""The output of our update `AppStep` mutation.""" +type UpdateAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was updated by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppStep` that was updated by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the `updateOrgLimitDefault` mutation.""" -input UpdateOrgLimitDefaultInput { +"""All input for the `updateAppStep` mutation.""" +input UpdateAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -35591,22 +37835,271 @@ input UpdateOrgLimitDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimitDefault` being updated. + An object where the defined keys will be set on the `AppStep` being updated. """ - orgLimitDefaultPatch: OrgLimitDefaultPatch! + appStepPatch: AppStepPatch! } """ -Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +Represents an update to a `AppStep`. Fields that are set will be updated. """ -input OrgLimitDefaultPatch { +input AppStepPatch { id: UUID + actorId: UUID - """Name identifier of the limit this default applies to""" + """Name identifier of the level requirement this step fulfills""" name: String - """Default maximum usage allowed for this limit""" - max: Int + """Number of units completed in this step action""" + count: Int + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgPermissionDefault` mutation.""" +type UpdateOrgPermissionDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermissionDefault` that was updated by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `updateOrgPermissionDefault` mutation.""" +input UpdateOrgPermissionDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgPermissionDefault` being updated. + """ + orgPermissionDefaultPatch: OrgPermissionDefaultPatch! +} + +""" +Represents an update to a `OrgPermissionDefault`. Fields that are set will be updated. +""" +input OrgPermissionDefaultPatch { + id: UUID + + """Default permission bitmask applied to new members""" + permissions: BitString + + """References the entity these default permissions apply to""" + entityId: UUID +} + +"""The output of our update `AppPermission` mutation.""" +type UpdateAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was updated by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `updateAppPermission` mutation.""" +input UpdateAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppPermission` being updated. + """ + appPermissionPatch: AppPermissionPatch! +} + +""" +Represents an update to a `AppPermission`. Fields that are set will be updated. +""" +input AppPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our update `OrgPermission` mutation.""" +type UpdateOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was updated by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `updateOrgPermission` mutation.""" +input UpdateOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgPermission` being updated. + """ + orgPermissionPatch: OrgPermissionPatch! +} + +""" +Represents an update to a `OrgPermission`. Fields that are set will be updated. +""" +input OrgPermissionPatch { + id: UUID + + """Human-readable permission name (e.g. read, write, manage)""" + name: String + + """ + Position of this permission in the bitmask (1-indexed), must be unique per permission set + """ + bitnum: Int + + """ + Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + """ + bitstr: BitString + + """Human-readable description of what this permission allows""" + description: String +} + +"""The output of our update `MembershipType` mutation.""" +type UpdateMembershipTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipType` that was updated by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `updateMembershipType` mutation.""" +input UpdateMembershipTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! + + """ + An object where the defined keys will be set on the `MembershipType` being updated. + """ + membershipTypePatch: MembershipTypePatch! +} + +""" +Represents an update to a `MembershipType`. Fields that are set will be updated. +""" +input MembershipTypePatch { + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int + + """Human-readable name of the membership type""" + name: String + + """Description of what this membership type represents""" + description: String + + """ + Short prefix used to namespace tables and functions for this membership scope + """ + prefix: String + + """ + Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + """ + parentMembershipType: Int + + """ + When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + """ + hasUsersTableEntry: Boolean } """The output of our update `DefaultPrivilege` mutation.""" @@ -36199,56 +38692,163 @@ input OrgOwnerGrantPatch { updatedAt: Datetime } -"""The output of our update `Object` mutation.""" -type UpdateObjectPayload { +"""The output of our update `NodeTypeRegistry` mutation.""" +type UpdateNodeTypeRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Object` that was updated by this mutation.""" - object: Object + """The `NodeTypeRegistry` that was updated by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge } -"""All input for the `updateObject` mutation.""" -input UpdateObjectInput { +"""All input for the `updateNodeTypeRegistry` mutation.""" +input UpdateNodeTypeRegistryInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + name: String! + + """ + An object where the defined keys will be set on the `NodeTypeRegistry` being updated. + """ + nodeTypeRegistryPatch: NodeTypeRegistryPatch! +} + +""" +Represents an update to a `NodeTypeRegistry`. Fields that are set will be updated. +""" +input NodeTypeRegistryPatch { + name: String + slug: String + category: String + displayName: String + description: String + parameterSchema: JSON + tags: [String] +} + +"""The output of our update `AppLimitDefault` mutation.""" +type UpdateAppLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimitDefault` that was updated by this mutation.""" + appLimitDefault: AppLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge +} + +"""All input for the `updateAppLimitDefault` mutation.""" +input UpdateAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! - databaseId: UUID! """ - An object where the defined keys will be set on the `Object` being updated. + An object where the defined keys will be set on the `AppLimitDefault` being updated. """ - objectPatch: ObjectPatch! + appLimitDefaultPatch: AppLimitDefaultPatch! } """ -Represents an update to a `Object`. Fields that are set will be updated. +Represents an update to a `AppLimitDefault`. Fields that are set will be updated. """ -input ObjectPatch { +input AppLimitDefaultPatch { id: UUID - databaseId: UUID - kids: [UUID] - ktree: [String] - data: JSON - frzn: Boolean - createdAt: Datetime + + """Name identifier of the limit this default applies to""" + name: String + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt +} + +"""The output of our update `OrgLimitDefault` mutation.""" +type UpdateOrgLimitDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitDefault` that was updated by this mutation.""" + orgLimitDefault: OrgLimitDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge +} + +"""All input for the `updateOrgLimitDefault` mutation.""" +input UpdateOrgLimitDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgLimitDefault` being updated. + """ + orgLimitDefaultPatch: OrgLimitDefaultPatch! +} + +""" +Represents an update to a `OrgLimitDefault`. Fields that are set will be updated. +""" +input OrgLimitDefaultPatch { + id: UUID + + """Name identifier of the limit this default applies to""" + name: String + + """Default maximum usage allowed for this limit""" + max: BigInt + + """Default soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt } """The output of our update `Database` mutation.""" @@ -36419,92 +39019,31 @@ input CryptoAddressPatch { updatedAt: Datetime } -"""The output of our update `AppPermission` mutation.""" -type UpdateAppPermissionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppPermission` that was updated by this mutation.""" - appPermission: AppPermission - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge -} - -"""All input for the `updateAppPermission` mutation.""" -input UpdateAppPermissionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppPermission` being updated. - """ - appPermissionPatch: AppPermissionPatch! -} - -""" -Represents an update to a `AppPermission`. Fields that are set will be updated. -""" -input AppPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set - """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations - """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `OrgPermission` mutation.""" -type UpdateOrgPermissionPayload { +"""The output of our update `AgentMessage` mutation.""" +type UpdateAgentMessagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was updated by this mutation.""" - orgPermission: OrgPermission + """The `AgentMessage` that was updated by this mutation.""" + agentMessage: AgentMessage """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge } -"""All input for the `updateOrgPermission` mutation.""" -input UpdateOrgPermissionInput { +"""All input for the `updateAgentMessage` mutation.""" +input UpdateAgentMessageInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -36513,197 +39052,94 @@ input UpdateOrgPermissionInput { id: UUID! """ - An object where the defined keys will be set on the `OrgPermission` being updated. + An object where the defined keys will be set on the `AgentMessage` being updated. """ - orgPermissionPatch: OrgPermissionPatch! + agentMessagePatch: AgentMessagePatch! } """ -Represents an update to a `OrgPermission`. Fields that are set will be updated. +Represents an update to a `AgentMessage`. Fields that are set will be updated. """ -input OrgPermissionPatch { - id: UUID - - """Human-readable permission name (e.g. read, write, manage)""" - name: String - - """ - Position of this permission in the bitmask (1-indexed), must be unique per permission set +input AgentMessagePatch { """ - bitnum: Int - - """ - Pre-computed bitmask with only this permission bit set, used for bitwise OR/AND operations + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. """ - bitstr: BitString - - """Human-readable description of what this permission allows""" - description: String -} - -"""The output of our update `AppLimit` mutation.""" -type UpdateAppLimitPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppLimit` that was updated by this mutation.""" - appLimit: AppLimit - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + threadId: UUID - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge -} - -"""All input for the `updateAppLimit` mutation.""" -input UpdateAppLimitInput { """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. + Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. """ - clientMutationId: String - id: UUID! + entityId: UUID """ - An object where the defined keys will be set on the `AppLimit` being updated. + Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. """ - appLimitPatch: AppLimitPatch! -} - -""" -Represents an update to a `AppLimit`. Fields that are set will be updated. -""" -input AppLimitPatch { + authorRole: String id: UUID - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID - - """Current usage count for this actor and limit""" - num: Int - - """Maximum allowed usage; NULL means use the default limit value""" - max: Int -} - -"""The output of our update `AppAchievement` mutation.""" -type UpdateAppAchievementPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppAchievement` that was updated by this mutation.""" - appAchievement: AppAchievement - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge -} - -"""All input for the `updateAppAchievement` mutation.""" -input UpdateAppAchievementInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppAchievement` being updated. - """ - appAchievementPatch: AppAchievementPatch! -} + """Timestamp when this record was created""" + createdAt: Datetime -""" -Represents an update to a `AppAchievement`. Fields that are set will be updated. -""" -input AppAchievementPatch { - id: UUID - actorId: UUID + """Timestamp when this record was last updated""" + updatedAt: Datetime - """Name identifier of the level requirement being tracked""" - name: String + """User who owns this record""" + ownerId: UUID - """Cumulative count of completed steps toward this requirement""" - count: Int - createdAt: Datetime - updatedAt: Datetime + """JSON metadata for extensible key-value storage""" + parts: JSON } -"""The output of our update `AppStep` mutation.""" -type UpdateAppStepPayload { +"""The output of our update `Object` mutation.""" +type UpdateObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was updated by this mutation.""" - appStep: AppStep + """The `Object` that was updated by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `updateAppStep` mutation.""" -input UpdateAppStepInput { +"""All input for the `updateObject` mutation.""" +input UpdateObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! + databaseId: UUID! """ - An object where the defined keys will be set on the `AppStep` being updated. + An object where the defined keys will be set on the `Object` being updated. """ - appStepPatch: AppStepPatch! + objectPatch: ObjectPatch! } """ -Represents an update to a `AppStep`. Fields that are set will be updated. +Represents an update to a `Object`. Fields that are set will be updated. """ -input AppStepPatch { +input ObjectPatch { id: UUID - actorId: UUID - - """Name identifier of the level requirement this step fulfills""" - name: String - - """Number of units completed in this step action""" - count: Int + databaseId: UUID + kids: [UUID] + ktree: [String] + data: JSON + frzn: Boolean createdAt: Datetime - updatedAt: Datetime } """The output of our update `SiteMetadatum` mutation.""" @@ -36760,157 +39196,46 @@ input SiteMetadatumPatch { siteId: UUID """Page title for SEO (max 120 characters)""" - title: String - - """Meta description for SEO and social sharing (max 120 characters)""" - description: String - - """Open Graph image for social media previews""" - ogImage: ConstructiveInternalTypeImage - - """Upload for Open Graph image for social media previews""" - ogImageUpload: Upload -} - -"""The `Upload` scalar type represents a file upload.""" -scalar Upload - -"""The output of our update `AppClaimedInvite` mutation.""" -type UpdateAppClaimedInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppClaimedInvite` that was updated by this mutation.""" - appClaimedInvite: AppClaimedInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge -} - -"""All input for the `updateAppClaimedInvite` mutation.""" -input UpdateAppClaimedInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppClaimedInvite` being updated. - """ - appClaimedInvitePatch: AppClaimedInvitePatch! -} - -""" -Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. -""" -input AppClaimedInvitePatch { - id: UUID - - """Optional JSON payload captured at the time the invite was claimed""" - data: JSON - - """User ID of the original invitation sender""" - senderId: UUID - - """User ID of the person who claimed and redeemed the invitation""" - receiverId: UUID - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `AppMembershipDefault` mutation.""" -type UpdateAppMembershipDefaultPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppMembershipDefault` that was updated by this mutation.""" - appMembershipDefault: AppMembershipDefault - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge -} - -"""All input for the `updateAppMembershipDefault` mutation.""" -input UpdateAppMembershipDefaultInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppMembershipDefault` being updated. - """ - appMembershipDefaultPatch: AppMembershipDefaultPatch! -} + title: String -""" -Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. -""" -input AppMembershipDefaultPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID + """Meta description for SEO and social sharing (max 120 characters)""" + description: String - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Open Graph image for social media previews""" + ogImage: ConstructiveInternalTypeImage - """Whether new members are automatically verified upon joining""" - isVerified: Boolean + """Upload for Open Graph image for social media previews""" + ogImageUpload: Upload } -"""The output of our update `OrgMembershipDefault` mutation.""" -type UpdateOrgMembershipDefaultPayload { +"""The `Upload` scalar type represents a file upload.""" +scalar Upload + +"""The output of our update `AppLevelRequirement` mutation.""" +type UpdateAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was updated by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `AppLevelRequirement` that was updated by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the `updateOrgMembershipDefault` mutation.""" -input UpdateOrgMembershipDefaultInput { +"""All input for the `updateAppLevelRequirement` mutation.""" +input UpdateAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -36919,26 +39244,33 @@ input UpdateOrgMembershipDefaultInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + An object where the defined keys will be set on the `AppLevelRequirement` being updated. """ - orgMembershipDefaultPatch: OrgMembershipDefaultPatch! + appLevelRequirementPatch: AppLevelRequirementPatch! } """ -Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. +Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. """ -input OrgMembershipDefaultPatch { +input AppLevelRequirementPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - """Whether new members are automatically approved upon joining""" - isApproved: Boolean + """Name identifier of the requirement (matches step names)""" + name: String - """References the entity these membership defaults apply to""" - entityId: UUID + """Name of the level this requirement belongs to""" + level: String + + """Human-readable description of what this requirement entails""" + description: String + + """Number of steps needed to satisfy this requirement""" + requiredCount: Int + + """Display ordering priority; lower values appear first""" + priority: Int + createdAt: Datetime + updatedAt: Datetime } """The output of our update `FullTextSearch` mutation.""" @@ -37307,31 +39639,31 @@ input PhoneNumberPatch { updatedAt: Datetime } -"""The output of our update `OrgLimit` mutation.""" -type UpdateOrgLimitPayload { +"""The output of our update `AppClaimedInvite` mutation.""" +type UpdateAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was updated by this mutation.""" - orgLimit: OrgLimit + """The `AppClaimedInvite` that was updated by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `updateOrgLimit` mutation.""" -input UpdateOrgLimitInput { +"""All input for the `updateAppClaimedInvite` mutation.""" +input UpdateAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -37340,102 +39672,205 @@ input UpdateOrgLimitInput { id: UUID! """ - An object where the defined keys will be set on the `OrgLimit` being updated. + An object where the defined keys will be set on the `AppClaimedInvite` being updated. """ - orgLimitPatch: OrgLimitPatch! + appClaimedInvitePatch: AppClaimedInvitePatch! } """ -Represents an update to a `OrgLimit`. Fields that are set will be updated. +Represents an update to a `AppClaimedInvite`. Fields that are set will be updated. """ -input OrgLimitPatch { +input AppClaimedInvitePatch { id: UUID - """Name identifier of the limit being tracked""" - name: String - - """User whose usage is being tracked against this limit""" - actorId: UUID + """Optional JSON payload captured at the time the invite was claimed""" + data: JSON - """Current usage count for this actor and limit""" - num: Int + """User ID of the original invitation sender""" + senderId: UUID - """Maximum allowed usage; NULL means use the default limit value""" - max: Int - entityId: UUID + """User ID of the person who claimed and redeemed the invitation""" + receiverId: UUID + createdAt: Datetime + updatedAt: Datetime } -"""The output of our update `MembershipType` mutation.""" -type UpdateMembershipTypePayload { +"""The output of our update `AppMembershipDefault` mutation.""" +type UpdateAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was updated by this mutation.""" - membershipType: MembershipType + """The `AppMembershipDefault` that was updated by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `updateMembershipType` mutation.""" -input UpdateMembershipTypeInput { +"""All input for the `updateAppMembershipDefault` mutation.""" +input UpdateAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + An object where the defined keys will be set on the `AppMembershipDefault` being updated. """ - id: Int! + appMembershipDefaultPatch: AppMembershipDefaultPatch! +} + +""" +Represents an update to a `AppMembershipDefault`. Fields that are set will be updated. +""" +input AppMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """Whether new members are automatically verified upon joining""" + isVerified: Boolean +} +"""The output of our update `OrgMembershipDefault` mutation.""" +type UpdateOrgMembershipDefaultPayload { """ - An object where the defined keys will be set on the `MembershipType` being updated. + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - membershipTypePatch: MembershipTypePatch! + clientMutationId: String + + """The `OrgMembershipDefault` that was updated by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `updateOrgMembershipDefault` mutation.""" +input UpdateOrgMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembershipDefault` being updated. + """ + orgMembershipDefaultPatch: OrgMembershipDefaultPatch! } """ -Represents an update to a `MembershipType`. Fields that are set will be updated. +Represents an update to a `OrgMembershipDefault`. Fields that are set will be updated. """ -input MembershipTypePatch { +input OrgMembershipDefaultPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether new members are automatically approved upon joining""" + isApproved: Boolean + + """References the entity these membership defaults apply to""" + entityId: UUID +} + +"""The output of our update `AuditLog` mutation.""" +type UpdateAuditLogPayload { """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - id: Int + clientMutationId: String - """Human-readable name of the membership type""" - name: String + """The `AuditLog` that was updated by this mutation.""" + auditLog: AuditLog - """Description of what this membership type represents""" - description: String + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} +"""All input for the `updateAuditLog` mutation.""" +input UpdateAuditLogInput { """ - Short prefix used to namespace tables and functions for this membership scope + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - prefix: String + clientMutationId: String + id: UUID! """ - Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) + An object where the defined keys will be set on the `AuditLog` being updated. """ - parentMembershipType: Int + auditLogPatch: AuditLogPatch! +} + +""" +Represents an update to a `AuditLog`. Fields that are set will be updated. +""" +input AuditLogPatch { + id: UUID """ - When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs + Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) """ - hasUsersTableEntry: Boolean + event: String + + """User who performed the authentication action; NULL if user was deleted""" + actorId: UUID + + """Request origin (domain) where the auth event occurred""" + origin: ConstructiveInternalTypeOrigin + + """Browser or client user-agent string from the request""" + userAgent: String + + """IP address of the client that initiated the auth event""" + ipAddress: InternetAddress + + """Whether the authentication attempt succeeded""" + success: Boolean + + """Timestamp when the audit event was recorded""" + createdAt: Datetime } """The output of our update `Domain` mutation.""" @@ -37501,6 +39936,224 @@ input DomainPatch { domain: ConstructiveInternalTypeHostname } +"""The output of our update `AgentTask` mutation.""" +type UpdateAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentTask` that was updated by this mutation.""" + agentTask: AgentTask + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge +} + +"""All input for the `updateAgentTask` mutation.""" +input UpdateAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AgentTask` being updated. + """ + agentTaskPatch: AgentTaskPatch! +} + +""" +Represents an update to a `AgentTask`. Fields that are set will be updated. +""" +input AgentTaskPatch { + """ + Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. + """ + threadId: UUID + + """ + Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. + """ + entityId: UUID + + """Natural-language description of the work to do. Required.""" + description: String + + """ + Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. + """ + source: String + + """ + Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. + """ + error: String + id: UUID + + """Timestamp when this record was created""" + createdAt: Datetime + + """Timestamp when this record was last updated""" + updatedAt: Datetime + + """User who owns this record""" + ownerId: UUID + + """Current status of this record""" + status: String +} + +"""The output of our update `AgentThread` mutation.""" +type UpdateAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentThread` that was updated by this mutation.""" + agentThread: AgentThread + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge +} + +"""All input for the `updateAgentThread` mutation.""" +input UpdateAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AgentThread` being updated. + """ + agentThreadPatch: AgentThreadPatch! +} + +""" +Represents an update to a `AgentThread`. Fields that are set will be updated. +""" +input AgentThreadPatch { + """ + Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. + """ + title: String + + """ + Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. + """ + mode: String + + """ + Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. + """ + model: String + + """ + Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. + """ + systemPrompt: String + id: UUID + + """Timestamp when this record was created""" + createdAt: Datetime + + """Timestamp when this record was last updated""" + updatedAt: Datetime + + """User who owns this record within the entity""" + ownerId: UUID + + """Entity this record belongs to""" + entityId: UUID + + """Current status of this record""" + status: String +} + +"""The output of our update `Email` mutation.""" +type UpdateEmailPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Email` that was updated by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `updateEmail` mutation.""" +input UpdateEmailInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `Email` being updated. + """ + emailPatch: EmailPatch! +} + +""" +Represents an update to a `Email`. Fields that are set will be updated. +""" +input EmailPatch { + id: UUID + ownerId: UUID + + """The email address""" + email: ConstructiveInternalTypeEmail + + """Whether the email address has been verified via confirmation link""" + isVerified: Boolean + + """Whether this is the user's primary email address""" + isPrimary: Boolean + + """Optional user-provided label for this email (e.g. "Work", "Personal").""" + name: String + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `AppGrant` mutation.""" type UpdateAppGrantPayload { """ @@ -37631,15 +40284,79 @@ type UpdateOrgChartEdgePayload { """ query: Query - """An edge for our `OrgChartEdge`. May be used by Relay 1.""" - orgChartEdgeEdge( - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgChartEdgeEdge + """An edge for our `OrgChartEdge`. May be used by Relay 1.""" + orgChartEdgeEdge( + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgChartEdgeEdge +} + +"""All input for the `updateOrgChartEdge` mutation.""" +input UpdateOrgChartEdgeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgChartEdge` being updated. + """ + orgChartEdgePatch: OrgChartEdgePatch! +} + +""" +Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +""" +input OrgChartEdgePatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + + """Organization this hierarchy edge belongs to""" + entityId: UUID + + """User ID of the subordinate (employee) in this reporting relationship""" + childId: UUID + + """ + User ID of the manager; NULL indicates a top-level position with no direct report + """ + parentId: UUID + + """Job title or role name for this position in the org chart""" + positionTitle: String + + """Numeric seniority level for this position (higher = more senior)""" + positionLevel: Int +} + +"""The output of our update `AppLimit` mutation.""" +type UpdateAppLimitPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppLimit` that was updated by this mutation.""" + appLimit: AppLimit + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `updateOrgChartEdge` mutation.""" -input UpdateOrgChartEdgeInput { +"""All input for the `updateAppLimit` mutation.""" +input UpdateAppLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -37648,62 +40365,70 @@ input UpdateOrgChartEdgeInput { id: UUID! """ - An object where the defined keys will be set on the `OrgChartEdge` being updated. + An object where the defined keys will be set on the `AppLimit` being updated. """ - orgChartEdgePatch: OrgChartEdgePatch! + appLimitPatch: AppLimitPatch! } """ -Represents an update to a `OrgChartEdge`. Fields that are set will be updated. +Represents an update to a `AppLimit`. Fields that are set will be updated. """ -input OrgChartEdgePatch { +input AppLimitPatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - """Organization this hierarchy edge belongs to""" - entityId: UUID + """Name identifier of the limit being tracked""" + name: String - """User ID of the subordinate (employee) in this reporting relationship""" - childId: UUID + """User whose usage is being tracked against this limit""" + actorId: UUID + + """Current usage count for this actor and limit""" + num: BigInt """ - User ID of the manager; NULL indicates a top-level position with no direct report + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. """ - parentId: UUID + max: BigInt - """Job title or role name for this position in the org chart""" - positionTitle: String + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt - """Numeric seniority level for this position (higher = more senior)""" - positionLevel: Int + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput } -"""The output of our update `OrgGrant` mutation.""" -type UpdateOrgGrantPayload { +"""The output of our update `OrgLimitAggregate` mutation.""" +type UpdateOrgLimitAggregatePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was updated by this mutation.""" - orgGrant: OrgGrant + """The `OrgLimitAggregate` that was updated by this mutation.""" + orgLimitAggregate: OrgLimitAggregate """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge } -"""All input for the `updateOrgGrant` mutation.""" -input UpdateOrgGrantInput { +"""All input for the `updateOrgLimitAggregate` mutation.""" +input UpdateOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -37712,31 +40437,39 @@ input UpdateOrgGrantInput { id: UUID! """ - An object where the defined keys will be set on the `OrgGrant` being updated. + An object where the defined keys will be set on the `OrgLimitAggregate` being updated. """ - orgGrantPatch: OrgGrantPatch! + orgLimitAggregatePatch: OrgLimitAggregatePatch! } """ -Represents an update to a `OrgGrant`. Fields that are set will be updated. +Represents an update to a `OrgLimitAggregate`. Fields that are set will be updated. """ -input OrgGrantPatch { +input OrgLimitAggregatePatch { id: UUID - """Bitmask of permissions being granted or revoked""" - permissions: BitString + """Name identifier of the aggregate limit being tracked""" + name: String - """True to grant the permissions, false to revoke them""" - isGrant: Boolean + """Entity (org) whose aggregate usage is being tracked""" + entityId: UUID - """The member receiving or losing the permission grant""" - actorId: UUID + """Current aggregate usage count for this entity and limit""" + num: BigInt - """The entity (org or group) this permission grant applies to""" - entityId: UUID - grantorId: UUID - createdAt: Datetime - updatedAt: Datetime + """Maximum allowed aggregate usage; negative means unlimited""" + max: BigInt + + """Soft limit threshold for warnings; NULL means no soft limit""" + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput } """The output of our update `BlueprintConstruction` mutation.""" @@ -37829,6 +40562,61 @@ input BlueprintConstructionPatch { updatedAt: Datetime } +"""The output of our update `PlansModule` mutation.""" +type UpdatePlansModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlansModule` that was updated by this mutation.""" + plansModule: PlansModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PlansModule`. May be used by Relay 1.""" + plansModuleEdge( + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlansModuleEdge +} + +"""All input for the `updatePlansModule` mutation.""" +input UpdatePlansModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `PlansModule` being updated. + """ + plansModulePatch: PlansModulePatch! +} + +""" +Represents an update to a `PlansModule`. Fields that are set will be updated. +""" +input PlansModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + plansTableId: UUID + plansTableName: String + planLimitsTableId: UUID + planLimitsTableName: String + applyPlanFunction: String + applyPlanAggregateFunction: String + prefix: String +} + """The output of our update `RlsModule` mutation.""" type UpdateRlsModulePayload { """ @@ -37939,31 +40727,31 @@ input SessionsModulePatch { authSettingsTable: String } -"""The output of our update `AppLevelRequirement` mutation.""" -type UpdateAppLevelRequirementPayload { +"""The output of our update `OrgGrant` mutation.""" +type UpdateOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevelRequirement` that was updated by this mutation.""" - appLevelRequirement: AppLevelRequirement + """The `OrgGrant` that was updated by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `updateAppLevelRequirement` mutation.""" -input UpdateAppLevelRequirementInput { +"""All input for the `updateOrgGrant` mutation.""" +input UpdateOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -37972,60 +40760,58 @@ input UpdateAppLevelRequirementInput { id: UUID! """ - An object where the defined keys will be set on the `AppLevelRequirement` being updated. + An object where the defined keys will be set on the `OrgGrant` being updated. """ - appLevelRequirementPatch: AppLevelRequirementPatch! + orgGrantPatch: OrgGrantPatch! } """ -Represents an update to a `AppLevelRequirement`. Fields that are set will be updated. +Represents an update to a `OrgGrant`. Fields that are set will be updated. """ -input AppLevelRequirementPatch { +input OrgGrantPatch { id: UUID - """Name identifier of the requirement (matches step names)""" - name: String - - """Name of the level this requirement belongs to""" - level: String + """Bitmask of permissions being granted or revoked""" + permissions: BitString - """Human-readable description of what this requirement entails""" - description: String + """True to grant the permissions, false to revoke them""" + isGrant: Boolean - """Number of steps needed to satisfy this requirement""" - requiredCount: Int + """The member receiving or losing the permission grant""" + actorId: UUID - """Display ordering priority; lower values appear first""" - priority: Int + """The entity (org or group) this permission grant applies to""" + entityId: UUID + grantorId: UUID createdAt: Datetime updatedAt: Datetime } -"""The output of our update `AuditLog` mutation.""" -type UpdateAuditLogPayload { +"""The output of our update `AppLevel` mutation.""" +type UpdateAppLevelPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AuditLog` that was updated by this mutation.""" - auditLog: AuditLog + """The `AppLevel` that was updated by this mutation.""" + appLevel: AppLevel """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge } -"""All input for the `updateAuditLog` mutation.""" -input UpdateAuditLogInput { +"""All input for the `updateAppLevel` mutation.""" +input UpdateAppLevelInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -38034,66 +40820,60 @@ input UpdateAuditLogInput { id: UUID! """ - An object where the defined keys will be set on the `AuditLog` being updated. + An object where the defined keys will be set on the `AppLevel` being updated. """ - auditLogPatch: AuditLogPatch! + appLevelPatch: AppLevelPatch! } """ -Represents an update to a `AuditLog`. Fields that are set will be updated. +Represents an update to a `AppLevel`. Fields that are set will be updated. """ -input AuditLogPatch { +input AppLevelPatch { id: UUID - """ - Type of authentication event (e.g. sign_in, sign_up, password_change, verify_email) - """ - event: String - - """User who performed the authentication action; NULL if user was deleted""" - actorId: UUID - - """Request origin (domain) where the auth event occurred""" - origin: ConstructiveInternalTypeOrigin - - """Browser or client user-agent string from the request""" - userAgent: String + """Unique name of the level""" + name: String - """IP address of the client that initiated the auth event""" - ipAddress: InternetAddress + """Human-readable description of what this level represents""" + description: String - """Whether the authentication attempt succeeded""" - success: Boolean + """Badge or icon image associated with this level""" + image: ConstructiveInternalTypeImage - """Timestamp when the audit event was recorded""" + """Optional owner (actor) who created or manages this level""" + ownerId: UUID createdAt: Datetime + updatedAt: Datetime + + """Upload for Badge or icon image associated with this level""" + imageUpload: Upload } -"""The output of our update `AppLevel` mutation.""" -type UpdateAppLevelPayload { +"""The output of our update `OrgLimit` mutation.""" +type UpdateOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevel` that was updated by this mutation.""" - appLevel: AppLevel + """The `OrgLimit` that was updated by this mutation.""" + orgLimit: OrgLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevel`. May be used by Relay 1.""" - appLevelEdge( - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelEdge + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge } -"""All input for the `updateAppLevel` mutation.""" -input UpdateAppLevelInput { +"""All input for the `updateOrgLimit` mutation.""" +input UpdateOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -38102,33 +40882,44 @@ input UpdateAppLevelInput { id: UUID! """ - An object where the defined keys will be set on the `AppLevel` being updated. + An object where the defined keys will be set on the `OrgLimit` being updated. """ - appLevelPatch: AppLevelPatch! + orgLimitPatch: OrgLimitPatch! } """ -Represents an update to a `AppLevel`. Fields that are set will be updated. +Represents an update to a `OrgLimit`. Fields that are set will be updated. """ -input AppLevelPatch { +input OrgLimitPatch { id: UUID - """Unique name of the level""" + """Name identifier of the limit being tracked""" name: String - """Human-readable description of what this level represents""" - description: String + """User whose usage is being tracked against this limit""" + actorId: UUID - """Badge or icon image associated with this level""" - image: ConstructiveInternalTypeImage + """Current usage count for this actor and limit""" + num: BigInt - """Optional owner (actor) who created or manages this level""" - ownerId: UUID - createdAt: Datetime - updatedAt: Datetime + """ + Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. + """ + max: BigInt - """Upload for Badge or icon image associated with this level""" - imageUpload: Upload + """ + Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. + """ + softMax: BigInt + + """Start of the current metering window; NULL means no time window""" + windowStart: Datetime + + """ + Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window + """ + windowDuration: IntervalInput + entityId: UUID } """The output of our update `Blueprint` mutation.""" @@ -38278,66 +41069,6 @@ input DenormalizedTableFieldPatch { funcOrder: Int } -"""The output of our update `Email` mutation.""" -type UpdateEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was updated by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `updateEmail` mutation.""" -input UpdateEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `Email` being updated. - """ - emailPatch: EmailPatch! -} - -""" -Represents an update to a `Email`. Fields that are set will be updated. -""" -input EmailPatch { - id: UUID - ownerId: UUID - - """The email address""" - email: ConstructiveInternalTypeEmail - - """Whether the email address has been verified via confirmation link""" - isVerified: Boolean - - """Whether this is the user's primary email address""" - isPrimary: Boolean - - """Optional user-provided label for this email (e.g. "Work", "Personal").""" - name: String - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `OrgMemberProfile` mutation.""" type UpdateOrgMemberProfilePayload { """ @@ -38384,212 +41115,34 @@ input OrgMemberProfilePatch { createdAt: Datetime updatedAt: Datetime - """References the membership this profile belongs to (1:1)""" - membershipId: UUID - - """References the entity this profile belongs to (used for RLS lookups)""" - entityId: UUID - - """References the user who owns this profile (for self-edit RLS)""" - actorId: UUID - - """Display name shown to other entity members""" - displayName: String - - """ - Email address visible to other entity members (auto-populated from verified primary email) - """ - email: String - - """Job title or role description visible to other entity members""" - title: String - - """Short biography visible to other entity members""" - bio: String - - """Profile picture visible to other entity members""" - profilePicture: ConstructiveInternalTypeImage - - """Upload for Profile picture visible to other entity members""" - profilePictureUpload: Upload -} - -"""The output of our update `SecureTableProvision` mutation.""" -type UpdateSecureTableProvisionPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SecureTableProvision` that was updated by this mutation.""" - secureTableProvision: SecureTableProvision - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge -} - -"""All input for the `updateSecureTableProvision` mutation.""" -input UpdateSecureTableProvisionInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this provision row.""" - id: UUID! - - """ - An object where the defined keys will be set on the `SecureTableProvision` being updated. - """ - secureTableProvisionPatch: SecureTableProvisionPatch! -} - -""" -Represents an update to a `SecureTableProvision`. Fields that are set will be updated. -""" -input SecureTableProvisionPatch { - """Unique identifier for this provision row.""" - id: UUID - - """The database this provision belongs to. Required.""" - databaseId: UUID - - """ - Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. - """ - schemaId: UUID - - """ - Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. - """ - tableId: UUID - - """ - Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. - """ - tableName: String - - """ - Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). - """ - nodes: JSON - - """ - If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. - """ - useRls: Boolean - - """ - PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). - """ - fields: [JSON] - - """ - Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. - """ - grants: JSON - - """ - Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. - """ - policies: JSON - - """ - Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. - """ - outFields: [UUID] -} - -"""The output of our update `OrgMembershipSetting` mutation.""" -type UpdateOrgMembershipSettingPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgMembershipSetting` that was updated by this mutation.""" - orgMembershipSetting: OrgMembershipSetting - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge -} - -"""All input for the `updateOrgMembershipSetting` mutation.""" -input UpdateOrgMembershipSettingInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgMembershipSetting` being updated. - """ - orgMembershipSettingPatch: OrgMembershipSettingPatch! -} - -""" -Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. -""" -input OrgMembershipSettingPatch { - id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """References the entity these settings apply to""" + """References the membership this profile belongs to (1:1)""" + membershipId: UUID + + """References the entity this profile belongs to (used for RLS lookups)""" entityId: UUID - """ - When a member is deleted, whether to cascade-remove their descendant-entity memberships - """ - deleteMemberCascadeChildren: Boolean + """References the user who owns this profile (for self-edit RLS)""" + actorId: UUID - """ - When a child entity is created, whether to auto-add existing org-level owners as child-entity owners - """ - createChildCascadeOwners: Boolean + """Display name shown to other entity members""" + displayName: String """ - When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + Email address visible to other entity members (auto-populated from verified primary email) """ - createChildCascadeAdmins: Boolean + email: String - """ - When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members - """ - createChildCascadeMembers: Boolean + """Job title or role description visible to other entity members""" + title: String - """ - Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) - """ - allowExternalMembers: Boolean + """Short biography visible to other entity members""" + bio: String - """ - Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. - """ - populateMemberEmail: Boolean + """Profile picture visible to other entity members""" + profilePicture: ConstructiveInternalTypeImage + + """Upload for Profile picture visible to other entity members""" + profilePictureUpload: Upload } """The output of our update `DatabaseTransfer` mutation.""" @@ -38650,6 +41203,64 @@ input DatabaseTransferPatch { completedAt: Datetime } +"""The output of our update `BillingModule` mutation.""" +type UpdateBillingModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `BillingModule` that was updated by this mutation.""" + billingModule: BillingModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge +} + +"""All input for the `updateBillingModule` mutation.""" +input UpdateBillingModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `BillingModule` being updated. + """ + billingModulePatch: BillingModulePatch! +} + +""" +Represents an update to a `BillingModule`. Fields that are set will be updated. +""" +input BillingModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + metersTableId: UUID + metersTableName: String + planSubscriptionsTableId: UUID + planSubscriptionsTableName: String + ledgerTableId: UUID + ledgerTableName: String + balancesTableId: UUID + balancesTableName: String + recordUsageFunction: String + prefix: String +} + """The output of our update `CryptoAuthModule` mutation.""" type UpdateCryptoAuthModulePayload { """ @@ -38846,6 +41457,102 @@ input InvitesModulePatch { entityTableId: UUID } +"""The output of our update `SecureTableProvision` mutation.""" +type UpdateSecureTableProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SecureTableProvision` that was updated by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the `updateSecureTableProvision` mutation.""" +input UpdateSecureTableProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this provision row.""" + id: UUID! + + """ + An object where the defined keys will be set on the `SecureTableProvision` being updated. + """ + secureTableProvisionPatch: SecureTableProvisionPatch! +} + +""" +Represents an update to a `SecureTableProvision`. Fields that are set will be updated. +""" +input SecureTableProvisionPatch { + """Unique identifier for this provision row.""" + id: UUID + + """The database this provision belongs to. Required.""" + databaseId: UUID + + """ + Target schema for the table. Defaults to uuid_nil(); the trigger resolves this to the app_public schema if not explicitly provided. + """ + schemaId: UUID + + """ + Target table to provision. Defaults to uuid_nil(); the trigger creates or resolves the table via table_name if not explicitly provided. + """ + tableId: UUID + + """ + Name of the target table. Used to create or look up the table when table_id is not provided. If omitted, it is backfilled from the resolved table. + """ + tableName: String + + """ + Array of node objects to apply to the table. Each element is a jsonb object with a required "$type" key (one of: DataId, DataDirectOwner, DataEntityMembership, DataOwnershipInEntity, DataTimestamps, DataPeoplestamps, DataPublishable, DataSoftDelete, DataEmbedding, DataFullTextSearch, DataSlug, etc.) and an optional "data" key containing generator-specific configuration. Supports multiple nodes per row, matching the blueprint definition format. Example: [{"$type": "DataId"}, {"$type": "DataTimestamps"}, {"$type": "DataDirectOwner", "data": {"owner_field_name": "author_id"}}]. Defaults to '[]' (no node processing). + """ + nodes: JSON + + """ + If true and Row Level Security is not yet enabled on the target table, enable it. Automatically set to true by the trigger when policies[] is non-empty. Defaults to true. + """ + useRls: Boolean + + """ + PostgreSQL array of jsonb field definition objects to create on the target table. Each object has keys: "name" (text, required), "type" (text, required), "default" (text, optional), "is_required" (boolean, optional, defaults to false), "min" (float, optional), "max" (float, optional), "regexp" (text, optional), "index" (boolean, optional, defaults to false — creates a btree index on the field). min/max generate CHECK constraints: for text/citext they constrain character_length, for integer/float types they constrain the value. regexp generates a CHECK (col ~ pattern) constraint for text/citext. Fields are created via metaschema.create_field() after any node_type generator runs, and their IDs are appended to out_fields. Example: ARRAY['{"name":"username","type":"citext","max":256,"regexp":"^[a-z0-9_]+$"}'::jsonb, '{"name":"score","type":"integer","min":0,"max":100}'::jsonb]. Defaults to '{}' (no additional fields). + """ + fields: [JSON] + + """ + Array of grant objects defining table privileges. Each element is a jsonb object with keys: "roles" (text[], required — database roles to grant to, e.g. ["authenticated","admin"]), "privileges" (jsonb[], required — array of [privilege, columns] tuples, e.g. [["select","*"],["insert","*"]]). "*" means all columns; an array means column-level grant. Supports per-role privilege targeting: different grant entries can target different roles with different privileges. Example: [{"roles":["authenticated"],"privileges":[["select","*"]]},{"roles":["admin"],"privileges":[["insert","*"],["update","*"],["delete","*"]]}]. Defaults to '[]' (no grants). When policies[] omit explicit privileges/policy_role, they fall back to the verbs and first role from grants[]. + """ + grants: JSON + + """ + Array of policy objects to create on the target table. Each element is a jsonb object with keys: "$type" (text, required — the Authz* policy generator type, e.g. AuthzEntityMembership, AuthzMembership, AuthzDirectOwner, AuthzPublishable, AuthzAllowAll), "data" (jsonb, optional — opaque configuration passed to metaschema.create_policy(), structure varies by type), "privileges" (text[], optional — privileges the policy applies to, e.g. ["select","insert"]; if omitted, derived from grants[] privilege verbs), "policy_role" (text, optional — role the policy targets; if omitted, falls back to first role in first grants[] entry, or 'authenticated' if no grants), "permissive" (boolean, optional — PERMISSIVE or RESTRICTIVE; defaults to true), "policy_name" (text, optional — custom suffix for the generated policy name; if omitted, auto-derived from $type by stripping Authz prefix). Supports multiple policies per row. Example: [{"$type": "AuthzEntityMembership", "data": {"entity_field": "owner_id", "membership_type": 3}, "privileges": ["select", "insert"]}, {"$type": "AuthzDirectOwner", "data": {"entity_field": "actor_id"}, "privileges": ["update", "delete"]}]. Defaults to '[]' (no policies created). When non-empty, the trigger automatically enables RLS. + """ + policies: JSON + + """ + Output column populated by the trigger after field creation. Contains the UUIDs of the metaschema fields created on the target table by this provision row's nodes. NULL when nodes is empty or before the trigger runs. Callers should not set this directly. + """ + outFields: [UUID] +} + """The output of our update `Enum` mutation.""" type UpdateEnumPayload { """ @@ -39070,6 +41777,177 @@ input WebauthnAuthModulePatch { challengeExpiry: IntervalInput } +"""The output of our update `AppInvite` mutation.""" +type UpdateAppInvitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppInvite` that was updated by this mutation.""" + appInvite: AppInvite + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge +} + +"""All input for the `updateAppInvite` mutation.""" +input UpdateAppInviteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `AppInvite` being updated. + """ + appInvitePatch: AppInvitePatch! +} + +""" +Represents an update to a `AppInvite`. Fields that are set will be updated. +""" +input AppInvitePatch { + id: UUID + + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail + + """User ID of the member who sent this invitation""" + senderId: UUID + + """Unique random hex token used to redeem this invitation""" + inviteToken: String + + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean + + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int + + """Running count of how many times this invite has been claimed""" + inviteCount: Int + + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean + + """Optional JSON payload of additional invite metadata""" + data: JSON + + """ + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. + """ + profileId: UUID + + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime +} + +"""The output of our update `OrgMembershipSetting` mutation.""" +type UpdateOrgMembershipSettingPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembershipSetting` that was updated by this mutation.""" + orgMembershipSetting: OrgMembershipSetting + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge +} + +"""All input for the `updateOrgMembershipSetting` mutation.""" +input UpdateOrgMembershipSettingInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembershipSetting` being updated. + """ + orgMembershipSettingPatch: OrgMembershipSettingPatch! +} + +""" +Represents an update to a `OrgMembershipSetting`. Fields that are set will be updated. +""" +input OrgMembershipSettingPatch { + id: UUID + createdAt: Datetime + updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """References the entity these settings apply to""" + entityId: UUID + + """ + When a member is deleted, whether to cascade-remove their descendant-entity memberships + """ + deleteMemberCascadeChildren: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level owners as child-entity owners + """ + createChildCascadeOwners: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level admins as child-entity admins + """ + createChildCascadeAdmins: Boolean + + """ + When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members + """ + createChildCascadeMembers: Boolean + + """ + Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) + """ + allowExternalMembers: Boolean + + """ + Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) + """ + inviteProfileAssignmentMode: String + + """ + Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. + """ + populateMemberEmail: Boolean + + """ + Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) + """ + limitAllocationMode: String +} + """The output of our update `App` mutation.""" type UpdateAppPayload { """ @@ -39134,97 +42012,313 @@ input AppPatch { appStoreId: String """ - Apple App ID prefix (Team ID) for universal links and associated domains + Apple App ID prefix (Team ID) for universal links and associated domains + """ + appIdPrefix: String + + """URL to the Google Play Store listing""" + playStoreLink: ConstructiveInternalTypeUrl + + """Upload for App icon or promotional image""" + appImageUpload: Upload +} + +"""The output of our update `Site` mutation.""" +type UpdateSitePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Site` that was updated by this mutation.""" + site: Site + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge +} + +"""All input for the `updateSite` mutation.""" +input UpdateSiteInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this site""" + id: UUID! + + """ + An object where the defined keys will be set on the `Site` being updated. + """ + sitePatch: SitePatch! +} + +"""Represents an update to a `Site`. Fields that are set will be updated.""" +input SitePatch { + """Unique identifier for this site""" + id: UUID + + """Reference to the metaschema database this site belongs to""" + databaseId: UUID + + """Display title for the site (max 120 characters)""" + title: String + + """Short description of the site (max 120 characters)""" + description: String + + """Open Graph image used for social media link previews""" + ogImage: ConstructiveInternalTypeImage + + """Browser favicon attachment""" + favicon: ConstructiveInternalTypeAttachment + + """Apple touch icon for iOS home screen bookmarks""" + appleTouchIcon: ConstructiveInternalTypeImage + + """Primary logo image for the site""" + logo: ConstructiveInternalTypeImage + + """PostgreSQL database name this site connects to""" + dbname: String + + """Upload for Open Graph image used for social media link previews""" + ogImageUpload: Upload + + """Upload for Browser favicon attachment""" + faviconUpload: Upload + + """Upload for Apple touch icon for iOS home screen bookmarks""" + appleTouchIconUpload: Upload + + """Upload for Primary logo image for the site""" + logoUpload: Upload +} + +"""The output of our update `NotificationsModule` mutation.""" +type UpdateNotificationsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `NotificationsModule` that was updated by this mutation.""" + notificationsModule: NotificationsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `NotificationsModule`. May be used by Relay 1.""" + notificationsModuleEdge( + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): NotificationsModuleEdge +} + +"""All input for the `updateNotificationsModule` mutation.""" +input UpdateNotificationsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `NotificationsModule` being updated. + """ + notificationsModulePatch: NotificationsModulePatch! +} + +""" +Represents an update to a `NotificationsModule`. Fields that are set will be updated. +""" +input NotificationsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + notificationsTableId: UUID + readStateTableId: UUID + preferencesTableId: UUID + channelsTableId: UUID + deliveryLogTableId: UUID + ownerTableId: UUID + userSettingsTableId: UUID + organizationSettingsTableId: UUID + hasChannels: Boolean + hasPreferences: Boolean + hasSettingsExtension: Boolean + hasDigestMetadata: Boolean + hasSubscriptions: Boolean +} + +"""The output of our update `PermissionsModule` mutation.""" +type UpdatePermissionsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PermissionsModule` that was updated by this mutation.""" + permissionsModule: PermissionsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PermissionsModule`. May be used by Relay 1.""" + permissionsModuleEdge( + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PermissionsModuleEdge +} + +"""All input for the `updatePermissionsModule` mutation.""" +input UpdatePermissionsModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. """ - appIdPrefix: String + clientMutationId: String + id: UUID! - """URL to the Google Play Store listing""" - playStoreLink: ConstructiveInternalTypeUrl + """ + An object where the defined keys will be set on the `PermissionsModule` being updated. + """ + permissionsModulePatch: PermissionsModulePatch! +} - """Upload for App icon or promotional image""" - appImageUpload: Upload +""" +Represents an update to a `PermissionsModule`. Fields that are set will be updated. +""" +input PermissionsModulePatch { + id: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + bitlen: Int + membershipType: Int + entityTableId: UUID + actorTableId: UUID + prefix: String + getPaddedMask: String + getMask: String + getByMask: String + getMaskByName: String } -"""The output of our update `Site` mutation.""" -type UpdateSitePayload { +"""The output of our update `WebauthnCredential` mutation.""" +type UpdateWebauthnCredentialPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Site` that was updated by this mutation.""" - site: Site + """The `WebauthnCredential` that was updated by this mutation.""" + webauthnCredential: WebauthnCredential """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge + """An edge for our `WebauthnCredential`. May be used by Relay 1.""" + webauthnCredentialEdge( + """The method to use when ordering `WebauthnCredential`.""" + orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnCredentialEdge } -"""All input for the `updateSite` mutation.""" -input UpdateSiteInput { +"""All input for the `updateWebauthnCredential` mutation.""" +input UpdateWebauthnCredentialInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this site""" id: UUID! """ - An object where the defined keys will be set on the `Site` being updated. + An object where the defined keys will be set on the `WebauthnCredential` being updated. """ - sitePatch: SitePatch! + webauthnCredentialPatch: WebauthnCredentialPatch! } -"""Represents an update to a `Site`. Fields that are set will be updated.""" -input SitePatch { - """Unique identifier for this site""" +""" +Represents an update to a `WebauthnCredential`. Fields that are set will be updated. +""" +input WebauthnCredentialPatch { id: UUID + ownerId: UUID - """Reference to the metaschema database this site belongs to""" - databaseId: UUID - - """Display title for the site (max 120 characters)""" - title: String - - """Short description of the site (max 120 characters)""" - description: String + """ + Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. + """ + credentialId: String - """Open Graph image used for social media link previews""" - ogImage: ConstructiveInternalTypeImage + """COSE-encoded public key bytes from the authenticator attestation.""" + publicKey: Base64EncodedBinary - """Browser favicon attachment""" - favicon: ConstructiveInternalTypeAttachment + """ + Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. + """ + signCount: BigInt - """Apple touch icon for iOS home screen bookmarks""" - appleTouchIcon: ConstructiveInternalTypeImage + """ + Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. + """ + webauthnUserId: String - """Primary logo image for the site""" - logo: ConstructiveInternalTypeImage + """ + Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. + """ + transports: [String] - """PostgreSQL database name this site connects to""" - dbname: String + """ + Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. + """ + credentialDeviceType: String - """Upload for Open Graph image used for social media link previews""" - ogImageUpload: Upload + """ + Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. + """ + backupEligible: Boolean - """Upload for Browser favicon attachment""" - faviconUpload: Upload + """Current backup state; updated on each successful sign-in assertion.""" + backupState: Boolean - """Upload for Apple touch icon for iOS home screen bookmarks""" - appleTouchIconUpload: Upload + """ + User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. + """ + name: String - """Upload for Primary logo image for the site""" - logoUpload: Upload + """ + Timestamp of the most recent successful sign-in assertion using this credential. + """ + lastUsedAt: Datetime + createdAt: Datetime + updatedAt: Datetime } """The output of our update `PrimaryKeyConstraint` mutation.""" @@ -39577,202 +42671,6 @@ input PolicyPatch { updatedAt: Datetime } -"""The output of our update `NotificationsModule` mutation.""" -type UpdateNotificationsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `NotificationsModule` that was updated by this mutation.""" - notificationsModule: NotificationsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `NotificationsModule`. May be used by Relay 1.""" - notificationsModuleEdge( - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): NotificationsModuleEdge -} - -"""All input for the `updateNotificationsModule` mutation.""" -input UpdateNotificationsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `NotificationsModule` being updated. - """ - notificationsModulePatch: NotificationsModulePatch! -} - -""" -Represents an update to a `NotificationsModule`. Fields that are set will be updated. -""" -input NotificationsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - notificationsTableId: UUID - readStateTableId: UUID - preferencesTableId: UUID - channelsTableId: UUID - deliveryLogTableId: UUID - ownerTableId: UUID - userSettingsTableId: UUID - organizationSettingsTableId: UUID - hasChannels: Boolean - hasPreferences: Boolean - hasSettingsExtension: Boolean - hasDigestMetadata: Boolean - hasSubscriptions: Boolean -} - -"""The output of our update `PermissionsModule` mutation.""" -type UpdatePermissionsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `PermissionsModule` that was updated by this mutation.""" - permissionsModule: PermissionsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `PermissionsModule`. May be used by Relay 1.""" - permissionsModuleEdge( - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): PermissionsModuleEdge -} - -"""All input for the `updatePermissionsModule` mutation.""" -input UpdatePermissionsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `PermissionsModule` being updated. - """ - permissionsModulePatch: PermissionsModulePatch! -} - -""" -Represents an update to a `PermissionsModule`. Fields that are set will be updated. -""" -input PermissionsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - bitlen: Int - membershipType: Int - entityTableId: UUID - actorTableId: UUID - prefix: String - getPaddedMask: String - getMask: String - getByMask: String - getMaskByName: String -} - -"""The output of our update `AppInvite` mutation.""" -type UpdateAppInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `AppInvite` that was updated by this mutation.""" - appInvite: AppInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge -} - -"""All input for the `updateAppInvite` mutation.""" -input UpdateAppInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `AppInvite` being updated. - """ - appInvitePatch: AppInvitePatch! -} - -""" -Represents an update to a `AppInvite`. Fields that are set will be updated. -""" -input AppInvitePatch { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - """The output of our update `EmbeddingChunk` mutation.""" type UpdateEmbeddingChunkPayload { """ @@ -39835,31 +42733,31 @@ input EmbeddingChunkPatch { updatedAt: Datetime } -"""The output of our update `Schema` mutation.""" -type UpdateSchemaPayload { +"""The output of our update `OrgInvite` mutation.""" +type UpdateOrgInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Schema` that was updated by this mutation.""" - schema: Schema + """The `OrgInvite` that was updated by this mutation.""" + orgInvite: OrgInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge + """An edge for our `OrgInvite`. May be used by Relay 1.""" + orgInviteEdge( + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgInviteEdge } -"""All input for the `updateSchema` mutation.""" -input UpdateSchemaInput { +"""All input for the `updateOrgInvite` mutation.""" +input UpdateOrgInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -39868,153 +42766,54 @@ input UpdateSchemaInput { id: UUID! """ - An object where the defined keys will be set on the `Schema` being updated. + An object where the defined keys will be set on the `OrgInvite` being updated. """ - schemaPatch: SchemaPatch! + orgInvitePatch: OrgInvitePatch! } """ -Represents an update to a `Schema`. Fields that are set will be updated. +Represents an update to a `OrgInvite`. Fields that are set will be updated. """ -input SchemaPatch { +input OrgInvitePatch { id: UUID - databaseId: UUID - name: String - schemaName: String - label: String - description: String - smartTags: JSON - category: ObjectCategory - module: String - scope: Int - tags: [String] - isPublic: Boolean - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `LimitsModule` mutation.""" -type UpdateLimitsModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `LimitsModule` that was updated by this mutation.""" - limitsModule: LimitsModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge -} + """Email address of the invited recipient""" + email: ConstructiveInternalTypeEmail -"""All input for the `updateLimitsModule` mutation.""" -input UpdateLimitsModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! + """User ID of the member who sent this invitation""" + senderId: UUID - """ - An object where the defined keys will be set on the `LimitsModule` being updated. - """ - limitsModulePatch: LimitsModulePatch! -} + """User ID of the intended recipient, if targeting a specific user""" + receiverId: UUID -""" -Represents an update to a `LimitsModule`. Fields that are set will be updated. -""" -input LimitsModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - defaultTableId: UUID - defaultTableName: String - limitIncrementFunction: String - limitDecrementFunction: String - limitIncrementTrigger: String - limitDecrementTrigger: String - limitUpdateTrigger: String - limitCheckFunction: String - prefix: String - membershipType: Int - entityTableId: UUID - actorTableId: UUID -} + """Unique random hex token used to redeem this invitation""" + inviteToken: String -"""The output of our update `ProfilesModule` mutation.""" -type UpdateProfilesModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String + """Whether this invitation is still valid and can be redeemed""" + inviteValid: Boolean - """The `ProfilesModule` that was updated by this mutation.""" - profilesModule: ProfilesModule + """Maximum number of times this invite can be claimed; -1 means unlimited""" + inviteLimit: Int - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query + """Running count of how many times this invite has been claimed""" + inviteCount: Int - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge -} + """Whether this invite can be claimed by multiple recipients""" + multiple: Boolean -"""All input for the `updateProfilesModule` mutation.""" -input UpdateProfilesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! + """Optional JSON payload of additional invite metadata""" + data: JSON """ - An object where the defined keys will be set on the `ProfilesModule` being updated. + Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. """ - profilesModulePatch: ProfilesModulePatch! -} + profileId: UUID -""" -Represents an update to a `ProfilesModule`. Fields that are set will be updated. -""" -input ProfilesModulePatch { - id: UUID - databaseId: UUID - schemaId: UUID - privateSchemaId: UUID - tableId: UUID - tableName: String - profilePermissionsTableId: UUID - profilePermissionsTableName: String - profileGrantsTableId: UUID - profileGrantsTableName: String - profileDefinitionGrantsTableId: UUID - profileDefinitionGrantsTableName: String - membershipType: Int - entityTableId: UUID - actorTableId: UUID - permissionsTableId: UUID - membershipsTableId: UUID - prefix: String + """Timestamp after which this invitation can no longer be redeemed""" + expiresAt: Datetime + createdAt: Datetime + updatedAt: Datetime + entityId: UUID } """The output of our update `AppMembership` mutation.""" @@ -40082,11 +42881,6 @@ input AppMembershipPatch { """ isActive: Boolean - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - """Whether the actor is the owner of this entity""" isOwner: Boolean @@ -40108,31 +42902,31 @@ input AppMembershipPatch { profileId: UUID } -"""The output of our update `Index` mutation.""" -type UpdateIndexPayload { +"""The output of our update `Schema` mutation.""" +type UpdateSchemaPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Index` that was updated by this mutation.""" - index: Index + """The `Schema` that was updated by this mutation.""" + schema: Schema """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge } -"""All input for the `updateIndex` mutation.""" -input UpdateIndexInput { +"""All input for the `updateSchema` mutation.""" +input UpdateSchemaInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -40141,61 +42935,56 @@ input UpdateIndexInput { id: UUID! """ - An object where the defined keys will be set on the `Index` being updated. + An object where the defined keys will be set on the `Schema` being updated. """ - indexPatch: IndexPatch! + schemaPatch: SchemaPatch! } """ -Represents an update to a `Index`. Fields that are set will be updated. +Represents an update to a `Schema`. Fields that are set will be updated. """ -input IndexPatch { +input SchemaPatch { id: UUID databaseId: UUID - tableId: UUID name: String - fieldIds: [UUID] - includeFieldIds: [UUID] - accessMethod: String - indexParams: JSON - whereClause: JSON - isUnique: Boolean - options: JSON - opClasses: [String] + schemaName: String + label: String + description: String smartTags: JSON category: ObjectCategory module: String scope: Int tags: [String] + isPublic: Boolean createdAt: Datetime updatedAt: Datetime } -"""The output of our update `WebauthnCredential` mutation.""" -type UpdateWebauthnCredentialPayload { +"""The output of our update `Index` mutation.""" +type UpdateIndexPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnCredential` that was updated by this mutation.""" - webauthnCredential: WebauthnCredential + """The `Index` that was updated by this mutation.""" + index: Index """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge } -"""All input for the `updateWebauthnCredential` mutation.""" -input UpdateWebauthnCredentialInput { +"""All input for the `updateIndex` mutation.""" +input UpdateIndexInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -40204,170 +42993,61 @@ input UpdateWebauthnCredentialInput { id: UUID! """ - An object where the defined keys will be set on the `WebauthnCredential` being updated. + An object where the defined keys will be set on the `Index` being updated. """ - webauthnCredentialPatch: WebauthnCredentialPatch! + indexPatch: IndexPatch! } """ -Represents an update to a `WebauthnCredential`. Fields that are set will be updated. +Represents an update to a `Index`. Fields that are set will be updated. """ -input WebauthnCredentialPatch { +input IndexPatch { id: UUID - ownerId: UUID - - """ - Base64url-encoded credential ID returned by the authenticator. Globally unique per WebAuthn spec. - """ - credentialId: String - - """COSE-encoded public key bytes from the authenticator attestation.""" - publicKey: Base64EncodedBinary - - """ - Monotonic signature counter. Strict-increase check during sign-in detects cloned credentials. 0 means the authenticator does not implement a counter. - """ - signCount: BigInt - - """ - Random per-user handle sent to authenticators as user.id. Privacy-preserving; NOT the internal user UUID. - """ - webauthnUserId: String - - """ - Authenticator transport hints (e.g. usb, nfc, ble, internal, hybrid). Used to hint browser UI during sign-in. - """ - transports: [String] - - """ - Either 'singleDevice' (hardware-bound) or 'multiDevice' (synced passkey). Enforced by CHECK constraint below. - """ - credentialDeviceType: String - - """ - Whether this credential is eligible for backup (syncing) per the authenticator's flags at registration. - """ - backupEligible: Boolean - - """Current backup state; updated on each successful sign-in assertion.""" - backupState: Boolean - - """ - User-provided label for this credential (e.g. "YubiKey 5C", "iPhone 15"). Renamed via rename_passkey. - """ + databaseId: UUID + tableId: UUID name: String - - """ - Timestamp of the most recent successful sign-in assertion using this credential. - """ - lastUsedAt: Datetime - createdAt: Datetime - updatedAt: Datetime -} - -"""The output of our update `OrgInvite` mutation.""" -type UpdateOrgInvitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `OrgInvite` that was updated by this mutation.""" - orgInvite: OrgInvite - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `OrgInvite`. May be used by Relay 1.""" - orgInviteEdge( - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgInviteEdge -} - -"""All input for the `updateOrgInvite` mutation.""" -input UpdateOrgInviteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - - """ - An object where the defined keys will be set on the `OrgInvite` being updated. - """ - orgInvitePatch: OrgInvitePatch! -} - -""" -Represents an update to a `OrgInvite`. Fields that are set will be updated. -""" -input OrgInvitePatch { - id: UUID - - """Email address of the invited recipient""" - email: ConstructiveInternalTypeEmail - - """User ID of the member who sent this invitation""" - senderId: UUID - - """User ID of the intended recipient, if targeting a specific user""" - receiverId: UUID - - """Unique random hex token used to redeem this invitation""" - inviteToken: String - - """Whether this invitation is still valid and can be redeemed""" - inviteValid: Boolean - - """Maximum number of times this invite can be claimed; -1 means unlimited""" - inviteLimit: Int - - """Running count of how many times this invite has been claimed""" - inviteCount: Int - - """Whether this invite can be claimed by multiple recipients""" - multiple: Boolean - - """Optional JSON payload of additional invite metadata""" - data: JSON - - """Timestamp after which this invitation can no longer be redeemed""" - expiresAt: Datetime + fieldIds: [UUID] + includeFieldIds: [UUID] + accessMethod: String + indexParams: JSON + whereClause: JSON + isUnique: Boolean + options: JSON + opClasses: [String] + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + tags: [String] createdAt: Datetime updatedAt: Datetime - entityId: UUID } -"""The output of our update `OrgMembership` mutation.""" -type UpdateOrgMembershipPayload { +"""The output of our update `LimitsModule` mutation.""" +type UpdateLimitsModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was updated by this mutation.""" - orgMembership: OrgMembership + """The `LimitsModule` that was updated by this mutation.""" + limitsModule: LimitsModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge } -"""All input for the `updateOrgMembership` mutation.""" -input UpdateOrgMembershipInput { +"""All input for the `updateLimitsModule` mutation.""" +input UpdateLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -40376,65 +43056,34 @@ input UpdateOrgMembershipInput { id: UUID! """ - An object where the defined keys will be set on the `OrgMembership` being updated. + An object where the defined keys will be set on the `LimitsModule` being updated. """ - orgMembershipPatch: OrgMembershipPatch! + limitsModulePatch: LimitsModulePatch! } """ -Represents an update to a `OrgMembership`. Fields that are set will be updated. +Represents an update to a `LimitsModule`. Fields that are set will be updated. """ -input OrgMembershipPatch { +input LimitsModulePatch { id: UUID - createdAt: Datetime - updatedAt: Datetime - createdBy: UUID - updatedBy: UUID - - """Whether this membership has been approved by an admin""" - isApproved: Boolean - - """Whether this member has been banned from the entity""" - isBanned: Boolean - - """Whether this membership is temporarily disabled""" - isDisabled: Boolean - - """ - Computed field indicating the membership is approved, verified, not banned, and not disabled - """ - isActive: Boolean - - """ - Whether this member is external (not a member of the parent scope). External members may have restricted permissions. - """ - isExternal: Boolean - - """Whether the actor is the owner of this entity""" - isOwner: Boolean - - """Whether the actor has admin privileges on this entity""" - isAdmin: Boolean - - """ - Aggregated permission bitmask combining profile-based and directly granted permissions - """ - permissions: BitString - - """ - Bitmask of permissions directly granted to this member (not from profiles) - """ - granted: BitString - - """References the user who holds this membership""" - actorId: UUID - - """References the entity (org or group) this membership belongs to""" - entityId: UUID - - """Whether this member has read-only access (blocks mutations when true)""" - isReadOnly: Boolean - profileId: UUID + databaseId: UUID + schemaId: UUID + privateSchemaId: UUID + tableId: UUID + tableName: String + defaultTableId: UUID + defaultTableName: String + limitIncrementFunction: String + limitDecrementFunction: String + limitIncrementTrigger: String + limitDecrementTrigger: String + limitUpdateTrigger: String + limitCheckFunction: String + aggregateTableId: UUID + prefix: String + membershipType: Int + entityTableId: UUID + actorTableId: UUID } """The output of our update `BlueprintTemplate` mutation.""" @@ -40632,31 +43281,31 @@ input HierarchyModulePatch { createdAt: Datetime } -"""The output of our update `ForeignKeyConstraint` mutation.""" -type UpdateForeignKeyConstraintPayload { +"""The output of our update `ProfilesModule` mutation.""" +type UpdateProfilesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ForeignKeyConstraint` that was updated by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint + """The `ProfilesModule` that was updated by this mutation.""" + profilesModule: ProfilesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge } -"""All input for the `updateForeignKeyConstraint` mutation.""" -input UpdateForeignKeyConstraintInput { +"""All input for the `updateProfilesModule` mutation.""" +input UpdateProfilesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -40665,60 +43314,156 @@ input UpdateForeignKeyConstraintInput { id: UUID! """ - An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. + An object where the defined keys will be set on the `ProfilesModule` being updated. """ - foreignKeyConstraintPatch: ForeignKeyConstraintPatch! + profilesModulePatch: ProfilesModulePatch! } """ -Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. +Represents an update to a `ProfilesModule`. Fields that are set will be updated. """ -input ForeignKeyConstraintPatch { +input ProfilesModulePatch { id: UUID databaseId: UUID + schemaId: UUID + privateSchemaId: UUID tableId: UUID - name: String - description: String - smartTags: JSON - type: String - fieldIds: [UUID] - refTableId: UUID - refFieldIds: [UUID] - deleteAction: String - updateAction: String - category: ObjectCategory - module: String - scope: Int - tags: [String] + tableName: String + profilePermissionsTableId: UUID + profilePermissionsTableName: String + profileGrantsTableId: UUID + profileGrantsTableName: String + profileDefinitionGrantsTableId: UUID + profileDefinitionGrantsTableName: String + profileTemplatesTableId: UUID + profileTemplatesTableName: String + membershipType: Int + entityTableId: UUID + actorTableId: UUID + permissionsTableId: UUID + membershipsTableId: UUID + prefix: String +} + +"""The output of our update `OrgMembership` mutation.""" +type UpdateOrgMembershipPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgMembership` that was updated by this mutation.""" + orgMembership: OrgMembership + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge +} + +"""All input for the `updateOrgMembership` mutation.""" +input UpdateOrgMembershipInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `OrgMembership` being updated. + """ + orgMembershipPatch: OrgMembershipPatch! +} + +""" +Represents an update to a `OrgMembership`. Fields that are set will be updated. +""" +input OrgMembershipPatch { + id: UUID createdAt: Datetime updatedAt: Datetime + createdBy: UUID + updatedBy: UUID + + """Whether this membership has been approved by an admin""" + isApproved: Boolean + + """Whether this member has been banned from the entity""" + isBanned: Boolean + + """Whether this membership is temporarily disabled""" + isDisabled: Boolean + + """ + Computed field indicating the membership is approved, verified, not banned, and not disabled + """ + isActive: Boolean + + """ + Whether this member is external (not a member of the parent scope). External members may have restricted permissions. + """ + isExternal: Boolean + + """Whether the actor is the owner of this entity""" + isOwner: Boolean + + """Whether the actor has admin privileges on this entity""" + isAdmin: Boolean + + """ + Aggregated permission bitmask combining profile-based and directly granted permissions + """ + permissions: BitString + + """ + Bitmask of permissions directly granted to this member (not from profiles) + """ + granted: BitString + + """References the user who holds this membership""" + actorId: UUID + + """References the entity (org or group) this membership belongs to""" + entityId: UUID + + """Whether this member has read-only access (blocks mutations when true)""" + isReadOnly: Boolean + profileId: UUID } -"""The output of our update `Table` mutation.""" -type UpdateTablePayload { +"""The output of our update `ForeignKeyConstraint` mutation.""" +type UpdateForeignKeyConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Table` that was updated by this mutation.""" - table: Table + """The `ForeignKeyConstraint` that was updated by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge } -"""All input for the `updateTable` mutation.""" -input UpdateTableInput { +"""All input for the `updateForeignKeyConstraint` mutation.""" +input UpdateForeignKeyConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -40727,32 +43472,31 @@ input UpdateTableInput { id: UUID! """ - An object where the defined keys will be set on the `Table` being updated. + An object where the defined keys will be set on the `ForeignKeyConstraint` being updated. """ - tablePatch: TablePatch! + foreignKeyConstraintPatch: ForeignKeyConstraintPatch! } """ -Represents an update to a `Table`. Fields that are set will be updated. +Represents an update to a `ForeignKeyConstraint`. Fields that are set will be updated. """ -input TablePatch { +input ForeignKeyConstraintPatch { id: UUID databaseId: UUID - schemaId: UUID + tableId: UUID name: String - label: String description: String smartTags: JSON + type: String + fieldIds: [UUID] + refTableId: UUID + refFieldIds: [UUID] + deleteAction: String + updateAction: String category: ObjectCategory module: String scope: Int - useRls: Boolean - timestamps: Boolean - peoplestamps: Boolean - pluralName: String - singularName: String tags: [String] - inheritsId: UUID createdAt: Datetime updatedAt: Datetime } @@ -40805,10 +43549,8 @@ input StorageModulePatch { privateSchemaId: UUID bucketsTableId: UUID filesTableId: UUID - uploadRequestsTableId: UUID bucketsTableName: String filesTableName: String - uploadRequestsTableName: String membershipType: Int policies: JSON skipDefaultPolicyTables: [String] @@ -40817,6 +43559,7 @@ input StorageModulePatch { publicUrlPrefix: String provider: String allowedOrigins: [String] + restrictReads: Boolean uploadUrlExpirySeconds: Int downloadUrlExpirySeconds: Int defaultMaxFileSize: BigInt @@ -40824,6 +43567,69 @@ input StorageModulePatch { cacheTtlSeconds: Int } +"""The output of our update `Table` mutation.""" +type UpdateTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was updated by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `updateTable` mutation.""" +input UpdateTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! + + """ + An object where the defined keys will be set on the `Table` being updated. + """ + tablePatch: TablePatch! +} + +""" +Represents an update to a `Table`. Fields that are set will be updated. +""" +input TablePatch { + id: UUID + databaseId: UUID + schemaId: UUID + name: String + label: String + description: String + smartTags: JSON + category: ObjectCategory + module: String + scope: Int + useRls: Boolean + timestamps: Boolean + peoplestamps: Boolean + pluralName: String + singularName: String + tags: [String] + inheritsId: UUID + createdAt: Datetime + updatedAt: Datetime +} + """The output of our update `EntityTypeProvision` mutation.""" type UpdateEntityTypeProvisionPayload { """ @@ -40943,7 +43749,7 @@ input EntityTypeProvisionPatch { """ Whether to provision storage_module for this type. Defaults to false. - When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + When true, creates {prefix}_buckets and {prefix}_files tables with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. Storage tables get owner_id FK to the entity table, so files are owned by the entity. """ @@ -40978,7 +43784,7 @@ input EntityTypeProvisionPatch { - allowed_origins (text[]) per-bucket CORS override - provisions (jsonb object) optional: customize storage tables with additional nodes, fields, grants, and policies. - Keyed by table role: "files", "buckets", "upload_requests". + Keyed by table role: "files", "buckets". Each value uses the same shape as table_provision: { nodes, fields, grants, use_rls, policies }. Fanned out to secure_table_provision targeting the corresponding table. @@ -41619,6 +44425,39 @@ input DeleteDefaultIdsModuleInput { id: UUID! } +"""The output of our delete `RoleType` mutation.""" +type DeleteRoleTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `RoleType` that was deleted by this mutation.""" + roleType: RoleType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `RoleType`. May be used by Relay 1.""" + roleTypeEdge( + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): RoleTypeEdge +} + +"""All input for the `deleteRoleType` mutation.""" +input DeleteRoleTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: Int! +} + """The output of our delete `ViewTable` mutation.""" type DeleteViewTablePayload { """ @@ -41687,41 +44526,6 @@ input DeleteApiSchemaInput { id: UUID! } -"""The output of our delete `SiteTheme` mutation.""" -type DeleteSiteThemePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteTheme` that was deleted by this mutation.""" - siteTheme: SiteTheme - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteTheme`. May be used by Relay 1.""" - siteThemeEdge( - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteThemeEdge -} - -"""All input for the `deleteSiteTheme` mutation.""" -input DeleteSiteThemeInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this theme record""" - id: UUID! -} - """The output of our delete `OrgMember` mutation.""" type DeleteOrgMemberPayload { """ @@ -41755,36 +44559,38 @@ input DeleteOrgMemberInput { id: UUID! } -"""The output of our delete `AppPermissionDefault` mutation.""" -type DeleteAppPermissionDefaultPayload { +"""The output of our delete `SiteTheme` mutation.""" +type DeleteSiteThemePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermissionDefault` that was deleted by this mutation.""" - appPermissionDefault: AppPermissionDefault + """The `SiteTheme` that was deleted by this mutation.""" + siteTheme: SiteTheme """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" - appPermissionDefaultEdge( - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultEdge + """An edge for our `SiteTheme`. May be used by Relay 1.""" + siteThemeEdge( + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteThemeEdge } -"""All input for the `deleteAppPermissionDefault` mutation.""" -input DeleteAppPermissionDefaultInput { +"""All input for the `deleteSiteTheme` mutation.""" +input DeleteSiteThemeInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this theme record""" id: UUID! } @@ -41859,76 +44665,6 @@ input DeleteStoreInput { id: UUID! } -"""The output of our delete `ApiModule` mutation.""" -type DeleteApiModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `ApiModule` that was deleted by this mutation.""" - apiModule: ApiModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `ApiModule`. May be used by Relay 1.""" - apiModuleEdge( - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ApiModuleEdge -} - -"""All input for the `deleteApiModule` mutation.""" -input DeleteApiModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this API module record""" - id: UUID! -} - -"""The output of our delete `SiteModule` mutation.""" -type DeleteSiteModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `SiteModule` that was deleted by this mutation.""" - siteModule: SiteModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `SiteModule`. May be used by Relay 1.""" - siteModuleEdge( - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteModuleEdge -} - -"""All input for the `deleteSiteModule` mutation.""" -input DeleteSiteModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this site module record""" - id: UUID! -} - """The output of our delete `EncryptedSecretsModule` mutation.""" type DeleteEncryptedSecretsModulePayload { """ @@ -42028,69 +44764,106 @@ input DeleteSecretsModuleInput { id: UUID! } -"""The output of our delete `RoleType` mutation.""" -type DeleteRoleTypePayload { +"""The output of our delete `AppPermissionDefault` mutation.""" +type DeleteAppPermissionDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `RoleType` that was deleted by this mutation.""" - roleType: RoleType + """The `AppPermissionDefault` that was deleted by this mutation.""" + appPermissionDefault: AppPermissionDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `RoleType`. May be used by Relay 1.""" - roleTypeEdge( - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): RoleTypeEdge + """An edge for our `AppPermissionDefault`. May be used by Relay 1.""" + appPermissionDefaultEdge( + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultEdge } -"""All input for the `deleteRoleType` mutation.""" -input DeleteRoleTypeInput { +"""All input for the `deleteAppPermissionDefault` mutation.""" +input DeleteAppPermissionDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: Int! + id: UUID! } -"""The output of our delete `OrgPermissionDefault` mutation.""" -type DeleteOrgPermissionDefaultPayload { +"""The output of our delete `ApiModule` mutation.""" +type DeleteApiModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermissionDefault` that was deleted by this mutation.""" - orgPermissionDefault: OrgPermissionDefault + """The `ApiModule` that was deleted by this mutation.""" + apiModule: ApiModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" - orgPermissionDefaultEdge( - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultEdge + """An edge for our `ApiModule`. May be used by Relay 1.""" + apiModuleEdge( + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ApiModuleEdge } -"""All input for the `deleteOrgPermissionDefault` mutation.""" -input DeleteOrgPermissionDefaultInput { +"""All input for the `deleteApiModule` mutation.""" +input DeleteApiModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this API module record""" + id: UUID! +} + +"""The output of our delete `SiteModule` mutation.""" +type DeleteSiteModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SiteModule` that was deleted by this mutation.""" + siteModule: SiteModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SiteModule`. May be used by Relay 1.""" + siteModuleEdge( + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteModuleEdge +} + +"""All input for the `deleteSiteModule` mutation.""" +input DeleteSiteModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this site module record""" id: UUID! } @@ -42325,31 +45098,31 @@ input DeleteAppOwnerGrantInput { id: UUID! } -"""The output of our delete `AppLimitDefault` mutation.""" -type DeleteAppLimitDefaultPayload { +"""The output of our delete `AppAchievement` mutation.""" +type DeleteAppAchievementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimitDefault` that was deleted by this mutation.""" - appLimitDefault: AppLimitDefault + """The `AppAchievement` that was deleted by this mutation.""" + appAchievement: AppAchievement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimitDefault`. May be used by Relay 1.""" - appLimitDefaultEdge( - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitDefaultEdge + """An edge for our `AppAchievement`. May be used by Relay 1.""" + appAchievementEdge( + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppAchievementEdge } -"""All input for the `deleteAppLimitDefault` mutation.""" -input DeleteAppLimitDefaultInput { +"""All input for the `deleteAppAchievement` mutation.""" +input DeleteAppAchievementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -42358,31 +45131,31 @@ input DeleteAppLimitDefaultInput { id: UUID! } -"""The output of our delete `OrgLimitDefault` mutation.""" -type DeleteOrgLimitDefaultPayload { +"""The output of our delete `AppStep` mutation.""" +type DeleteAppStepPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimitDefault` that was deleted by this mutation.""" - orgLimitDefault: OrgLimitDefault + """The `AppStep` that was deleted by this mutation.""" + appStep: AppStep """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" - orgLimitDefaultEdge( - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultEdge + """An edge for our `AppStep`. May be used by Relay 1.""" + appStepEdge( + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppStepEdge } -"""All input for the `deleteOrgLimitDefault` mutation.""" -input DeleteOrgLimitDefaultInput { +"""All input for the `deleteAppStep` mutation.""" +input DeleteAppStepInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -42391,6 +45164,142 @@ input DeleteOrgLimitDefaultInput { id: UUID! } +"""The output of our delete `OrgPermissionDefault` mutation.""" +type DeleteOrgPermissionDefaultPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermissionDefault` that was deleted by this mutation.""" + orgPermissionDefault: OrgPermissionDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermissionDefault`. May be used by Relay 1.""" + orgPermissionDefaultEdge( + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultEdge +} + +"""All input for the `deleteOrgPermissionDefault` mutation.""" +input DeleteOrgPermissionDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AppPermission` mutation.""" +type DeleteAppPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AppPermission` that was deleted by this mutation.""" + appPermission: AppPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AppPermission`. May be used by Relay 1.""" + appPermissionEdge( + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppPermissionEdge +} + +"""All input for the `deleteAppPermission` mutation.""" +input DeleteAppPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgPermission` mutation.""" +type DeleteOrgPermissionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgPermission` that was deleted by this mutation.""" + orgPermission: OrgPermission + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgPermission`. May be used by Relay 1.""" + orgPermissionEdge( + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgPermissionEdge +} + +"""All input for the `deleteOrgPermission` mutation.""" +input DeleteOrgPermissionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `MembershipType` mutation.""" +type DeleteMembershipTypePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `MembershipType` that was deleted by this mutation.""" + membershipType: MembershipType + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `MembershipType`. May be used by Relay 1.""" + membershipTypeEdge( + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] + ): MembershipTypeEdge +} + +"""All input for the `deleteMembershipType` mutation.""" +input DeleteMembershipTypeInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """ + Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + """ + id: Int! +} + """The output of our delete `DefaultPrivilege` mutation.""" type DeleteDefaultPrivilegePayload { """ @@ -42756,164 +45665,64 @@ input DeleteOrgOwnerGrantInput { id: UUID! } -"""The output of our delete `Object` mutation.""" -type DeleteObjectPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Object` that was deleted by this mutation.""" - object: Object - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Object`. May be used by Relay 1.""" - objectEdge( - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] - ): ObjectEdge -} - -"""All input for the `deleteObject` mutation.""" -input DeleteObjectInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! - databaseId: UUID! -} - -"""The output of our delete `Database` mutation.""" -type DeleteDatabasePayload { +"""The output of our delete `NodeTypeRegistry` mutation.""" +type DeleteNodeTypeRegistryPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Database` that was deleted by this mutation.""" - database: Database + """The `NodeTypeRegistry` that was deleted by this mutation.""" + nodeTypeRegistry: NodeTypeRegistry """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Database`. May be used by Relay 1.""" - databaseEdge( - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseEdge + """An edge for our `NodeTypeRegistry`. May be used by Relay 1.""" + nodeTypeRegistryEdge( + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!]! = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryEdge } -"""All input for the `deleteDatabase` mutation.""" -input DeleteDatabaseInput { +"""All input for the `deleteNodeTypeRegistry` mutation.""" +input DeleteNodeTypeRegistryInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} - -"""The output of our delete `CryptoAddressesModule` mutation.""" -type DeleteCryptoAddressesModulePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CryptoAddressesModule` that was deleted by this mutation.""" - cryptoAddressesModule: CryptoAddressesModule - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" - cryptoAddressesModuleEdge( - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleEdge -} - -"""All input for the `deleteCryptoAddressesModule` mutation.""" -input DeleteCryptoAddressesModuleInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `CryptoAddress` mutation.""" -type DeleteCryptoAddressPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `CryptoAddress` that was deleted by this mutation.""" - cryptoAddress: CryptoAddress - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `CryptoAddress`. May be used by Relay 1.""" - cryptoAddressEdge( - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] - ): CryptoAddressEdge -} - -"""All input for the `deleteCryptoAddress` mutation.""" -input DeleteCryptoAddressInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! + name: String! } -"""The output of our delete `AppPermission` mutation.""" -type DeleteAppPermissionPayload { +"""The output of our delete `AppLimitDefault` mutation.""" +type DeleteAppLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppPermission` that was deleted by this mutation.""" - appPermission: AppPermission + """The `AppLimitDefault` that was deleted by this mutation.""" + appLimitDefault: AppLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppPermission`. May be used by Relay 1.""" - appPermissionEdge( - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppPermissionEdge + """An edge for our `AppLimitDefault`. May be used by Relay 1.""" + appLimitDefaultEdge( + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitDefaultEdge } -"""All input for the `deleteAppPermission` mutation.""" -input DeleteAppPermissionInput { +"""All input for the `deleteAppLimitDefault` mutation.""" +input DeleteAppLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -42922,31 +45731,31 @@ input DeleteAppPermissionInput { id: UUID! } -"""The output of our delete `OrgPermission` mutation.""" -type DeleteOrgPermissionPayload { +"""The output of our delete `OrgLimitDefault` mutation.""" +type DeleteOrgLimitDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgPermission` that was deleted by this mutation.""" - orgPermission: OrgPermission + """The `OrgLimitDefault` that was deleted by this mutation.""" + orgLimitDefault: OrgLimitDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgPermission`. May be used by Relay 1.""" - orgPermissionEdge( - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgPermissionEdge + """An edge for our `OrgLimitDefault`. May be used by Relay 1.""" + orgLimitDefaultEdge( + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultEdge } -"""All input for the `deleteOrgPermission` mutation.""" -input DeleteOrgPermissionInput { +"""All input for the `deleteOrgLimitDefault` mutation.""" +input DeleteOrgLimitDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -42955,31 +45764,31 @@ input DeleteOrgPermissionInput { id: UUID! } -"""The output of our delete `AppLimit` mutation.""" -type DeleteAppLimitPayload { +"""The output of our delete `Database` mutation.""" +type DeleteDatabasePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLimit` that was deleted by this mutation.""" - appLimit: AppLimit + """The `Database` that was deleted by this mutation.""" + database: Database """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLimit`. May be used by Relay 1.""" - appLimitEdge( - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLimitEdge + """An edge for our `Database`. May be used by Relay 1.""" + databaseEdge( + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseEdge } -"""All input for the `deleteAppLimit` mutation.""" -input DeleteAppLimitInput { +"""All input for the `deleteDatabase` mutation.""" +input DeleteDatabaseInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -42987,32 +45796,32 @@ input DeleteAppLimitInput { clientMutationId: String id: UUID! } - -"""The output of our delete `AppAchievement` mutation.""" -type DeleteAppAchievementPayload { + +"""The output of our delete `CryptoAddressesModule` mutation.""" +type DeleteCryptoAddressesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppAchievement` that was deleted by this mutation.""" - appAchievement: AppAchievement + """The `CryptoAddressesModule` that was deleted by this mutation.""" + cryptoAddressesModule: CryptoAddressesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppAchievement`. May be used by Relay 1.""" - appAchievementEdge( - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppAchievementEdge + """An edge for our `CryptoAddressesModule`. May be used by Relay 1.""" + cryptoAddressesModuleEdge( + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleEdge } -"""All input for the `deleteAppAchievement` mutation.""" -input DeleteAppAchievementInput { +"""All input for the `deleteCryptoAddressesModule` mutation.""" +input DeleteCryptoAddressesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43021,31 +45830,31 @@ input DeleteAppAchievementInput { id: UUID! } -"""The output of our delete `AppStep` mutation.""" -type DeleteAppStepPayload { +"""The output of our delete `CryptoAddress` mutation.""" +type DeleteCryptoAddressPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppStep` that was deleted by this mutation.""" - appStep: AppStep + """The `CryptoAddress` that was deleted by this mutation.""" + cryptoAddress: CryptoAddress """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppStep`. May be used by Relay 1.""" - appStepEdge( - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppStepEdge + """An edge for our `CryptoAddress`. May be used by Relay 1.""" + cryptoAddressEdge( + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!]! = [PRIMARY_KEY_ASC] + ): CryptoAddressEdge } -"""All input for the `deleteAppStep` mutation.""" -input DeleteAppStepInput { +"""All input for the `deleteCryptoAddress` mutation.""" +input DeleteCryptoAddressInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43054,132 +45863,133 @@ input DeleteAppStepInput { id: UUID! } -"""The output of our delete `SiteMetadatum` mutation.""" -type DeleteSiteMetadatumPayload { +"""The output of our delete `AgentMessage` mutation.""" +type DeleteAgentMessagePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SiteMetadatum` that was deleted by this mutation.""" - siteMetadatum: SiteMetadatum + """The `AgentMessage` that was deleted by this mutation.""" + agentMessage: AgentMessage """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SiteMetadatum`. May be used by Relay 1.""" - siteMetadatumEdge( - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteMetadatumEdge + """An edge for our `AgentMessage`. May be used by Relay 1.""" + agentMessageEdge( + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentMessageEdge } -"""All input for the `deleteSiteMetadatum` mutation.""" -input DeleteSiteMetadatumInput { +"""All input for the `deleteAgentMessage` mutation.""" +input DeleteAgentMessageInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this metadata record""" id: UUID! } -"""The output of our delete `AppClaimedInvite` mutation.""" -type DeleteAppClaimedInvitePayload { +"""The output of our delete `Object` mutation.""" +type DeleteObjectPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppClaimedInvite` that was deleted by this mutation.""" - appClaimedInvite: AppClaimedInvite + """The `Object` that was deleted by this mutation.""" + object: Object """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" - appClaimedInviteEdge( - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppClaimedInviteEdge + """An edge for our `Object`. May be used by Relay 1.""" + objectEdge( + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!]! = [PRIMARY_KEY_ASC] + ): ObjectEdge } -"""All input for the `deleteAppClaimedInvite` mutation.""" -input DeleteAppClaimedInviteInput { +"""All input for the `deleteObject` mutation.""" +input DeleteObjectInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String id: UUID! + databaseId: UUID! } -"""The output of our delete `AppMembershipDefault` mutation.""" -type DeleteAppMembershipDefaultPayload { +"""The output of our delete `SiteMetadatum` mutation.""" +type DeleteSiteMetadatumPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembershipDefault` that was deleted by this mutation.""" - appMembershipDefault: AppMembershipDefault + """The `SiteMetadatum` that was deleted by this mutation.""" + siteMetadatum: SiteMetadatum """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" - appMembershipDefaultEdge( - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultEdge + """An edge for our `SiteMetadatum`. May be used by Relay 1.""" + siteMetadatumEdge( + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteMetadatumEdge } -"""All input for the `deleteAppMembershipDefault` mutation.""" -input DeleteAppMembershipDefaultInput { +"""All input for the `deleteSiteMetadatum` mutation.""" +input DeleteSiteMetadatumInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + + """Unique identifier for this metadata record""" id: UUID! } -"""The output of our delete `OrgMembershipDefault` mutation.""" -type DeleteOrgMembershipDefaultPayload { +"""The output of our delete `AppLevelRequirement` mutation.""" +type DeleteAppLevelRequirementPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipDefault` that was deleted by this mutation.""" - orgMembershipDefault: OrgMembershipDefault + """The `AppLevelRequirement` that was deleted by this mutation.""" + appLevelRequirement: AppLevelRequirement """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" - orgMembershipDefaultEdge( - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultEdge + """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" + appLevelRequirementEdge( + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelRequirementEdge } -"""All input for the `deleteOrgMembershipDefault` mutation.""" -input DeleteOrgMembershipDefaultInput { +"""All input for the `deleteAppLevelRequirement` mutation.""" +input DeleteAppLevelRequirementInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43391,31 +46201,31 @@ input DeletePhoneNumberInput { id: UUID! } -"""The output of our delete `OrgLimit` mutation.""" -type DeleteOrgLimitPayload { +"""The output of our delete `AppClaimedInvite` mutation.""" +type DeleteAppClaimedInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgLimit` that was deleted by this mutation.""" - orgLimit: OrgLimit + """The `AppClaimedInvite` that was deleted by this mutation.""" + appClaimedInvite: AppClaimedInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgLimit`. May be used by Relay 1.""" - orgLimitEdge( - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgLimitEdge + """An edge for our `AppClaimedInvite`. May be used by Relay 1.""" + appClaimedInviteEdge( + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppClaimedInviteEdge } -"""All input for the `deleteOrgLimit` mutation.""" -input DeleteOrgLimitInput { +"""All input for the `deleteAppClaimedInvite` mutation.""" +input DeleteAppClaimedInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43424,41 +46234,103 @@ input DeleteOrgLimitInput { id: UUID! } -"""The output of our delete `MembershipType` mutation.""" -type DeleteMembershipTypePayload { +"""The output of our delete `AppMembershipDefault` mutation.""" +type DeleteAppMembershipDefaultPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `MembershipType` that was deleted by this mutation.""" - membershipType: MembershipType + """The `AppMembershipDefault` that was deleted by this mutation.""" + appMembershipDefault: AppMembershipDefault """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `MembershipType`. May be used by Relay 1.""" - membershipTypeEdge( - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!]! = [PRIMARY_KEY_ASC] - ): MembershipTypeEdge + """An edge for our `AppMembershipDefault`. May be used by Relay 1.""" + appMembershipDefaultEdge( + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultEdge } -"""All input for the `deleteMembershipType` mutation.""" -input DeleteMembershipTypeInput { +"""All input for the `deleteAppMembershipDefault` mutation.""" +input DeleteAppMembershipDefaultInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String + id: UUID! +} +"""The output of our delete `OrgMembershipDefault` mutation.""" +type DeleteOrgMembershipDefaultPayload { """ - Integer identifier for the membership type (1=App, 2=Organization, 3=Group) + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. """ - id: Int! + clientMutationId: String + + """The `OrgMembershipDefault` that was deleted by this mutation.""" + orgMembershipDefault: OrgMembershipDefault + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgMembershipDefault`. May be used by Relay 1.""" + orgMembershipDefaultEdge( + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultEdge +} + +"""All input for the `deleteOrgMembershipDefault` mutation.""" +input DeleteOrgMembershipDefaultInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AuditLog` mutation.""" +type DeleteAuditLogPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AuditLog` that was deleted by this mutation.""" + auditLog: AuditLog + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AuditLog`. May be used by Relay 1.""" + auditLogEdge( + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] + ): AuditLogEdge +} + +"""All input for the `deleteAuditLog` mutation.""" +input DeleteAuditLogInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! } """The output of our delete `Domain` mutation.""" @@ -43496,6 +46368,105 @@ input DeleteDomainInput { id: UUID! } +"""The output of our delete `AgentTask` mutation.""" +type DeleteAgentTaskPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentTask` that was deleted by this mutation.""" + agentTask: AgentTask + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentTask`. May be used by Relay 1.""" + agentTaskEdge( + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentTaskEdge +} + +"""All input for the `deleteAgentTask` mutation.""" +input DeleteAgentTaskInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `AgentThread` mutation.""" +type DeleteAgentThreadPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `AgentThread` that was deleted by this mutation.""" + agentThread: AgentThread + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `AgentThread`. May be used by Relay 1.""" + agentThreadEdge( + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!]! = [PRIMARY_KEY_ASC] + ): AgentThreadEdge +} + +"""All input for the `deleteAgentThread` mutation.""" +input DeleteAgentThreadInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Email` mutation.""" +type DeleteEmailPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Email` that was deleted by this mutation.""" + email: Email + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Email`. May be used by Relay 1.""" + emailEdge( + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmailEdge +} + +"""All input for the `deleteEmail` mutation.""" +input DeleteEmailInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `AppGrant` mutation.""" type DeleteAppGrantPayload { """ @@ -43595,31 +46566,64 @@ input DeleteOrgChartEdgeInput { id: UUID! } -"""The output of our delete `OrgGrant` mutation.""" -type DeleteOrgGrantPayload { +"""The output of our delete `AppLimit` mutation.""" +type DeleteAppLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgGrant` that was deleted by this mutation.""" - orgGrant: OrgGrant + """The `AppLimit` that was deleted by this mutation.""" + appLimit: AppLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgGrant`. May be used by Relay 1.""" - orgGrantEdge( - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgGrantEdge + """An edge for our `AppLimit`. May be used by Relay 1.""" + appLimitEdge( + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLimitEdge } -"""All input for the `deleteOrgGrant` mutation.""" -input DeleteOrgGrantInput { +"""All input for the `deleteAppLimit` mutation.""" +input DeleteAppLimitInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `OrgLimitAggregate` mutation.""" +type DeleteOrgLimitAggregatePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `OrgLimitAggregate` that was deleted by this mutation.""" + orgLimitAggregate: OrgLimitAggregate + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `OrgLimitAggregate`. May be used by Relay 1.""" + orgLimitAggregateEdge( + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateEdge +} + +"""All input for the `deleteOrgLimitAggregate` mutation.""" +input DeleteOrgLimitAggregateInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43663,6 +46667,39 @@ input DeleteBlueprintConstructionInput { id: UUID! } +"""The output of our delete `PlansModule` mutation.""" +type DeletePlansModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `PlansModule` that was deleted by this mutation.""" + plansModule: PlansModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `PlansModule`. May be used by Relay 1.""" + plansModuleEdge( + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): PlansModuleEdge +} + +"""All input for the `deletePlansModule` mutation.""" +input DeletePlansModuleInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `RlsModule` mutation.""" type DeleteRlsModulePayload { """ @@ -43729,31 +46766,31 @@ input DeleteSessionsModuleInput { id: UUID! } -"""The output of our delete `AppLevelRequirement` mutation.""" -type DeleteAppLevelRequirementPayload { +"""The output of our delete `OrgGrant` mutation.""" +type DeleteOrgGrantPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevelRequirement` that was deleted by this mutation.""" - appLevelRequirement: AppLevelRequirement + """The `OrgGrant` that was deleted by this mutation.""" + orgGrant: OrgGrant """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevelRequirement`. May be used by Relay 1.""" - appLevelRequirementEdge( - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelRequirementEdge + """An edge for our `OrgGrant`. May be used by Relay 1.""" + orgGrantEdge( + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgGrantEdge } -"""All input for the `deleteAppLevelRequirement` mutation.""" -input DeleteAppLevelRequirementInput { +"""All input for the `deleteOrgGrant` mutation.""" +input DeleteOrgGrantInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43762,31 +46799,31 @@ input DeleteAppLevelRequirementInput { id: UUID! } -"""The output of our delete `AuditLog` mutation.""" -type DeleteAuditLogPayload { +"""The output of our delete `AppLevel` mutation.""" +type DeleteAppLevelPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AuditLog` that was deleted by this mutation.""" - auditLog: AuditLog + """The `AppLevel` that was deleted by this mutation.""" + appLevel: AppLevel """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AuditLog`. May be used by Relay 1.""" - auditLogEdge( - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!]! = [PRIMARY_KEY_ASC] - ): AuditLogEdge + """An edge for our `AppLevel`. May be used by Relay 1.""" + appLevelEdge( + """The method to use when ordering `AppLevel`.""" + orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppLevelEdge } -"""All input for the `deleteAuditLog` mutation.""" -input DeleteAuditLogInput { +"""All input for the `deleteAppLevel` mutation.""" +input DeleteAppLevelInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43795,31 +46832,31 @@ input DeleteAuditLogInput { id: UUID! } -"""The output of our delete `AppLevel` mutation.""" -type DeleteAppLevelPayload { +"""The output of our delete `OrgLimit` mutation.""" +type DeleteOrgLimitPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppLevel` that was deleted by this mutation.""" - appLevel: AppLevel + """The `OrgLimit` that was deleted by this mutation.""" + orgLimit: OrgLimit """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppLevel`. May be used by Relay 1.""" - appLevelEdge( - """The method to use when ordering `AppLevel`.""" - orderBy: [AppLevelOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppLevelEdge + """An edge for our `OrgLimit`. May be used by Relay 1.""" + orgLimitEdge( + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgLimitEdge } -"""All input for the `deleteAppLevel` mutation.""" -input DeleteAppLevelInput { +"""All input for the `deleteOrgLimit` mutation.""" +input DeleteOrgLimitInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43863,97 +46900,31 @@ input DeleteBlueprintInput { id: UUID! } -"""The output of our delete `DenormalizedTableField` mutation.""" -type DeleteDenormalizedTableFieldPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `DenormalizedTableField` that was deleted by this mutation.""" - denormalizedTableField: DenormalizedTableField - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" - denormalizedTableFieldEdge( - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldEdge -} - -"""All input for the `deleteDenormalizedTableField` mutation.""" -input DeleteDenormalizedTableFieldInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `Email` mutation.""" -type DeleteEmailPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Email` that was deleted by this mutation.""" - email: Email - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Email`. May be used by Relay 1.""" - emailEdge( - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmailEdge -} - -"""All input for the `deleteEmail` mutation.""" -input DeleteEmailInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - id: UUID! -} - -"""The output of our delete `OrgMemberProfile` mutation.""" -type DeleteOrgMemberProfilePayload { +"""The output of our delete `DenormalizedTableField` mutation.""" +type DeleteDenormalizedTableFieldPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMemberProfile` that was deleted by this mutation.""" - orgMemberProfile: OrgMemberProfile + """The `DenormalizedTableField` that was deleted by this mutation.""" + denormalizedTableField: DenormalizedTableField """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" - orgMemberProfileEdge( - """The method to use when ordering `OrgMemberProfile`.""" - orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMemberProfileEdge + """An edge for our `DenormalizedTableField`. May be used by Relay 1.""" + denormalizedTableFieldEdge( + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!]! = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldEdge } -"""All input for the `deleteOrgMemberProfile` mutation.""" -input DeleteOrgMemberProfileInput { +"""All input for the `deleteDenormalizedTableField` mutation.""" +input DeleteDenormalizedTableFieldInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -43962,66 +46933,64 @@ input DeleteOrgMemberProfileInput { id: UUID! } -"""The output of our delete `SecureTableProvision` mutation.""" -type DeleteSecureTableProvisionPayload { +"""The output of our delete `OrgMemberProfile` mutation.""" +type DeleteOrgMemberProfilePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SecureTableProvision` that was deleted by this mutation.""" - secureTableProvision: SecureTableProvision + """The `OrgMemberProfile` that was deleted by this mutation.""" + orgMemberProfile: OrgMemberProfile """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SecureTableProvision`. May be used by Relay 1.""" - secureTableProvisionEdge( - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] - ): SecureTableProvisionEdge + """An edge for our `OrgMemberProfile`. May be used by Relay 1.""" + orgMemberProfileEdge( + """The method to use when ordering `OrgMemberProfile`.""" + orderBy: [OrgMemberProfileOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMemberProfileEdge } -"""All input for the `deleteSecureTableProvision` mutation.""" -input DeleteSecureTableProvisionInput { +"""All input for the `deleteOrgMemberProfile` mutation.""" +input DeleteOrgMemberProfileInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - - """Unique identifier for this provision row.""" id: UUID! } -"""The output of our delete `OrgMembershipSetting` mutation.""" -type DeleteOrgMembershipSettingPayload { +"""The output of our delete `DatabaseTransfer` mutation.""" +type DeleteDatabaseTransferPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembershipSetting` that was deleted by this mutation.""" - orgMembershipSetting: OrgMembershipSetting + """The `DatabaseTransfer` that was deleted by this mutation.""" + databaseTransfer: DatabaseTransfer """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" - orgMembershipSettingEdge( - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingEdge + """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" + databaseTransferEdge( + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] + ): DatabaseTransferEdge } -"""All input for the `deleteOrgMembershipSetting` mutation.""" -input DeleteOrgMembershipSettingInput { +"""All input for the `deleteDatabaseTransfer` mutation.""" +input DeleteDatabaseTransferInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44030,31 +46999,31 @@ input DeleteOrgMembershipSettingInput { id: UUID! } -"""The output of our delete `DatabaseTransfer` mutation.""" -type DeleteDatabaseTransferPayload { +"""The output of our delete `BillingModule` mutation.""" +type DeleteBillingModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `DatabaseTransfer` that was deleted by this mutation.""" - databaseTransfer: DatabaseTransfer + """The `BillingModule` that was deleted by this mutation.""" + billingModule: BillingModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `DatabaseTransfer`. May be used by Relay 1.""" - databaseTransferEdge( - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!]! = [PRIMARY_KEY_ASC] - ): DatabaseTransferEdge + """An edge for our `BillingModule`. May be used by Relay 1.""" + billingModuleEdge( + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): BillingModuleEdge } -"""All input for the `deleteDatabaseTransfer` mutation.""" -input DeleteDatabaseTransferInput { +"""All input for the `deleteBillingModule` mutation.""" +input DeleteBillingModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44162,6 +47131,41 @@ input DeleteInvitesModuleInput { id: UUID! } +"""The output of our delete `SecureTableProvision` mutation.""" +type DeleteSecureTableProvisionPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `SecureTableProvision` that was deleted by this mutation.""" + secureTableProvision: SecureTableProvision + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `SecureTableProvision`. May be used by Relay 1.""" + secureTableProvisionEdge( + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!]! = [PRIMARY_KEY_ASC] + ): SecureTableProvisionEdge +} + +"""All input for the `deleteSecureTableProvision` mutation.""" +input DeleteSecureTableProvisionInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + + """Unique identifier for this provision row.""" + id: UUID! +} + """The output of our delete `Enum` mutation.""" type DeleteEnumPayload { """ @@ -44294,101 +47298,31 @@ input DeleteWebauthnAuthModuleInput { id: UUID! } -"""The output of our delete `App` mutation.""" -type DeleteAppPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `App` that was deleted by this mutation.""" - app: App - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `App`. May be used by Relay 1.""" - appEdge( - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppEdge -} - -"""All input for the `deleteApp` mutation.""" -input DeleteAppInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this app""" - id: UUID! -} - -"""The output of our delete `Site` mutation.""" -type DeleteSitePayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Site` that was deleted by this mutation.""" - site: Site - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Site`. May be used by Relay 1.""" - siteEdge( - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] - ): SiteEdge -} - -"""All input for the `deleteSite` mutation.""" -input DeleteSiteInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String - - """Unique identifier for this site""" - id: UUID! -} - -"""The output of our delete `PrimaryKeyConstraint` mutation.""" -type DeletePrimaryKeyConstraintPayload { +"""The output of our delete `AppInvite` mutation.""" +type DeleteAppInvitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `PrimaryKeyConstraint` that was deleted by this mutation.""" - primaryKeyConstraint: PrimaryKeyConstraint + """The `AppInvite` that was deleted by this mutation.""" + appInvite: AppInvite """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" - primaryKeyConstraintEdge( - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintEdge + """An edge for our `AppInvite`. May be used by Relay 1.""" + appInviteEdge( + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppInviteEdge } -"""All input for the `deletePrimaryKeyConstraint` mutation.""" -input DeletePrimaryKeyConstraintInput { +"""All input for the `deleteAppInvite` mutation.""" +input DeleteAppInviteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44397,31 +47331,31 @@ input DeletePrimaryKeyConstraintInput { id: UUID! } -"""The output of our delete `Trigger` mutation.""" -type DeleteTriggerPayload { +"""The output of our delete `OrgMembershipSetting` mutation.""" +type DeleteOrgMembershipSettingPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Trigger` that was deleted by this mutation.""" - trigger: Trigger + """The `OrgMembershipSetting` that was deleted by this mutation.""" + orgMembershipSetting: OrgMembershipSetting """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Trigger`. May be used by Relay 1.""" - triggerEdge( - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] - ): TriggerEdge + """An edge for our `OrgMembershipSetting`. May be used by Relay 1.""" + orgMembershipSettingEdge( + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingEdge } -"""All input for the `deleteTrigger` mutation.""" -input DeleteTriggerInput { +"""All input for the `deleteOrgMembershipSetting` mutation.""" +input DeleteOrgMembershipSettingInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44430,135 +47364,73 @@ input DeleteTriggerInput { id: UUID! } -"""The output of our delete `CheckConstraint` mutation.""" -type DeleteCheckConstraintPayload { +"""The output of our delete `App` mutation.""" +type DeleteAppPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `CheckConstraint` that was deleted by this mutation.""" - checkConstraint: CheckConstraint + """The `App` that was deleted by this mutation.""" + app: App """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `CheckConstraint`. May be used by Relay 1.""" - checkConstraintEdge( - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): CheckConstraintEdge + """An edge for our `App`. May be used by Relay 1.""" + appEdge( + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppEdge } -"""All input for the `deleteCheckConstraint` mutation.""" -input DeleteCheckConstraintInput { +"""All input for the `deleteApp` mutation.""" +input DeleteAppInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} - -"""The output of our delete `UniqueConstraint` mutation.""" -type DeleteUniqueConstraintPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `UniqueConstraint` that was deleted by this mutation.""" - uniqueConstraint: UniqueConstraint - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `UniqueConstraint`. May be used by Relay 1.""" - uniqueConstraintEdge( - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): UniqueConstraintEdge -} -"""All input for the `deleteUniqueConstraint` mutation.""" -input DeleteUniqueConstraintInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Unique identifier for this app""" id: UUID! } -"""The output of our delete `SpatialRelation` mutation.""" -type DeleteSpatialRelationPayload { +"""The output of our delete `Site` mutation.""" +type DeleteSitePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `SpatialRelation` that was deleted by this mutation.""" - spatialRelation: SpatialRelation + """The `Site` that was deleted by this mutation.""" + site: Site """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `SpatialRelation`. May be used by Relay 1.""" - spatialRelationEdge( - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] - ): SpatialRelationEdge + """An edge for our `Site`. May be used by Relay 1.""" + siteEdge( + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!]! = [PRIMARY_KEY_ASC] + ): SiteEdge } -"""All input for the `deleteSpatialRelation` mutation.""" -input DeleteSpatialRelationInput { +"""All input for the `deleteSite` mutation.""" +input DeleteSiteInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. """ clientMutationId: String - id: UUID! -} - -"""The output of our delete `Policy` mutation.""" -type DeletePolicyPayload { - """ - The exact same `clientMutationId` that was provided in the mutation input, - unchanged and unused. May be used by a client to track mutations. - """ - clientMutationId: String - - """The `Policy` that was deleted by this mutation.""" - policy: Policy - - """ - Our root query field type. Allows us to run any query from our mutation payload. - """ - query: Query - - """An edge for our `Policy`. May be used by Relay 1.""" - policyEdge( - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] - ): PolicyEdge -} -"""All input for the `deletePolicy` mutation.""" -input DeletePolicyInput { - """ - An arbitrary string value with no semantic meaning. Will be included in the - payload verbatim. May be used to track mutations by the client. - """ - clientMutationId: String + """Unique identifier for this site""" id: UUID! } @@ -44628,31 +47500,31 @@ input DeletePermissionsModuleInput { id: UUID! } -"""The output of our delete `AppInvite` mutation.""" -type DeleteAppInvitePayload { +"""The output of our delete `WebauthnCredential` mutation.""" +type DeleteWebauthnCredentialPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppInvite` that was deleted by this mutation.""" - appInvite: AppInvite + """The `WebauthnCredential` that was deleted by this mutation.""" + webauthnCredential: WebauthnCredential """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppInvite`. May be used by Relay 1.""" - appInviteEdge( - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppInviteEdge + """An edge for our `WebauthnCredential`. May be used by Relay 1.""" + webauthnCredentialEdge( + """The method to use when ordering `WebauthnCredential`.""" + orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] + ): WebauthnCredentialEdge } -"""All input for the `deleteAppInvite` mutation.""" -input DeleteAppInviteInput { +"""All input for the `deleteWebauthnCredential` mutation.""" +input DeleteWebauthnCredentialInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44661,31 +47533,31 @@ input DeleteAppInviteInput { id: UUID! } -"""The output of our delete `EmbeddingChunk` mutation.""" -type DeleteEmbeddingChunkPayload { +"""The output of our delete `PrimaryKeyConstraint` mutation.""" +type DeletePrimaryKeyConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `EmbeddingChunk` that was deleted by this mutation.""" - embeddingChunk: EmbeddingChunk + """The `PrimaryKeyConstraint` that was deleted by this mutation.""" + primaryKeyConstraint: PrimaryKeyConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" - embeddingChunkEdge( - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] - ): EmbeddingChunkEdge + """An edge for our `PrimaryKeyConstraint`. May be used by Relay 1.""" + primaryKeyConstraintEdge( + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintEdge } -"""All input for the `deleteEmbeddingChunk` mutation.""" -input DeleteEmbeddingChunkInput { +"""All input for the `deletePrimaryKeyConstraint` mutation.""" +input DeletePrimaryKeyConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44694,31 +47566,31 @@ input DeleteEmbeddingChunkInput { id: UUID! } -"""The output of our delete `Schema` mutation.""" -type DeleteSchemaPayload { +"""The output of our delete `Trigger` mutation.""" +type DeleteTriggerPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Schema` that was deleted by this mutation.""" - schema: Schema + """The `Trigger` that was deleted by this mutation.""" + trigger: Trigger """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Schema`. May be used by Relay 1.""" - schemaEdge( - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] - ): SchemaEdge + """An edge for our `Trigger`. May be used by Relay 1.""" + triggerEdge( + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!]! = [PRIMARY_KEY_ASC] + ): TriggerEdge } -"""All input for the `deleteSchema` mutation.""" -input DeleteSchemaInput { +"""All input for the `deleteTrigger` mutation.""" +input DeleteTriggerInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44727,31 +47599,31 @@ input DeleteSchemaInput { id: UUID! } -"""The output of our delete `LimitsModule` mutation.""" -type DeleteLimitsModulePayload { +"""The output of our delete `CheckConstraint` mutation.""" +type DeleteCheckConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `LimitsModule` that was deleted by this mutation.""" - limitsModule: LimitsModule + """The `CheckConstraint` that was deleted by this mutation.""" + checkConstraint: CheckConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `LimitsModule`. May be used by Relay 1.""" - limitsModuleEdge( - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): LimitsModuleEdge + """An edge for our `CheckConstraint`. May be used by Relay 1.""" + checkConstraintEdge( + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): CheckConstraintEdge } -"""All input for the `deleteLimitsModule` mutation.""" -input DeleteLimitsModuleInput { +"""All input for the `deleteCheckConstraint` mutation.""" +input DeleteCheckConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44760,31 +47632,31 @@ input DeleteLimitsModuleInput { id: UUID! } -"""The output of our delete `ProfilesModule` mutation.""" -type DeleteProfilesModulePayload { +"""The output of our delete `UniqueConstraint` mutation.""" +type DeleteUniqueConstraintPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ProfilesModule` that was deleted by this mutation.""" - profilesModule: ProfilesModule + """The `UniqueConstraint` that was deleted by this mutation.""" + uniqueConstraint: UniqueConstraint """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ProfilesModule`. May be used by Relay 1.""" - profilesModuleEdge( - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] - ): ProfilesModuleEdge + """An edge for our `UniqueConstraint`. May be used by Relay 1.""" + uniqueConstraintEdge( + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): UniqueConstraintEdge } -"""All input for the `deleteProfilesModule` mutation.""" -input DeleteProfilesModuleInput { +"""All input for the `deleteUniqueConstraint` mutation.""" +input DeleteUniqueConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44793,31 +47665,31 @@ input DeleteProfilesModuleInput { id: UUID! } -"""The output of our delete `AppMembership` mutation.""" -type DeleteAppMembershipPayload { +"""The output of our delete `SpatialRelation` mutation.""" +type DeleteSpatialRelationPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `AppMembership` that was deleted by this mutation.""" - appMembership: AppMembership + """The `SpatialRelation` that was deleted by this mutation.""" + spatialRelation: SpatialRelation """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `AppMembership`. May be used by Relay 1.""" - appMembershipEdge( - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): AppMembershipEdge + """An edge for our `SpatialRelation`. May be used by Relay 1.""" + spatialRelationEdge( + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!]! = [PRIMARY_KEY_ASC] + ): SpatialRelationEdge } -"""All input for the `deleteAppMembership` mutation.""" -input DeleteAppMembershipInput { +"""All input for the `deleteSpatialRelation` mutation.""" +input DeleteSpatialRelationInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44826,31 +47698,31 @@ input DeleteAppMembershipInput { id: UUID! } -"""The output of our delete `Index` mutation.""" -type DeleteIndexPayload { +"""The output of our delete `Policy` mutation.""" +type DeletePolicyPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Index` that was deleted by this mutation.""" - index: Index + """The `Policy` that was deleted by this mutation.""" + policy: Policy """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Index`. May be used by Relay 1.""" - indexEdge( - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] - ): IndexEdge + """An edge for our `Policy`. May be used by Relay 1.""" + policyEdge( + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!]! = [PRIMARY_KEY_ASC] + ): PolicyEdge } -"""All input for the `deleteIndex` mutation.""" -input DeleteIndexInput { +"""All input for the `deletePolicy` mutation.""" +input DeletePolicyInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44859,31 +47731,31 @@ input DeleteIndexInput { id: UUID! } -"""The output of our delete `WebauthnCredential` mutation.""" -type DeleteWebauthnCredentialPayload { +"""The output of our delete `EmbeddingChunk` mutation.""" +type DeleteEmbeddingChunkPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `WebauthnCredential` that was deleted by this mutation.""" - webauthnCredential: WebauthnCredential + """The `EmbeddingChunk` that was deleted by this mutation.""" + embeddingChunk: EmbeddingChunk """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `WebauthnCredential`. May be used by Relay 1.""" - webauthnCredentialEdge( - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!]! = [PRIMARY_KEY_ASC] - ): WebauthnCredentialEdge + """An edge for our `EmbeddingChunk`. May be used by Relay 1.""" + embeddingChunkEdge( + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!]! = [PRIMARY_KEY_ASC] + ): EmbeddingChunkEdge } -"""All input for the `deleteWebauthnCredential` mutation.""" -input DeleteWebauthnCredentialInput { +"""All input for the `deleteEmbeddingChunk` mutation.""" +input DeleteEmbeddingChunkInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -44925,31 +47797,130 @@ input DeleteOrgInviteInput { id: UUID! } -"""The output of our delete `OrgMembership` mutation.""" -type DeleteOrgMembershipPayload { +"""The output of our delete `AppMembership` mutation.""" +type DeleteAppMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `OrgMembership` that was deleted by this mutation.""" - orgMembership: OrgMembership + """The `AppMembership` that was deleted by this mutation.""" + appMembership: AppMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `OrgMembership`. May be used by Relay 1.""" - orgMembershipEdge( - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] - ): OrgMembershipEdge + """An edge for our `AppMembership`. May be used by Relay 1.""" + appMembershipEdge( + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): AppMembershipEdge } -"""All input for the `deleteOrgMembership` mutation.""" -input DeleteOrgMembershipInput { +"""All input for the `deleteAppMembership` mutation.""" +input DeleteAppMembershipInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Schema` mutation.""" +type DeleteSchemaPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Schema` that was deleted by this mutation.""" + schema: Schema + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Schema`. May be used by Relay 1.""" + schemaEdge( + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!]! = [PRIMARY_KEY_ASC] + ): SchemaEdge +} + +"""All input for the `deleteSchema` mutation.""" +input DeleteSchemaInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `Index` mutation.""" +type DeleteIndexPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Index` that was deleted by this mutation.""" + index: Index + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Index`. May be used by Relay 1.""" + indexEdge( + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!]! = [PRIMARY_KEY_ASC] + ): IndexEdge +} + +"""All input for the `deleteIndex` mutation.""" +input DeleteIndexInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `LimitsModule` mutation.""" +type DeleteLimitsModulePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `LimitsModule` that was deleted by this mutation.""" + limitsModule: LimitsModule + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `LimitsModule`. May be used by Relay 1.""" + limitsModuleEdge( + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): LimitsModuleEdge +} + +"""All input for the `deleteLimitsModule` mutation.""" +input DeleteLimitsModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -45026,31 +47997,31 @@ input DeleteHierarchyModuleInput { id: UUID! } -"""The output of our delete `ForeignKeyConstraint` mutation.""" -type DeleteForeignKeyConstraintPayload { +"""The output of our delete `ProfilesModule` mutation.""" +type DeleteProfilesModulePayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `ForeignKeyConstraint` that was deleted by this mutation.""" - foreignKeyConstraint: ForeignKeyConstraint + """The `ProfilesModule` that was deleted by this mutation.""" + profilesModule: ProfilesModule """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" - foreignKeyConstraintEdge( - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintEdge + """An edge for our `ProfilesModule`. May be used by Relay 1.""" + profilesModuleEdge( + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!]! = [PRIMARY_KEY_ASC] + ): ProfilesModuleEdge } -"""All input for the `deleteForeignKeyConstraint` mutation.""" -input DeleteForeignKeyConstraintInput { +"""All input for the `deleteProfilesModule` mutation.""" +input DeleteProfilesModuleInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -45059,31 +48030,64 @@ input DeleteForeignKeyConstraintInput { id: UUID! } -"""The output of our delete `Table` mutation.""" -type DeleteTablePayload { +"""The output of our delete `OrgMembership` mutation.""" +type DeleteOrgMembershipPayload { """ The exact same `clientMutationId` that was provided in the mutation input, unchanged and unused. May be used by a client to track mutations. """ clientMutationId: String - """The `Table` that was deleted by this mutation.""" - table: Table + """The `OrgMembership` that was deleted by this mutation.""" + orgMembership: OrgMembership """ Our root query field type. Allows us to run any query from our mutation payload. """ query: Query - """An edge for our `Table`. May be used by Relay 1.""" - tableEdge( - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] - ): TableEdge + """An edge for our `OrgMembership`. May be used by Relay 1.""" + orgMembershipEdge( + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!]! = [PRIMARY_KEY_ASC] + ): OrgMembershipEdge } -"""All input for the `deleteTable` mutation.""" -input DeleteTableInput { +"""All input for the `deleteOrgMembership` mutation.""" +input DeleteOrgMembershipInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + +"""The output of our delete `ForeignKeyConstraint` mutation.""" +type DeleteForeignKeyConstraintPayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `ForeignKeyConstraint` that was deleted by this mutation.""" + foreignKeyConstraint: ForeignKeyConstraint + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `ForeignKeyConstraint`. May be used by Relay 1.""" + foreignKeyConstraintEdge( + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!]! = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintEdge +} + +"""All input for the `deleteForeignKeyConstraint` mutation.""" +input DeleteForeignKeyConstraintInput { """ An arbitrary string value with no semantic meaning. Will be included in the payload verbatim. May be used to track mutations by the client. @@ -45125,6 +48129,39 @@ input DeleteStorageModuleInput { id: UUID! } +"""The output of our delete `Table` mutation.""" +type DeleteTablePayload { + """ + The exact same `clientMutationId` that was provided in the mutation input, + unchanged and unused. May be used by a client to track mutations. + """ + clientMutationId: String + + """The `Table` that was deleted by this mutation.""" + table: Table + + """ + Our root query field type. Allows us to run any query from our mutation payload. + """ + query: Query + + """An edge for our `Table`. May be used by Relay 1.""" + tableEdge( + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!]! = [PRIMARY_KEY_ASC] + ): TableEdge +} + +"""All input for the `deleteTable` mutation.""" +input DeleteTableInput { + """ + An arbitrary string value with no semantic meaning. Will be included in the + payload verbatim. May be used to track mutations by the client. + """ + clientMutationId: String + id: UUID! +} + """The output of our delete `EntityTypeProvision` mutation.""" type DeleteEntityTypeProvisionPayload { """ @@ -45367,27 +48404,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! -} - -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! } """The root query type which gives access points into the data universe.""" @@ -45474,6 +48490,40 @@ type Query { appPermissionsGetMaskByNames(names: [String]): BitString orgPermissionsGetMaskByNames(names: [String]): BitString + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): AppPermissionConnection + + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissionsGetByMask( + mask: BitString + + """Only read the first `n` values of the set.""" + first: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set after (below) this cursor.""" + after: Cursor + ): OrgPermissionConnection + """Reads and enables pagination through a set of `Object`.""" getAllObjectsFromRoot( databaseId: UUID @@ -45513,40 +48563,6 @@ type Query { ): ObjectConnection getObjectAtPath(dbId: UUID, storeId: UUID, path: [String], refname: String): Object - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissionsGetByMask( - mask: BitString - - """Only read the first `n` values of the set.""" - first: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set after (below) this cursor.""" - after: Cursor - ): AppPermissionConnection - - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissionsGetByMask( - mask: BitString - - """Only read the first `n` values of the set.""" - first: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set after (below) this cursor.""" - after: Cursor - ): OrgPermissionConnection - """Reads and enables pagination through a set of `AppLevelRequirement`.""" stepsRequired( level: String @@ -45595,8 +48611,8 @@ type Query { orderBy: [DefaultIdsModuleOrderBy!] = [PRIMARY_KEY_ASC] ): DefaultIdsModuleConnection - """Reads and enables pagination through a set of `ViewTable`.""" - viewTables( + """Reads and enables pagination through a set of `RoleType`.""" + roleTypes( """Only read the first `n` values of the set.""" first: Int @@ -45618,14 +48634,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewTableFilter + where: RoleTypeFilter - """The method to use when ordering `ViewTable`.""" - orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewTableConnection + """The method to use when ordering `RoleType`.""" + orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): RoleTypeConnection - """Reads and enables pagination through a set of `ApiSchema`.""" - apiSchemas( + """Reads and enables pagination through a set of `ViewTable`.""" + viewTables( """Only read the first `n` values of the set.""" first: Int @@ -45647,14 +48663,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiSchemaFilter + where: ViewTableFilter - """The method to use when ordering `ApiSchema`.""" - orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiSchemaConnection + """The method to use when ordering `ViewTable`.""" + orderBy: [ViewTableOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewTableConnection - """Reads and enables pagination through a set of `SiteTheme`.""" - siteThemes( + """Reads and enables pagination through a set of `ApiSchema`.""" + apiSchemas( """Only read the first `n` values of the set.""" first: Int @@ -45676,11 +48692,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteThemeFilter + where: ApiSchemaFilter - """The method to use when ordering `SiteTheme`.""" - orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteThemeConnection + """The method to use when ordering `ApiSchema`.""" + orderBy: [ApiSchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiSchemaConnection """Reads and enables pagination through a set of `OrgMember`.""" orgMembers( @@ -45711,8 +48727,8 @@ type Query { orderBy: [OrgMemberOrderBy!] = [PRIMARY_KEY_ASC] ): OrgMemberConnection - """Reads and enables pagination through a set of `AppPermissionDefault`.""" - appPermissionDefaults( + """Reads and enables pagination through a set of `SiteTheme`.""" + siteThemes( """Only read the first `n` values of the set.""" first: Int @@ -45734,11 +48750,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionDefaultFilter + where: SiteThemeFilter - """The method to use when ordering `AppPermissionDefault`.""" - orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionDefaultConnection + """The method to use when ordering `SiteTheme`.""" + orderBy: [SiteThemeOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteThemeConnection """Reads and enables pagination through a set of `IdentityProvider`.""" identityProviders( @@ -45827,8 +48843,10 @@ type Query { orderBy: [StoreOrderBy!] = [PRIMARY_KEY_ASC] ): StoreConnection - """Reads and enables pagination through a set of `ApiModule`.""" - apiModules( + """ + Reads and enables pagination through a set of `EncryptedSecretsModule`. + """ + encryptedSecretsModules( """Only read the first `n` values of the set.""" first: Int @@ -45850,14 +48868,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ApiModuleFilter + where: EncryptedSecretsModuleFilter - """The method to use when ordering `ApiModule`.""" - orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ApiModuleConnection + """The method to use when ordering `EncryptedSecretsModule`.""" + orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): EncryptedSecretsModuleConnection - """Reads and enables pagination through a set of `SiteModule`.""" - siteModules( + """Reads and enables pagination through a set of `MembershipTypesModule`.""" + membershipTypesModules( """Only read the first `n` values of the set.""" first: Int @@ -45879,16 +48897,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteModuleFilter + where: MembershipTypesModuleFilter - """The method to use when ordering `SiteModule`.""" - orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteModuleConnection + """The method to use when ordering `MembershipTypesModule`.""" + orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypesModuleConnection - """ - Reads and enables pagination through a set of `EncryptedSecretsModule`. - """ - encryptedSecretsModules( + """Reads and enables pagination through a set of `SecretsModule`.""" + secretsModules( """Only read the first `n` values of the set.""" first: Int @@ -45910,14 +48926,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EncryptedSecretsModuleFilter + where: SecretsModuleFilter - """The method to use when ordering `EncryptedSecretsModule`.""" - orderBy: [EncryptedSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): EncryptedSecretsModuleConnection + """The method to use when ordering `SecretsModule`.""" + orderBy: [SecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SecretsModuleConnection - """Reads and enables pagination through a set of `MembershipTypesModule`.""" - membershipTypesModules( + """Reads and enables pagination through a set of `AppPermissionDefault`.""" + appPermissionDefaults( """Only read the first `n` values of the set.""" first: Int @@ -45939,14 +48955,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypesModuleFilter + where: AppPermissionDefaultFilter - """The method to use when ordering `MembershipTypesModule`.""" - orderBy: [MembershipTypesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypesModuleConnection + """The method to use when ordering `AppPermissionDefault`.""" + orderBy: [AppPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionDefaultConnection - """Reads and enables pagination through a set of `SecretsModule`.""" - secretsModules( + """Reads and enables pagination through a set of `ApiModule`.""" + apiModules( """Only read the first `n` values of the set.""" first: Int @@ -45968,14 +48984,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SecretsModuleFilter + where: ApiModuleFilter - """The method to use when ordering `SecretsModule`.""" - orderBy: [SecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SecretsModuleConnection + """The method to use when ordering `ApiModule`.""" + orderBy: [ApiModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ApiModuleConnection - """Reads and enables pagination through a set of `RoleType`.""" - roleTypes( + """Reads and enables pagination through a set of `SiteModule`.""" + siteModules( """Only read the first `n` values of the set.""" first: Int @@ -45997,14 +49013,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RoleTypeFilter + where: SiteModuleFilter - """The method to use when ordering `RoleType`.""" - orderBy: [RoleTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): RoleTypeConnection + """The method to use when ordering `SiteModule`.""" + orderBy: [SiteModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteModuleConnection - """Reads and enables pagination through a set of `OrgPermissionDefault`.""" - orgPermissionDefaults( + """Reads and enables pagination through a set of `SchemaGrant`.""" + schemaGrants( """Only read the first `n` values of the set.""" first: Int @@ -46026,14 +49042,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionDefaultFilter + where: SchemaGrantFilter - """The method to use when ordering `OrgPermissionDefault`.""" - orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionDefaultConnection + """The method to use when ordering `SchemaGrant`.""" + orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaGrantConnection - """Reads and enables pagination through a set of `SchemaGrant`.""" - schemaGrants( + """Reads and enables pagination through a set of `TriggerFunction`.""" + triggerFunctions( """Only read the first `n` values of the set.""" first: Int @@ -46055,14 +49071,103 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SchemaGrantFilter + where: TriggerFunctionFilter - """The method to use when ordering `SchemaGrant`.""" - orderBy: [SchemaGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaGrantConnection + """The method to use when ordering `TriggerFunction`.""" + orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerFunctionConnection - """Reads and enables pagination through a set of `TriggerFunction`.""" - triggerFunctions( + """Reads and enables pagination through a set of `ViewRule`.""" + viewRules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ViewRuleFilter + + """The method to use when ordering `ViewRule`.""" + orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewRuleConnection + + """ + Reads and enables pagination through a set of `IdentityProvidersModule`. + """ + identityProvidersModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: IdentityProvidersModuleFilter + + """The method to use when ordering `IdentityProvidersModule`.""" + orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): IdentityProvidersModuleConnection + + """Reads and enables pagination through a set of `SessionSecretsModule`.""" + sessionSecretsModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: SessionSecretsModuleFilter + + """The method to use when ordering `SessionSecretsModule`.""" + orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionSecretsModuleConnection + + """Reads and enables pagination through a set of `AppAdminGrant`.""" + appAdminGrants( """Only read the first `n` values of the set.""" first: Int @@ -46084,14 +49189,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TriggerFunctionFilter + where: AppAdminGrantFilter - """The method to use when ordering `TriggerFunction`.""" - orderBy: [TriggerFunctionOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerFunctionConnection + """The method to use when ordering `AppAdminGrant`.""" + orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAdminGrantConnection - """Reads and enables pagination through a set of `ViewRule`.""" - viewRules( + """Reads and enables pagination through a set of `AppOwnerGrant`.""" + appOwnerGrants( """Only read the first `n` values of the set.""" first: Int @@ -46113,16 +49218,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewRuleFilter + where: AppOwnerGrantFilter - """The method to use when ordering `ViewRule`.""" - orderBy: [ViewRuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewRuleConnection + """The method to use when ordering `AppOwnerGrant`.""" + orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppOwnerGrantConnection - """ - Reads and enables pagination through a set of `IdentityProvidersModule`. - """ - identityProvidersModules( + """Reads and enables pagination through a set of `AppAchievement`.""" + appAchievements( """Only read the first `n` values of the set.""" first: Int @@ -46144,14 +49247,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: IdentityProvidersModuleFilter + where: AppAchievementFilter - """The method to use when ordering `IdentityProvidersModule`.""" - orderBy: [IdentityProvidersModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): IdentityProvidersModuleConnection + """The method to use when ordering `AppAchievement`.""" + orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppAchievementConnection - """Reads and enables pagination through a set of `SessionSecretsModule`.""" - sessionSecretsModules( + """Reads and enables pagination through a set of `AppStep`.""" + appSteps( """Only read the first `n` values of the set.""" first: Int @@ -46173,14 +49276,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SessionSecretsModuleFilter + where: AppStepFilter - """The method to use when ordering `SessionSecretsModule`.""" - orderBy: [SessionSecretsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionSecretsModuleConnection + """The method to use when ordering `AppStep`.""" + orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] + ): AppStepConnection - """Reads and enables pagination through a set of `AppAdminGrant`.""" - appAdminGrants( + """Reads and enables pagination through a set of `OrgPermissionDefault`.""" + orgPermissionDefaults( """Only read the first `n` values of the set.""" first: Int @@ -46202,14 +49305,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppAdminGrantFilter + where: OrgPermissionDefaultFilter - """The method to use when ordering `AppAdminGrant`.""" - orderBy: [AppAdminGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAdminGrantConnection + """The method to use when ordering `OrgPermissionDefault`.""" + orderBy: [OrgPermissionDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionDefaultConnection - """Reads and enables pagination through a set of `AppOwnerGrant`.""" - appOwnerGrants( + """Reads and enables pagination through a set of `AppPermission`.""" + appPermissions( """Only read the first `n` values of the set.""" first: Int @@ -46231,14 +49334,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppOwnerGrantFilter + where: AppPermissionFilter - """The method to use when ordering `AppOwnerGrant`.""" - orderBy: [AppOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppOwnerGrantConnection + """The method to use when ordering `AppPermission`.""" + orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): AppPermissionConnection - """Reads and enables pagination through a set of `MigrateFile`.""" - migrateFiles( + """Reads and enables pagination through a set of `OrgPermission`.""" + orgPermissions( """Only read the first `n` values of the set.""" first: Int @@ -46260,14 +49363,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MigrateFileFilter + where: OrgPermissionFilter - """The method to use when ordering `MigrateFile`.""" - orderBy: [MigrateFileOrderBy!] = [NATURAL] - ): MigrateFileConnection + """The method to use when ordering `OrgPermission`.""" + orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgPermissionConnection - """Reads and enables pagination through a set of `AppLimitDefault`.""" - appLimitDefaults( + """Reads and enables pagination through a set of `MembershipType`.""" + membershipTypes( """Only read the first `n` values of the set.""" first: Int @@ -46289,14 +49392,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitDefaultFilter + where: MembershipTypeFilter - """The method to use when ordering `AppLimitDefault`.""" - orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitDefaultConnection + """The method to use when ordering `MembershipType`.""" + orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] + ): MembershipTypeConnection - """Reads and enables pagination through a set of `OrgLimitDefault`.""" - orgLimitDefaults( + """Reads and enables pagination through a set of `MigrateFile`.""" + migrateFiles( """Only read the first `n` values of the set.""" first: Int @@ -46318,11 +49421,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitDefaultFilter + where: MigrateFileFilter - """The method to use when ordering `OrgLimitDefault`.""" - orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitDefaultConnection + """The method to use when ordering `MigrateFile`.""" + orderBy: [MigrateFileOrderBy!] = [NATURAL] + ): MigrateFileConnection """Reads and enables pagination through a set of `DefaultPrivilege`.""" defaultPrivileges( @@ -46647,6 +49750,93 @@ type Query { orderBy: [OrgOwnerGrantOrderBy!] = [PRIMARY_KEY_ASC] ): OrgOwnerGrantConnection + """Reads and enables pagination through a set of `NodeTypeRegistry`.""" + nodeTypeRegistries( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: NodeTypeRegistryFilter + + """The method to use when ordering `NodeTypeRegistry`.""" + orderBy: [NodeTypeRegistryOrderBy!] = [PRIMARY_KEY_ASC] + ): NodeTypeRegistryConnection + + """Reads and enables pagination through a set of `AppLimitDefault`.""" + appLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: AppLimitDefaultFilter + + """The method to use when ordering `AppLimitDefault`.""" + orderBy: [AppLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitDefaultConnection + + """Reads and enables pagination through a set of `OrgLimitDefault`.""" + orgLimitDefaults( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: OrgLimitDefaultFilter + + """The method to use when ordering `OrgLimitDefault`.""" + orderBy: [OrgLimitDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitDefaultConnection + """Reads and enables pagination through a set of `UserConnectedAccount`.""" userConnectedAccounts( """Only read the first `n` values of the set.""" @@ -46676,8 +49866,8 @@ type Query { orderBy: [UserConnectedAccountOrderBy!] = [NATURAL] ): UserConnectedAccountConnection - """Reads and enables pagination through a set of `Object`.""" - objects( + """Reads and enables pagination through a set of `Database`.""" + databases( """Only read the first `n` values of the set.""" first: Int @@ -46699,14 +49889,72 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ObjectFilter + where: DatabaseFilter - """The method to use when ordering `Object`.""" - orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] - ): ObjectConnection + """The method to use when ordering `Database`.""" + orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseConnection - """Reads and enables pagination through a set of `Database`.""" - databases( + """Reads and enables pagination through a set of `CryptoAddressesModule`.""" + cryptoAddressesModules( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: CryptoAddressesModuleFilter + + """The method to use when ordering `CryptoAddressesModule`.""" + orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressesModuleConnection + + """Reads and enables pagination through a set of `CryptoAddress`.""" + cryptoAddresses( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: CryptoAddressFilter + + """The method to use when ordering `CryptoAddress`.""" + orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] + ): CryptoAddressConnection + + """Reads and enables pagination through a set of `AgentMessage`.""" + agentMessages( """Only read the first `n` values of the set.""" first: Int @@ -46728,14 +49976,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DatabaseFilter + where: AgentMessageFilter - """The method to use when ordering `Database`.""" - orderBy: [DatabaseOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseConnection + """The method to use when ordering `AgentMessage`.""" + orderBy: [AgentMessageOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentMessageConnection - """Reads and enables pagination through a set of `CryptoAddressesModule`.""" - cryptoAddressesModules( + """Reads and enables pagination through a set of `Object`.""" + objects( """Only read the first `n` values of the set.""" first: Int @@ -46757,14 +50005,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressesModuleFilter + where: ObjectFilter - """The method to use when ordering `CryptoAddressesModule`.""" - orderBy: [CryptoAddressesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressesModuleConnection + """The method to use when ordering `Object`.""" + orderBy: [ObjectOrderBy!] = [PRIMARY_KEY_ASC] + ): ObjectConnection - """Reads and enables pagination through a set of `CryptoAddress`.""" - cryptoAddresses( + """Reads and enables pagination through a set of `SiteMetadatum`.""" + siteMetadata( """Only read the first `n` values of the set.""" first: Int @@ -46786,14 +50034,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CryptoAddressFilter + where: SiteMetadatumFilter - """The method to use when ordering `CryptoAddress`.""" - orderBy: [CryptoAddressOrderBy!] = [PRIMARY_KEY_ASC] - ): CryptoAddressConnection + """The method to use when ordering `SiteMetadatum`.""" + orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteMetadatumConnection - """Reads and enables pagination through a set of `AppPermission`.""" - appPermissions( + """Reads and enables pagination through a set of `AppLevelRequirement`.""" + appLevelRequirements( """Only read the first `n` values of the set.""" first: Int @@ -46815,14 +50063,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppPermissionFilter + where: AppLevelRequirementFilter - """The method to use when ordering `AppPermission`.""" - orderBy: [AppPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): AppPermissionConnection + """The method to use when ordering `AppLevelRequirement`.""" + orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLevelRequirementConnection - """Reads and enables pagination through a set of `OrgPermission`.""" - orgPermissions( + """Reads and enables pagination through a set of `FullTextSearch`.""" + fullTextSearches( """Only read the first `n` values of the set.""" first: Int @@ -46844,14 +50092,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgPermissionFilter + where: FullTextSearchFilter - """The method to use when ordering `OrgPermission`.""" - orderBy: [OrgPermissionOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgPermissionConnection + """The method to use when ordering `FullTextSearch`.""" + orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] + ): FullTextSearchConnection - """Reads and enables pagination through a set of `AppLimit`.""" - appLimits( + """Reads and enables pagination through a set of `TableGrant`.""" + tableGrants( """Only read the first `n` values of the set.""" first: Int @@ -46873,14 +50121,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLimitFilter + where: TableGrantFilter - """The method to use when ordering `AppLimit`.""" - orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLimitConnection + """The method to use when ordering `TableGrant`.""" + orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): TableGrantConnection - """Reads and enables pagination through a set of `AppAchievement`.""" - appAchievements( + """Reads and enables pagination through a set of `Commit`.""" + commits( """Only read the first `n` values of the set.""" first: Int @@ -46902,14 +50150,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppAchievementFilter + where: CommitFilter - """The method to use when ordering `AppAchievement`.""" - orderBy: [AppAchievementOrderBy!] = [PRIMARY_KEY_ASC] - ): AppAchievementConnection + """The method to use when ordering `Commit`.""" + orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] + ): CommitConnection - """Reads and enables pagination through a set of `AppStep`.""" - appSteps( + """Reads and enables pagination through a set of `RateLimitsModule`.""" + rateLimitsModules( """Only read the first `n` values of the set.""" first: Int @@ -46931,14 +50179,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppStepFilter + where: RateLimitsModuleFilter - """The method to use when ordering `AppStep`.""" - orderBy: [AppStepOrderBy!] = [PRIMARY_KEY_ASC] - ): AppStepConnection + """The method to use when ordering `RateLimitsModule`.""" + orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RateLimitsModuleConnection - """Reads and enables pagination through a set of `SiteMetadatum`.""" - siteMetadata( + """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" + orgChartEdgeGrants( """Only read the first `n` values of the set.""" first: Int @@ -46960,14 +50208,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteMetadatumFilter + where: OrgChartEdgeGrantFilter - """The method to use when ordering `SiteMetadatum`.""" - orderBy: [SiteMetadatumOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteMetadatumConnection + """The method to use when ordering `OrgChartEdgeGrant`.""" + orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeGrantConnection - """Reads and enables pagination through a set of `AppClaimedInvite`.""" - appClaimedInvites( + """Reads and enables pagination through a set of `PhoneNumber`.""" + phoneNumbers( """Only read the first `n` values of the set.""" first: Int @@ -46989,14 +50237,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppClaimedInviteFilter + where: PhoneNumberFilter - """The method to use when ordering `AppClaimedInvite`.""" - orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppClaimedInviteConnection + """The method to use when ordering `PhoneNumber`.""" + orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] + ): PhoneNumberConnection - """Reads and enables pagination through a set of `AppMembershipDefault`.""" - appMembershipDefaults( + """Reads and enables pagination through a set of `AppClaimedInvite`.""" + appClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -47018,14 +50266,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipDefaultFilter + where: AppClaimedInviteFilter - """The method to use when ordering `AppMembershipDefault`.""" - orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipDefaultConnection + """The method to use when ordering `AppClaimedInvite`.""" + orderBy: [AppClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppClaimedInviteConnection - """Reads and enables pagination through a set of `OrgMembershipDefault`.""" - orgMembershipDefaults( + """Reads and enables pagination through a set of `AppMembershipDefault`.""" + appMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -47047,14 +50295,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipDefaultFilter + where: AppMembershipDefaultFilter - """The method to use when ordering `OrgMembershipDefault`.""" - orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipDefaultConnection + """The method to use when ordering `AppMembershipDefault`.""" + orderBy: [AppMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipDefaultConnection - """Reads and enables pagination through a set of `FullTextSearch`.""" - fullTextSearches( + """Reads and enables pagination through a set of `OrgMembershipDefault`.""" + orgMembershipDefaults( """Only read the first `n` values of the set.""" first: Int @@ -47076,14 +50324,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: FullTextSearchFilter + where: OrgMembershipDefaultFilter - """The method to use when ordering `FullTextSearch`.""" - orderBy: [FullTextSearchOrderBy!] = [PRIMARY_KEY_ASC] - ): FullTextSearchConnection + """The method to use when ordering `OrgMembershipDefault`.""" + orderBy: [OrgMembershipDefaultOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipDefaultConnection - """Reads and enables pagination through a set of `TableGrant`.""" - tableGrants( + """Reads and enables pagination through a set of `AuditLog`.""" + auditLogs( """Only read the first `n` values of the set.""" first: Int @@ -47105,14 +50353,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableGrantFilter + where: AuditLogFilter - """The method to use when ordering `TableGrant`.""" - orderBy: [TableGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): TableGrantConnection + """The method to use when ordering `AuditLog`.""" + orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] + ): AuditLogConnection - """Reads and enables pagination through a set of `Commit`.""" - commits( + """Reads and enables pagination through a set of `Domain`.""" + domains( """Only read the first `n` values of the set.""" first: Int @@ -47134,14 +50382,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CommitFilter + where: DomainFilter - """The method to use when ordering `Commit`.""" - orderBy: [CommitOrderBy!] = [PRIMARY_KEY_ASC] - ): CommitConnection + """The method to use when ordering `Domain`.""" + orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] + ): DomainConnection - """Reads and enables pagination through a set of `RateLimitsModule`.""" - rateLimitsModules( + """Reads and enables pagination through a set of `AgentTask`.""" + agentTasks( """Only read the first `n` values of the set.""" first: Int @@ -47163,14 +50411,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RateLimitsModuleFilter + where: AgentTaskFilter - """The method to use when ordering `RateLimitsModule`.""" - orderBy: [RateLimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RateLimitsModuleConnection + """The method to use when ordering `AgentTask`.""" + orderBy: [AgentTaskOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentTaskConnection - """Reads and enables pagination through a set of `OrgChartEdgeGrant`.""" - orgChartEdgeGrants( + """Reads and enables pagination through a set of `AgentThread`.""" + agentThreads( """Only read the first `n` values of the set.""" first: Int @@ -47192,14 +50440,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeGrantFilter + where: AgentThreadFilter - """The method to use when ordering `OrgChartEdgeGrant`.""" - orderBy: [OrgChartEdgeGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeGrantConnection + """The method to use when ordering `AgentThread`.""" + orderBy: [AgentThreadOrderBy!] = [PRIMARY_KEY_ASC] + ): AgentThreadConnection - """Reads and enables pagination through a set of `PhoneNumber`.""" - phoneNumbers( + """Reads and enables pagination through a set of `Email`.""" + emails( """Only read the first `n` values of the set.""" first: Int @@ -47221,14 +50469,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PhoneNumberFilter + where: EmailFilter - """The method to use when ordering `PhoneNumber`.""" - orderBy: [PhoneNumberOrderBy!] = [PRIMARY_KEY_ASC] - ): PhoneNumberConnection + """The method to use when ordering `Email`.""" + orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] + ): EmailConnection - """Reads and enables pagination through a set of `OrgLimit`.""" - orgLimits( + """Reads and enables pagination through a set of `AppGrant`.""" + appGrants( """Only read the first `n` values of the set.""" first: Int @@ -47250,14 +50498,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgLimitFilter + where: AppGrantFilter - """The method to use when ordering `OrgLimit`.""" - orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgLimitConnection + """The method to use when ordering `AppGrant`.""" + orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): AppGrantConnection - """Reads and enables pagination through a set of `MembershipType`.""" - membershipTypes( + """Reads and enables pagination through a set of `OrgClaimedInvite`.""" + orgClaimedInvites( """Only read the first `n` values of the set.""" first: Int @@ -47279,14 +50527,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: MembershipTypeFilter + where: OrgClaimedInviteFilter - """The method to use when ordering `MembershipType`.""" - orderBy: [MembershipTypeOrderBy!] = [PRIMARY_KEY_ASC] - ): MembershipTypeConnection + """The method to use when ordering `OrgClaimedInvite`.""" + orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgClaimedInviteConnection - """Reads and enables pagination through a set of `Domain`.""" - domains( + """Reads and enables pagination through a set of `AppLimitEvent`.""" + appLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -47308,14 +50556,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DomainFilter + where: AppLimitEventFilter - """The method to use when ordering `Domain`.""" - orderBy: [DomainOrderBy!] = [PRIMARY_KEY_ASC] - ): DomainConnection + """The method to use when ordering `AppLimitEvent`.""" + orderBy: [AppLimitEventOrderBy!] = [NATURAL] + ): AppLimitEventConnection - """Reads and enables pagination through a set of `AppGrant`.""" - appGrants( + """Reads and enables pagination through a set of `OrgLimitEvent`.""" + orgLimitEvents( """Only read the first `n` values of the set.""" first: Int @@ -47337,14 +50585,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppGrantFilter + where: OrgLimitEventFilter - """The method to use when ordering `AppGrant`.""" - orderBy: [AppGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): AppGrantConnection + """The method to use when ordering `OrgLimitEvent`.""" + orderBy: [OrgLimitEventOrderBy!] = [NATURAL] + ): OrgLimitEventConnection - """Reads and enables pagination through a set of `OrgClaimedInvite`.""" - orgClaimedInvites( + """Reads and enables pagination through a set of `OrgChartEdge`.""" + orgChartEdges( """Only read the first `n` values of the set.""" first: Int @@ -47366,14 +50614,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgClaimedInviteFilter + where: OrgChartEdgeFilter - """The method to use when ordering `OrgClaimedInvite`.""" - orderBy: [OrgClaimedInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgClaimedInviteConnection + """The method to use when ordering `OrgChartEdge`.""" + orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgChartEdgeConnection - """Reads and enables pagination through a set of `OrgChartEdge`.""" - orgChartEdges( + """Reads and enables pagination through a set of `AppLimit`.""" + appLimits( """Only read the first `n` values of the set.""" first: Int @@ -47395,14 +50643,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgChartEdgeFilter + where: AppLimitFilter - """The method to use when ordering `OrgChartEdge`.""" - orderBy: [OrgChartEdgeOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgChartEdgeConnection + """The method to use when ordering `AppLimit`.""" + orderBy: [AppLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): AppLimitConnection - """Reads and enables pagination through a set of `OrgGrant`.""" - orgGrants( + """Reads and enables pagination through a set of `OrgLimitAggregate`.""" + orgLimitAggregates( """Only read the first `n` values of the set.""" first: Int @@ -47424,11 +50672,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgGrantFilter + where: OrgLimitAggregateFilter - """The method to use when ordering `OrgGrant`.""" - orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgGrantConnection + """The method to use when ordering `OrgLimitAggregate`.""" + orderBy: [OrgLimitAggregateOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitAggregateConnection """Reads and enables pagination through a set of `BlueprintConstruction`.""" blueprintConstructions( @@ -47459,8 +50707,8 @@ type Query { orderBy: [BlueprintConstructionOrderBy!] = [PRIMARY_KEY_ASC] ): BlueprintConstructionConnection - """Reads and enables pagination through a set of `RlsModule`.""" - rlsModules( + """Reads and enables pagination through a set of `PlansModule`.""" + plansModules( """Only read the first `n` values of the set.""" first: Int @@ -47482,14 +50730,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: RlsModuleFilter + where: PlansModuleFilter - """The method to use when ordering `RlsModule`.""" - orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): RlsModuleConnection + """The method to use when ordering `PlansModule`.""" + orderBy: [PlansModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PlansModuleConnection - """Reads and enables pagination through a set of `SessionsModule`.""" - sessionsModules( + """Reads and enables pagination through a set of `RlsModule`.""" + rlsModules( """Only read the first `n` values of the set.""" first: Int @@ -47511,14 +50759,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SessionsModuleFilter + where: RlsModuleFilter - """The method to use when ordering `SessionsModule`.""" - orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): SessionsModuleConnection + """The method to use when ordering `RlsModule`.""" + orderBy: [RlsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): RlsModuleConnection - """Reads and enables pagination through a set of `AppLevelRequirement`.""" - appLevelRequirements( + """Reads and enables pagination through a set of `SessionsModule`.""" + sessionsModules( """Only read the first `n` values of the set.""" first: Int @@ -47540,14 +50788,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppLevelRequirementFilter + where: SessionsModuleFilter - """The method to use when ordering `AppLevelRequirement`.""" - orderBy: [AppLevelRequirementOrderBy!] = [PRIMARY_KEY_ASC] - ): AppLevelRequirementConnection + """The method to use when ordering `SessionsModule`.""" + orderBy: [SessionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): SessionsModuleConnection - """Reads and enables pagination through a set of `AuditLog`.""" - auditLogs( + """Reads and enables pagination through a set of `OrgGrant`.""" + orgGrants( """Only read the first `n` values of the set.""" first: Int @@ -47569,11 +50817,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AuditLogFilter + where: OrgGrantFilter - """The method to use when ordering `AuditLog`.""" - orderBy: [AuditLogOrderBy!] = [PRIMARY_KEY_ASC] - ): AuditLogConnection + """The method to use when ordering `OrgGrant`.""" + orderBy: [OrgGrantOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgGrantConnection """Reads and enables pagination through a set of `AppLevel`.""" appLevels( @@ -47604,8 +50852,8 @@ type Query { orderBy: [AppLevelOrderBy!] = [PRIMARY_KEY_ASC] ): AppLevelConnection - """Reads and enables pagination through a set of `Blueprint`.""" - blueprints( + """Reads and enables pagination through a set of `OrgLimit`.""" + orgLimits( """Only read the first `n` values of the set.""" first: Int @@ -47627,16 +50875,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: BlueprintFilter + where: OrgLimitFilter - """The method to use when ordering `Blueprint`.""" - orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] - ): BlueprintConnection + """The method to use when ordering `OrgLimit`.""" + orderBy: [OrgLimitOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgLimitConnection - """ - Reads and enables pagination through a set of `DenormalizedTableField`. - """ - denormalizedTableFields( + """Reads and enables pagination through a set of `Blueprint`.""" + blueprints( """Only read the first `n` values of the set.""" first: Int @@ -47658,14 +50904,16 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: DenormalizedTableFieldFilter + where: BlueprintFilter - """The method to use when ordering `DenormalizedTableField`.""" - orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] - ): DenormalizedTableFieldConnection + """The method to use when ordering `Blueprint`.""" + orderBy: [BlueprintOrderBy!] = [PRIMARY_KEY_ASC] + ): BlueprintConnection - """Reads and enables pagination through a set of `Email`.""" - emails( + """ + Reads and enables pagination through a set of `DenormalizedTableField`. + """ + denormalizedTableFields( """Only read the first `n` values of the set.""" first: Int @@ -47687,11 +50935,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmailFilter + where: DenormalizedTableFieldFilter - """The method to use when ordering `Email`.""" - orderBy: [EmailOrderBy!] = [PRIMARY_KEY_ASC] - ): EmailConnection + """The method to use when ordering `DenormalizedTableField`.""" + orderBy: [DenormalizedTableFieldOrderBy!] = [PRIMARY_KEY_ASC] + ): DenormalizedTableFieldConnection """Reads and enables pagination through a set of `OrgMemberProfile`.""" orgMemberProfiles( @@ -47751,8 +50999,8 @@ type Query { orderBy: [SqlActionOrderBy!] = [NATURAL] ): SqlActionConnection - """Reads and enables pagination through a set of `SecureTableProvision`.""" - secureTableProvisions( + """Reads and enables pagination through a set of `DatabaseTransfer`.""" + databaseTransfers( """Only read the first `n` values of the set.""" first: Int @@ -47774,14 +51022,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SecureTableProvisionFilter + where: DatabaseTransferFilter - """The method to use when ordering `SecureTableProvision`.""" - orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] - ): SecureTableProvisionConnection + """The method to use when ordering `DatabaseTransfer`.""" + orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] + ): DatabaseTransferConnection - """Reads and enables pagination through a set of `OrgMembershipSetting`.""" - orgMembershipSettings( + """Reads and enables pagination through a set of `BillingModule`.""" + billingModules( """Only read the first `n` values of the set.""" first: Int @@ -47803,40 +51051,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipSettingFilter - - """The method to use when ordering `OrgMembershipSetting`.""" - orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipSettingConnection - - """Reads and enables pagination through a set of `DatabaseTransfer`.""" - databaseTransfers( - """Only read the first `n` values of the set.""" - first: Int - - """Only read the last `n` values of the set.""" - last: Int - - """ - Skip the first `n` values from our `after` cursor, an alternative to cursor - based pagination. May not be used with `last`. - """ - offset: Int - - """Read all values in the set before (above) this cursor.""" - before: Cursor - - """Read all values in the set after (below) this cursor.""" - after: Cursor + where: BillingModuleFilter - """ - A filter to be used in determining which values should be returned by the collection. - """ - where: DatabaseTransferFilter - - """The method to use when ordering `DatabaseTransfer`.""" - orderBy: [DatabaseTransferOrderBy!] = [PRIMARY_KEY_ASC] - ): DatabaseTransferConnection + """The method to use when ordering `BillingModule`.""" + orderBy: [BillingModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): BillingModuleConnection """Reads and enables pagination through a set of `CryptoAuthModule`.""" cryptoAuthModules( @@ -47927,8 +51146,8 @@ type Query { orderBy: [InvitesModuleOrderBy!] = [PRIMARY_KEY_ASC] ): InvitesModuleConnection - """Reads and enables pagination through a set of `Enum`.""" - enums( + """Reads and enables pagination through a set of `SecureTableProvision`.""" + secureTableProvisions( """Only read the first `n` values of the set.""" first: Int @@ -47950,14 +51169,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EnumFilter + where: SecureTableProvisionFilter - """The method to use when ordering `Enum`.""" - orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] - ): EnumConnection + """The method to use when ordering `SecureTableProvision`.""" + orderBy: [SecureTableProvisionOrderBy!] = [PRIMARY_KEY_ASC] + ): SecureTableProvisionConnection - """Reads and enables pagination through a set of `User`.""" - users( + """Reads and enables pagination through a set of `AstMigration`.""" + astMigrations( """Only read the first `n` values of the set.""" first: Int @@ -47979,14 +51198,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UserFilter + where: AstMigrationFilter - """The method to use when ordering `User`.""" - orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] - ): UserConnection + """The method to use when ordering `AstMigration`.""" + orderBy: [AstMigrationOrderBy!] = [NATURAL] + ): AstMigrationConnection - """Reads and enables pagination through a set of `View`.""" - views( + """Reads and enables pagination through a set of `Enum`.""" + enums( """Only read the first `n` values of the set.""" first: Int @@ -48008,14 +51227,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ViewFilter + where: EnumFilter - """The method to use when ordering `View`.""" - orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] - ): ViewConnection + """The method to use when ordering `Enum`.""" + orderBy: [EnumOrderBy!] = [PRIMARY_KEY_ASC] + ): EnumConnection - """Reads and enables pagination through a set of `WebauthnAuthModule`.""" - webauthnAuthModules( + """Reads and enables pagination through a set of `User`.""" + users( """Only read the first `n` values of the set.""" first: Int @@ -48037,14 +51256,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnAuthModuleFilter + where: UserFilter - """The method to use when ordering `WebauthnAuthModule`.""" - orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnAuthModuleConnection + """The method to use when ordering `User`.""" + orderBy: [UserOrderBy!] = [PRIMARY_KEY_ASC] + ): UserConnection - """Reads and enables pagination through a set of `App`.""" - apps( + """Reads and enables pagination through a set of `View`.""" + views( """Only read the first `n` values of the set.""" first: Int @@ -48066,14 +51285,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppFilter + where: ViewFilter - """The method to use when ordering `App`.""" - orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] - ): AppConnection + """The method to use when ordering `View`.""" + orderBy: [ViewOrderBy!] = [PRIMARY_KEY_ASC] + ): ViewConnection - """Reads and enables pagination through a set of `Site`.""" - sites( + """Reads and enables pagination through a set of `WebauthnAuthModule`.""" + webauthnAuthModules( """Only read the first `n` values of the set.""" first: Int @@ -48095,14 +51314,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SiteFilter + where: WebauthnAuthModuleFilter - """The method to use when ordering `Site`.""" - orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] - ): SiteConnection + """The method to use when ordering `WebauthnAuthModule`.""" + orderBy: [WebauthnAuthModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnAuthModuleConnection - """Reads and enables pagination through a set of `AstMigration`.""" - astMigrations( + """Reads and enables pagination through a set of `AppInvite`.""" + appInvites( """Only read the first `n` values of the set.""" first: Int @@ -48124,14 +51343,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AstMigrationFilter + where: AppInviteFilter - """The method to use when ordering `AstMigration`.""" - orderBy: [AstMigrationOrderBy!] = [NATURAL] - ): AstMigrationConnection + """The method to use when ordering `AppInvite`.""" + orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): AppInviteConnection - """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" - primaryKeyConstraints( + """Reads and enables pagination through a set of `OrgMembershipSetting`.""" + orgMembershipSettings( """Only read the first `n` values of the set.""" first: Int @@ -48153,14 +51372,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PrimaryKeyConstraintFilter + where: OrgMembershipSettingFilter - """The method to use when ordering `PrimaryKeyConstraint`.""" - orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): PrimaryKeyConstraintConnection + """The method to use when ordering `OrgMembershipSetting`.""" + orderBy: [OrgMembershipSettingOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipSettingConnection - """Reads and enables pagination through a set of `Trigger`.""" - triggers( + """Reads and enables pagination through a set of `App`.""" + apps( """Only read the first `n` values of the set.""" first: Int @@ -48182,14 +51401,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TriggerFilter + where: AppFilter - """The method to use when ordering `Trigger`.""" - orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] - ): TriggerConnection + """The method to use when ordering `App`.""" + orderBy: [AppOrderBy!] = [PRIMARY_KEY_ASC] + ): AppConnection - """Reads and enables pagination through a set of `CheckConstraint`.""" - checkConstraints( + """Reads and enables pagination through a set of `Site`.""" + sites( """Only read the first `n` values of the set.""" first: Int @@ -48211,14 +51430,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: CheckConstraintFilter + where: SiteFilter - """The method to use when ordering `CheckConstraint`.""" - orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): CheckConstraintConnection + """The method to use when ordering `Site`.""" + orderBy: [SiteOrderBy!] = [PRIMARY_KEY_ASC] + ): SiteConnection - """Reads and enables pagination through a set of `UniqueConstraint`.""" - uniqueConstraints( + """Reads and enables pagination through a set of `NotificationsModule`.""" + notificationsModules( """Only read the first `n` values of the set.""" first: Int @@ -48240,14 +51459,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: UniqueConstraintFilter + where: NotificationsModuleFilter - """The method to use when ordering `UniqueConstraint`.""" - orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): UniqueConstraintConnection + """The method to use when ordering `NotificationsModule`.""" + orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): NotificationsModuleConnection - """Reads and enables pagination through a set of `SpatialRelation`.""" - spatialRelations( + """Reads and enables pagination through a set of `PermissionsModule`.""" + permissionsModules( """Only read the first `n` values of the set.""" first: Int @@ -48269,14 +51488,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SpatialRelationFilter + where: PermissionsModuleFilter - """The method to use when ordering `SpatialRelation`.""" - orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] - ): SpatialRelationConnection + """The method to use when ordering `PermissionsModule`.""" + orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): PermissionsModuleConnection - """Reads and enables pagination through a set of `Policy`.""" - policies( + """Reads and enables pagination through a set of `WebauthnCredential`.""" + webauthnCredentials( """Only read the first `n` values of the set.""" first: Int @@ -48298,14 +51517,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PolicyFilter + where: WebauthnCredentialFilter - """The method to use when ordering `Policy`.""" - orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] - ): PolicyConnection + """The method to use when ordering `WebauthnCredential`.""" + orderBy: [WebauthnCredentialOrderBy!] = [PRIMARY_KEY_ASC] + ): WebauthnCredentialConnection - """Reads and enables pagination through a set of `NotificationsModule`.""" - notificationsModules( + """Reads and enables pagination through a set of `PrimaryKeyConstraint`.""" + primaryKeyConstraints( """Only read the first `n` values of the set.""" first: Int @@ -48327,14 +51546,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: NotificationsModuleFilter + where: PrimaryKeyConstraintFilter - """The method to use when ordering `NotificationsModule`.""" - orderBy: [NotificationsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): NotificationsModuleConnection + """The method to use when ordering `PrimaryKeyConstraint`.""" + orderBy: [PrimaryKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): PrimaryKeyConstraintConnection - """Reads and enables pagination through a set of `PermissionsModule`.""" - permissionsModules( + """Reads and enables pagination through a set of `Trigger`.""" + triggers( """Only read the first `n` values of the set.""" first: Int @@ -48356,14 +51575,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: PermissionsModuleFilter + where: TriggerFilter - """The method to use when ordering `PermissionsModule`.""" - orderBy: [PermissionsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): PermissionsModuleConnection + """The method to use when ordering `Trigger`.""" + orderBy: [TriggerOrderBy!] = [PRIMARY_KEY_ASC] + ): TriggerConnection - """Reads and enables pagination through a set of `AppInvite`.""" - appInvites( + """Reads and enables pagination through a set of `CheckConstraint`.""" + checkConstraints( """Only read the first `n` values of the set.""" first: Int @@ -48385,14 +51604,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppInviteFilter + where: CheckConstraintFilter - """The method to use when ordering `AppInvite`.""" - orderBy: [AppInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): AppInviteConnection + """The method to use when ordering `CheckConstraint`.""" + orderBy: [CheckConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): CheckConstraintConnection - """Reads and enables pagination through a set of `EmbeddingChunk`.""" - embeddingChunks( + """Reads and enables pagination through a set of `UniqueConstraint`.""" + uniqueConstraints( """Only read the first `n` values of the set.""" first: Int @@ -48414,14 +51633,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: EmbeddingChunkFilter + where: UniqueConstraintFilter - """The method to use when ordering `EmbeddingChunk`.""" - orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] - ): EmbeddingChunkConnection + """The method to use when ordering `UniqueConstraint`.""" + orderBy: [UniqueConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): UniqueConstraintConnection - """Reads and enables pagination through a set of `Schema`.""" - schemas( + """Reads and enables pagination through a set of `SpatialRelation`.""" + spatialRelations( """Only read the first `n` values of the set.""" first: Int @@ -48443,14 +51662,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: SchemaFilter + where: SpatialRelationFilter - """The method to use when ordering `Schema`.""" - orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] - ): SchemaConnection + """The method to use when ordering `SpatialRelation`.""" + orderBy: [SpatialRelationOrderBy!] = [PRIMARY_KEY_ASC] + ): SpatialRelationConnection - """Reads and enables pagination through a set of `LimitsModule`.""" - limitsModules( + """Reads and enables pagination through a set of `Policy`.""" + policies( """Only read the first `n` values of the set.""" first: Int @@ -48472,14 +51691,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: LimitsModuleFilter + where: PolicyFilter - """The method to use when ordering `LimitsModule`.""" - orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): LimitsModuleConnection + """The method to use when ordering `Policy`.""" + orderBy: [PolicyOrderBy!] = [PRIMARY_KEY_ASC] + ): PolicyConnection - """Reads and enables pagination through a set of `ProfilesModule`.""" - profilesModules( + """Reads and enables pagination through a set of `EmbeddingChunk`.""" + embeddingChunks( """Only read the first `n` values of the set.""" first: Int @@ -48501,14 +51720,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ProfilesModuleFilter + where: EmbeddingChunkFilter - """The method to use when ordering `ProfilesModule`.""" - orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] - ): ProfilesModuleConnection + """The method to use when ordering `EmbeddingChunk`.""" + orderBy: [EmbeddingChunkOrderBy!] = [PRIMARY_KEY_ASC] + ): EmbeddingChunkConnection - """Reads and enables pagination through a set of `AppMembership`.""" - appMemberships( + """Reads and enables pagination through a set of `OrgInvite`.""" + orgInvites( """Only read the first `n` values of the set.""" first: Int @@ -48530,14 +51749,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: AppMembershipFilter + where: OrgInviteFilter - """The method to use when ordering `AppMembership`.""" - orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): AppMembershipConnection + """The method to use when ordering `OrgInvite`.""" + orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgInviteConnection - """Reads and enables pagination through a set of `Index`.""" - indices( + """Reads and enables pagination through a set of `AppMembership`.""" + appMemberships( """Only read the first `n` values of the set.""" first: Int @@ -48559,14 +51778,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: IndexFilter + where: AppMembershipFilter - """The method to use when ordering `Index`.""" - orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] - ): IndexConnection + """The method to use when ordering `AppMembership`.""" + orderBy: [AppMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): AppMembershipConnection - """Reads and enables pagination through a set of `WebauthnCredential`.""" - webauthnCredentials( + """Reads and enables pagination through a set of `Schema`.""" + schemas( """Only read the first `n` values of the set.""" first: Int @@ -48588,14 +51807,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: WebauthnCredentialFilter + where: SchemaFilter - """The method to use when ordering `WebauthnCredential`.""" - orderBy: [WebauthnCredentialOrderBy!] = [PRIMARY_KEY_ASC] - ): WebauthnCredentialConnection + """The method to use when ordering `Schema`.""" + orderBy: [SchemaOrderBy!] = [PRIMARY_KEY_ASC] + ): SchemaConnection - """Reads and enables pagination through a set of `OrgInvite`.""" - orgInvites( + """Reads and enables pagination through a set of `Index`.""" + indices( """Only read the first `n` values of the set.""" first: Int @@ -48617,14 +51836,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgInviteFilter + where: IndexFilter - """The method to use when ordering `OrgInvite`.""" - orderBy: [OrgInviteOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgInviteConnection + """The method to use when ordering `Index`.""" + orderBy: [IndexOrderBy!] = [PRIMARY_KEY_ASC] + ): IndexConnection - """Reads and enables pagination through a set of `OrgMembership`.""" - orgMemberships( + """Reads and enables pagination through a set of `LimitsModule`.""" + limitsModules( """Only read the first `n` values of the set.""" first: Int @@ -48646,11 +51865,11 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: OrgMembershipFilter + where: LimitsModuleFilter - """The method to use when ordering `OrgMembership`.""" - orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] - ): OrgMembershipConnection + """The method to use when ordering `LimitsModule`.""" + orderBy: [LimitsModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): LimitsModuleConnection """Reads and enables pagination through a set of `BlueprintTemplate`.""" blueprintTemplates( @@ -48710,8 +51929,8 @@ type Query { orderBy: [HierarchyModuleOrderBy!] = [PRIMARY_KEY_ASC] ): HierarchyModuleConnection - """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" - foreignKeyConstraints( + """Reads and enables pagination through a set of `ProfilesModule`.""" + profilesModules( """Only read the first `n` values of the set.""" first: Int @@ -48733,14 +51952,14 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: ForeignKeyConstraintFilter + where: ProfilesModuleFilter - """The method to use when ordering `ForeignKeyConstraint`.""" - orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] - ): ForeignKeyConstraintConnection + """The method to use when ordering `ProfilesModule`.""" + orderBy: [ProfilesModuleOrderBy!] = [PRIMARY_KEY_ASC] + ): ProfilesModuleConnection - """Reads and enables pagination through a set of `Table`.""" - tables( + """Reads and enables pagination through a set of `OrgMembership`.""" + orgMemberships( """Only read the first `n` values of the set.""" first: Int @@ -48762,11 +51981,40 @@ type Query { """ A filter to be used in determining which values should be returned by the collection. """ - where: TableFilter + where: OrgMembershipFilter - """The method to use when ordering `Table`.""" - orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] - ): TableConnection + """The method to use when ordering `OrgMembership`.""" + orderBy: [OrgMembershipOrderBy!] = [PRIMARY_KEY_ASC] + ): OrgMembershipConnection + + """Reads and enables pagination through a set of `ForeignKeyConstraint`.""" + foreignKeyConstraints( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: ForeignKeyConstraintFilter + + """The method to use when ordering `ForeignKeyConstraint`.""" + orderBy: [ForeignKeyConstraintOrderBy!] = [PRIMARY_KEY_ASC] + ): ForeignKeyConstraintConnection """Reads and enables pagination through a set of `StorageModule`.""" storageModules( @@ -48797,6 +52045,35 @@ type Query { orderBy: [StorageModuleOrderBy!] = [PRIMARY_KEY_ASC] ): StorageModuleConnection + """Reads and enables pagination through a set of `Table`.""" + tables( + """Only read the first `n` values of the set.""" + first: Int + + """Only read the last `n` values of the set.""" + last: Int + + """ + Skip the first `n` values from our `after` cursor, an alternative to cursor + based pagination. May not be used with `last`. + """ + offset: Int + + """Read all values in the set before (above) this cursor.""" + before: Cursor + + """Read all values in the set after (below) this cursor.""" + after: Cursor + + """ + A filter to be used in determining which values should be returned by the collection. + """ + where: TableFilter + + """The method to use when ordering `Table`.""" + orderBy: [TableOrderBy!] = [PRIMARY_KEY_ASC] + ): TableConnection + """Reads and enables pagination through a set of `EntityTypeProvision`.""" entityTypeProvisions( """Only read the first `n` values of the set.""" @@ -49257,6 +52534,18 @@ type Mutation { """ input: CreateApiKeyInput! ): CreateApiKeyPayload + sendVerificationEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: SendVerificationEmailInput! + ): SendVerificationEmailPayload + forgotPassword( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: ForgotPasswordInput! + ): ForgotPasswordPayload signUp( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. @@ -49285,18 +52574,6 @@ type Mutation { """ input: ProvisionTableInput! ): ProvisionTablePayload - sendVerificationEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: SendVerificationEmailInput! - ): SendVerificationEmailPayload - forgotPassword( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ForgotPasswordInput! - ): ForgotPasswordPayload """Creates a single `DefaultIdsModule`.""" createDefaultIdsModule( @@ -49306,6 +52583,14 @@ type Mutation { input: CreateDefaultIdsModuleInput! ): CreateDefaultIdsModulePayload + """Creates a single `RoleType`.""" + createRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateRoleTypeInput! + ): CreateRoleTypePayload + """Creates a single `ViewTable`.""" createViewTable( """ @@ -49322,14 +52607,6 @@ type Mutation { input: CreateApiSchemaInput! ): CreateApiSchemaPayload - """Creates a single `SiteTheme`.""" - createSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteThemeInput! - ): CreateSiteThemePayload - """Creates a single `OrgMember`.""" createOrgMember( """ @@ -49338,13 +52615,13 @@ type Mutation { input: CreateOrgMemberInput! ): CreateOrgMemberPayload - """Creates a single `AppPermissionDefault`.""" - createAppPermissionDefault( + """Creates a single `SiteTheme`.""" + createSiteTheme( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppPermissionDefaultInput! - ): CreateAppPermissionDefaultPayload + input: CreateSiteThemeInput! + ): CreateSiteThemePayload """Creates a single `IdentityProvider`.""" createIdentityProvider( @@ -49370,22 +52647,6 @@ type Mutation { input: CreateStoreInput! ): CreateStorePayload - """Creates a single `ApiModule`.""" - createApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateApiModuleInput! - ): CreateApiModulePayload - - """Creates a single `SiteModule`.""" - createSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSiteModuleInput! - ): CreateSiteModulePayload - """Creates a single `EncryptedSecretsModule`.""" createEncryptedSecretsModule( """ @@ -49410,21 +52671,29 @@ type Mutation { input: CreateSecretsModuleInput! ): CreateSecretsModulePayload - """Creates a single `RoleType`.""" - createRoleType( + """Creates a single `AppPermissionDefault`.""" + createAppPermissionDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateRoleTypeInput! - ): CreateRoleTypePayload + input: CreateAppPermissionDefaultInput! + ): CreateAppPermissionDefaultPayload - """Creates a single `OrgPermissionDefault`.""" - createOrgPermissionDefault( + """Creates a single `ApiModule`.""" + createApiModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgPermissionDefaultInput! - ): CreateOrgPermissionDefaultPayload + input: CreateApiModuleInput! + ): CreateApiModulePayload + + """Creates a single `SiteModule`.""" + createSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSiteModuleInput! + ): CreateSiteModulePayload """Creates a single `SchemaGrant`.""" createSchemaGrant( @@ -49482,29 +52751,61 @@ type Mutation { input: CreateAppOwnerGrantInput! ): CreateAppOwnerGrantPayload - """Creates a single `MigrateFile`.""" - createMigrateFile( + """Creates a single `AppAchievement`.""" + createAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMigrateFileInput! - ): CreateMigrateFilePayload + input: CreateAppAchievementInput! + ): CreateAppAchievementPayload - """Creates a single `AppLimitDefault`.""" - createAppLimitDefault( + """Creates a single `AppStep`.""" + createAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppLimitDefaultInput! - ): CreateAppLimitDefaultPayload + input: CreateAppStepInput! + ): CreateAppStepPayload - """Creates a single `OrgLimitDefault`.""" - createOrgLimitDefault( + """Creates a single `OrgPermissionDefault`.""" + createOrgPermissionDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitDefaultInput! - ): CreateOrgLimitDefaultPayload + input: CreateOrgPermissionDefaultInput! + ): CreateOrgPermissionDefaultPayload + + """Creates a single `AppPermission`.""" + createAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppPermissionInput! + ): CreateAppPermissionPayload + + """Creates a single `OrgPermission`.""" + createOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgPermissionInput! + ): CreateOrgPermissionPayload + + """Creates a single `MembershipType`.""" + createMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMembershipTypeInput! + ): CreateMembershipTypePayload + + """Creates a single `MigrateFile`.""" + createMigrateFile( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateMigrateFileInput! + ): CreateMigrateFilePayload """Creates a single `DefaultPrivilege`.""" createDefaultPrivilege( @@ -49594,21 +52895,37 @@ type Mutation { input: CreateOrgOwnerGrantInput! ): CreateOrgOwnerGrantPayload - """Creates a single `UserConnectedAccount`.""" - createUserConnectedAccount( + """Creates a single `NodeTypeRegistry`.""" + createNodeTypeRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateUserConnectedAccountInput! - ): CreateUserConnectedAccountPayload + input: CreateNodeTypeRegistryInput! + ): CreateNodeTypeRegistryPayload - """Creates a single `Object`.""" - createObject( + """Creates a single `AppLimitDefault`.""" + createAppLimitDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateObjectInput! - ): CreateObjectPayload + input: CreateAppLimitDefaultInput! + ): CreateAppLimitDefaultPayload + + """Creates a single `OrgLimitDefault`.""" + createOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitDefaultInput! + ): CreateOrgLimitDefaultPayload + + """Creates a single `UserConnectedAccount`.""" + createUserConnectedAccount( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateUserConnectedAccountInput! + ): CreateUserConnectedAccountPayload """Creates a single `Database`.""" createDatabase( @@ -49634,45 +52951,21 @@ type Mutation { input: CreateCryptoAddressInput! ): CreateCryptoAddressPayload - """Creates a single `AppPermission`.""" - createAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppPermissionInput! - ): CreateAppPermissionPayload - - """Creates a single `OrgPermission`.""" - createOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgPermissionInput! - ): CreateOrgPermissionPayload - - """Creates a single `AppLimit`.""" - createAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLimitInput! - ): CreateAppLimitPayload - - """Creates a single `AppAchievement`.""" - createAppAchievement( + """Creates a single `AgentMessage`.""" + createAgentMessage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppAchievementInput! - ): CreateAppAchievementPayload + input: CreateAgentMessageInput! + ): CreateAgentMessagePayload - """Creates a single `AppStep`.""" - createAppStep( + """Creates a single `Object`.""" + createObject( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAppStepInput! - ): CreateAppStepPayload + input: CreateObjectInput! + ): CreateObjectPayload """Creates a single `SiteMetadatum`.""" createSiteMetadatum( @@ -49682,29 +52975,13 @@ type Mutation { input: CreateSiteMetadatumInput! ): CreateSiteMetadatumPayload - """Creates a single `AppClaimedInvite`.""" - createAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppClaimedInviteInput! - ): CreateAppClaimedInvitePayload - - """Creates a single `AppMembershipDefault`.""" - createAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppMembershipDefaultInput! - ): CreateAppMembershipDefaultPayload - - """Creates a single `OrgMembershipDefault`.""" - createOrgMembershipDefault( + """Creates a single `AppLevelRequirement`.""" + createAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipDefaultInput! - ): CreateOrgMembershipDefaultPayload + input: CreateAppLevelRequirementInput! + ): CreateAppLevelRequirementPayload """Creates a single `FullTextSearch`.""" createFullTextSearch( @@ -49754,21 +53031,37 @@ type Mutation { input: CreatePhoneNumberInput! ): CreatePhoneNumberPayload - """Creates a single `OrgLimit`.""" - createOrgLimit( + """Creates a single `AppClaimedInvite`.""" + createAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgLimitInput! - ): CreateOrgLimitPayload + input: CreateAppClaimedInviteInput! + ): CreateAppClaimedInvitePayload - """Creates a single `MembershipType`.""" - createMembershipType( + """Creates a single `AppMembershipDefault`.""" + createAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateMembershipTypeInput! - ): CreateMembershipTypePayload + input: CreateAppMembershipDefaultInput! + ): CreateAppMembershipDefaultPayload + + """Creates a single `OrgMembershipDefault`.""" + createOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipDefaultInput! + ): CreateOrgMembershipDefaultPayload + + """Creates a single `AuditLog`.""" + createAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAuditLogInput! + ): CreateAuditLogPayload """Creates a single `Domain`.""" createDomain( @@ -49778,6 +53071,30 @@ type Mutation { input: CreateDomainInput! ): CreateDomainPayload + """Creates a single `AgentTask`.""" + createAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentTaskInput! + ): CreateAgentTaskPayload + + """Creates a single `AgentThread`.""" + createAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAgentThreadInput! + ): CreateAgentThreadPayload + + """Creates a single `Email`.""" + createEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateEmailInput! + ): CreateEmailPayload + """Creates a single `AppGrant`.""" createAppGrant( """ @@ -49794,6 +53111,22 @@ type Mutation { input: CreateOrgClaimedInviteInput! ): CreateOrgClaimedInvitePayload + """Creates a single `AppLimitEvent`.""" + createAppLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppLimitEventInput! + ): CreateAppLimitEventPayload + + """Creates a single `OrgLimitEvent`.""" + createOrgLimitEvent( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitEventInput! + ): CreateOrgLimitEventPayload + """Creates a single `OrgChartEdge`.""" createOrgChartEdge( """ @@ -49802,13 +53135,21 @@ type Mutation { input: CreateOrgChartEdgeInput! ): CreateOrgChartEdgePayload - """Creates a single `OrgGrant`.""" - createOrgGrant( + """Creates a single `AppLimit`.""" + createAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgGrantInput! - ): CreateOrgGrantPayload + input: CreateAppLimitInput! + ): CreateAppLimitPayload + + """Creates a single `OrgLimitAggregate`.""" + createOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitAggregateInput! + ): CreateOrgLimitAggregatePayload """Creates a single `BlueprintConstruction`.""" createBlueprintConstruction( @@ -49818,6 +53159,14 @@ type Mutation { input: CreateBlueprintConstructionInput! ): CreateBlueprintConstructionPayload + """Creates a single `PlansModule`.""" + createPlansModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePlansModuleInput! + ): CreatePlansModulePayload + """Creates a single `RlsModule`.""" createRlsModule( """ @@ -49834,21 +53183,13 @@ type Mutation { input: CreateSessionsModuleInput! ): CreateSessionsModulePayload - """Creates a single `AppLevelRequirement`.""" - createAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppLevelRequirementInput! - ): CreateAppLevelRequirementPayload - - """Creates a single `AuditLog`.""" - createAuditLog( + """Creates a single `OrgGrant`.""" + createOrgGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAuditLogInput! - ): CreateAuditLogPayload + input: CreateOrgGrantInput! + ): CreateOrgGrantPayload """Creates a single `AppLevel`.""" createAppLevel( @@ -49858,6 +53199,14 @@ type Mutation { input: CreateAppLevelInput! ): CreateAppLevelPayload + """Creates a single `OrgLimit`.""" + createOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgLimitInput! + ): CreateOrgLimitPayload + """Creates a single `Blueprint`.""" createBlueprint( """ @@ -49874,14 +53223,6 @@ type Mutation { input: CreateDenormalizedTableFieldInput! ): CreateDenormalizedTableFieldPayload - """Creates a single `Email`.""" - createEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateEmailInput! - ): CreateEmailPayload - """Creates a single `OrgMemberProfile`.""" createOrgMemberProfile( """ @@ -49898,22 +53239,6 @@ type Mutation { input: CreateSqlActionInput! ): CreateSqlActionPayload - """Creates a single `SecureTableProvision`.""" - createSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSecureTableProvisionInput! - ): CreateSecureTableProvisionPayload - - """Creates a single `OrgMembershipSetting`.""" - createOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateOrgMembershipSettingInput! - ): CreateOrgMembershipSettingPayload - """Creates a single `DatabaseTransfer`.""" createDatabaseTransfer( """ @@ -49922,6 +53247,14 @@ type Mutation { input: CreateDatabaseTransferInput! ): CreateDatabaseTransferPayload + """Creates a single `BillingModule`.""" + createBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateBillingModuleInput! + ): CreateBillingModulePayload + """Creates a single `CryptoAuthModule`.""" createCryptoAuthModule( """ @@ -49946,6 +53279,22 @@ type Mutation { input: CreateInvitesModuleInput! ): CreateInvitesModulePayload + """Creates a single `SecureTableProvision`.""" + createSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSecureTableProvisionInput! + ): CreateSecureTableProvisionPayload + + """Creates a single `AstMigration`.""" + createAstMigration( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAstMigrationInput! + ): CreateAstMigrationPayload + """Creates a single `Enum`.""" createEnum( """ @@ -49978,6 +53327,22 @@ type Mutation { input: CreateWebauthnAuthModuleInput! ): CreateWebauthnAuthModulePayload + """Creates a single `AppInvite`.""" + createAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateAppInviteInput! + ): CreateAppInvitePayload + + """Creates a single `OrgMembershipSetting`.""" + createOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateOrgMembershipSettingInput! + ): CreateOrgMembershipSettingPayload + """Creates a single `App`.""" createApp( """ @@ -49994,13 +53359,29 @@ type Mutation { input: CreateSiteInput! ): CreateSitePayload - """Creates a single `AstMigration`.""" - createAstMigration( + """Creates a single `NotificationsModule`.""" + createNotificationsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateAstMigrationInput! - ): CreateAstMigrationPayload + input: CreateNotificationsModuleInput! + ): CreateNotificationsModulePayload + + """Creates a single `PermissionsModule`.""" + createPermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreatePermissionsModuleInput! + ): CreatePermissionsModulePayload + + """Creates a single `WebauthnCredential`.""" + createWebauthnCredential( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateWebauthnCredentialInput! + ): CreateWebauthnCredentialPayload """Creates a single `PrimaryKeyConstraint`.""" createPrimaryKeyConstraint( @@ -50050,30 +53431,6 @@ type Mutation { input: CreatePolicyInput! ): CreatePolicyPayload - """Creates a single `NotificationsModule`.""" - createNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateNotificationsModuleInput! - ): CreateNotificationsModulePayload - - """Creates a single `PermissionsModule`.""" - createPermissionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreatePermissionsModuleInput! - ): CreatePermissionsModulePayload - - """Creates a single `AppInvite`.""" - createAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateAppInviteInput! - ): CreateAppInvitePayload - """Creates a single `EmbeddingChunk`.""" createEmbeddingChunk( """ @@ -50082,29 +53439,13 @@ type Mutation { input: CreateEmbeddingChunkInput! ): CreateEmbeddingChunkPayload - """Creates a single `Schema`.""" - createSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateSchemaInput! - ): CreateSchemaPayload - - """Creates a single `LimitsModule`.""" - createLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateLimitsModuleInput! - ): CreateLimitsModulePayload - - """Creates a single `ProfilesModule`.""" - createProfilesModule( + """Creates a single `OrgInvite`.""" + createOrgInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateProfilesModuleInput! - ): CreateProfilesModulePayload + input: CreateOrgInviteInput! + ): CreateOrgInvitePayload """Creates a single `AppMembership`.""" createAppMembership( @@ -50114,6 +53455,14 @@ type Mutation { input: CreateAppMembershipInput! ): CreateAppMembershipPayload + """Creates a single `Schema`.""" + createSchema( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateSchemaInput! + ): CreateSchemaPayload + """Creates a single `Index`.""" createIndex( """ @@ -50122,45 +53471,45 @@ type Mutation { input: CreateIndexInput! ): CreateIndexPayload - """Creates a single `WebauthnCredential`.""" - createWebauthnCredential( + """Creates a single `LimitsModule`.""" + createLimitsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateWebauthnCredentialInput! - ): CreateWebauthnCredentialPayload + input: CreateLimitsModuleInput! + ): CreateLimitsModulePayload - """Creates a single `OrgInvite`.""" - createOrgInvite( + """Creates a single `BlueprintTemplate`.""" + createBlueprintTemplate( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgInviteInput! - ): CreateOrgInvitePayload + input: CreateBlueprintTemplateInput! + ): CreateBlueprintTemplatePayload - """Creates a single `OrgMembership`.""" - createOrgMembership( + """Creates a single `HierarchyModule`.""" + createHierarchyModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateOrgMembershipInput! - ): CreateOrgMembershipPayload + input: CreateHierarchyModuleInput! + ): CreateHierarchyModulePayload - """Creates a single `BlueprintTemplate`.""" - createBlueprintTemplate( + """Creates a single `ProfilesModule`.""" + createProfilesModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateBlueprintTemplateInput! - ): CreateBlueprintTemplatePayload + input: CreateProfilesModuleInput! + ): CreateProfilesModulePayload - """Creates a single `HierarchyModule`.""" - createHierarchyModule( + """Creates a single `OrgMembership`.""" + createOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: CreateHierarchyModuleInput! - ): CreateHierarchyModulePayload + input: CreateOrgMembershipInput! + ): CreateOrgMembershipPayload """Creates a single `ForeignKeyConstraint`.""" createForeignKeyConstraint( @@ -50170,14 +53519,6 @@ type Mutation { input: CreateForeignKeyConstraintInput! ): CreateForeignKeyConstraintPayload - """Creates a single `Table`.""" - createTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: CreateTableInput! - ): CreateTablePayload - """Creates a single `StorageModule`.""" createStorageModule( """ @@ -50186,6 +53527,14 @@ type Mutation { input: CreateStorageModuleInput! ): CreateStorageModulePayload + """Creates a single `Table`.""" + createTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: CreateTableInput! + ): CreateTablePayload + """Creates a single `EntityTypeProvision`.""" createEntityTypeProvision( """ @@ -50242,6 +53591,14 @@ type Mutation { input: UpdateDefaultIdsModuleInput! ): UpdateDefaultIdsModulePayload + """Updates a single `RoleType` using a unique key and a patch.""" + updateRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateRoleTypeInput! + ): UpdateRoleTypePayload + """Updates a single `ViewTable` using a unique key and a patch.""" updateViewTable( """ @@ -50258,14 +53615,6 @@ type Mutation { input: UpdateApiSchemaInput! ): UpdateApiSchemaPayload - """Updates a single `SiteTheme` using a unique key and a patch.""" - updateSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteThemeInput! - ): UpdateSiteThemePayload - """Updates a single `OrgMember` using a unique key and a patch.""" updateOrgMember( """ @@ -50274,15 +53623,13 @@ type Mutation { input: UpdateOrgMemberInput! ): UpdateOrgMemberPayload - """ - Updates a single `AppPermissionDefault` using a unique key and a patch. - """ - updateAppPermissionDefault( + """Updates a single `SiteTheme` using a unique key and a patch.""" + updateSiteTheme( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppPermissionDefaultInput! - ): UpdateAppPermissionDefaultPayload + input: UpdateSiteThemeInput! + ): UpdateSiteThemePayload """Updates a single `Ref` using a unique key and a patch.""" updateRef( @@ -50300,22 +53647,6 @@ type Mutation { input: UpdateStoreInput! ): UpdateStorePayload - """Updates a single `ApiModule` using a unique key and a patch.""" - updateApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateApiModuleInput! - ): UpdateApiModulePayload - - """Updates a single `SiteModule` using a unique key and a patch.""" - updateSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSiteModuleInput! - ): UpdateSiteModulePayload - """ Updates a single `EncryptedSecretsModule` using a unique key and a patch. """ @@ -50344,23 +53675,31 @@ type Mutation { input: UpdateSecretsModuleInput! ): UpdateSecretsModulePayload - """Updates a single `RoleType` using a unique key and a patch.""" - updateRoleType( + """ + Updates a single `AppPermissionDefault` using a unique key and a patch. + """ + updateAppPermissionDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateRoleTypeInput! - ): UpdateRoleTypePayload + input: UpdateAppPermissionDefaultInput! + ): UpdateAppPermissionDefaultPayload - """ - Updates a single `OrgPermissionDefault` using a unique key and a patch. - """ - updateOrgPermissionDefault( + """Updates a single `ApiModule` using a unique key and a patch.""" + updateApiModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgPermissionDefaultInput! - ): UpdateOrgPermissionDefaultPayload + input: UpdateApiModuleInput! + ): UpdateApiModulePayload + + """Updates a single `SiteModule` using a unique key and a patch.""" + updateSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSiteModuleInput! + ): UpdateSiteModulePayload """Updates a single `SchemaGrant` using a unique key and a patch.""" updateSchemaGrant( @@ -50422,21 +53761,55 @@ type Mutation { input: UpdateAppOwnerGrantInput! ): UpdateAppOwnerGrantPayload - """Updates a single `AppLimitDefault` using a unique key and a patch.""" - updateAppLimitDefault( + """Updates a single `AppAchievement` using a unique key and a patch.""" + updateAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppLimitDefaultInput! - ): UpdateAppLimitDefaultPayload + input: UpdateAppAchievementInput! + ): UpdateAppAchievementPayload - """Updates a single `OrgLimitDefault` using a unique key and a patch.""" - updateOrgLimitDefault( + """Updates a single `AppStep` using a unique key and a patch.""" + updateAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitDefaultInput! - ): UpdateOrgLimitDefaultPayload + input: UpdateAppStepInput! + ): UpdateAppStepPayload + + """ + Updates a single `OrgPermissionDefault` using a unique key and a patch. + """ + updateOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionDefaultInput! + ): UpdateOrgPermissionDefaultPayload + + """Updates a single `AppPermission` using a unique key and a patch.""" + updateAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppPermissionInput! + ): UpdateAppPermissionPayload + + """Updates a single `OrgPermission` using a unique key and a patch.""" + updateOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgPermissionInput! + ): UpdateOrgPermissionPayload + + """Updates a single `MembershipType` using a unique key and a patch.""" + updateMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateMembershipTypeInput! + ): UpdateMembershipTypePayload """Updates a single `DefaultPrivilege` using a unique key and a patch.""" updateDefaultPrivilege( @@ -50530,13 +53903,29 @@ type Mutation { input: UpdateOrgOwnerGrantInput! ): UpdateOrgOwnerGrantPayload - """Updates a single `Object` using a unique key and a patch.""" - updateObject( + """Updates a single `NodeTypeRegistry` using a unique key and a patch.""" + updateNodeTypeRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateObjectInput! - ): UpdateObjectPayload + input: UpdateNodeTypeRegistryInput! + ): UpdateNodeTypeRegistryPayload + + """Updates a single `AppLimitDefault` using a unique key and a patch.""" + updateAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppLimitDefaultInput! + ): UpdateAppLimitDefaultPayload + + """Updates a single `OrgLimitDefault` using a unique key and a patch.""" + updateOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitDefaultInput! + ): UpdateOrgLimitDefaultPayload """Updates a single `Database` using a unique key and a patch.""" updateDatabase( @@ -50564,45 +53953,21 @@ type Mutation { input: UpdateCryptoAddressInput! ): UpdateCryptoAddressPayload - """Updates a single `AppPermission` using a unique key and a patch.""" - updateAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppPermissionInput! - ): UpdateAppPermissionPayload - - """Updates a single `OrgPermission` using a unique key and a patch.""" - updateOrgPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgPermissionInput! - ): UpdateOrgPermissionPayload - - """Updates a single `AppLimit` using a unique key and a patch.""" - updateAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLimitInput! - ): UpdateAppLimitPayload - - """Updates a single `AppAchievement` using a unique key and a patch.""" - updateAppAchievement( + """Updates a single `AgentMessage` using a unique key and a patch.""" + updateAgentMessage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppAchievementInput! - ): UpdateAppAchievementPayload + input: UpdateAgentMessageInput! + ): UpdateAgentMessagePayload - """Updates a single `AppStep` using a unique key and a patch.""" - updateAppStep( + """Updates a single `Object` using a unique key and a patch.""" + updateObject( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAppStepInput! - ): UpdateAppStepPayload + input: UpdateObjectInput! + ): UpdateObjectPayload """Updates a single `SiteMetadatum` using a unique key and a patch.""" updateSiteMetadatum( @@ -50612,33 +53977,13 @@ type Mutation { input: UpdateSiteMetadatumInput! ): UpdateSiteMetadatumPayload - """Updates a single `AppClaimedInvite` using a unique key and a patch.""" - updateAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppClaimedInviteInput! - ): UpdateAppClaimedInvitePayload - - """ - Updates a single `AppMembershipDefault` using a unique key and a patch. - """ - updateAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppMembershipDefaultInput! - ): UpdateAppMembershipDefaultPayload - - """ - Updates a single `OrgMembershipDefault` using a unique key and a patch. - """ - updateOrgMembershipDefault( + """Updates a single `AppLevelRequirement` using a unique key and a patch.""" + updateAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipDefaultInput! - ): UpdateOrgMembershipDefaultPayload + input: UpdateAppLevelRequirementInput! + ): UpdateAppLevelRequirementPayload """Updates a single `FullTextSearch` using a unique key and a patch.""" updateFullTextSearch( @@ -50688,21 +54033,41 @@ type Mutation { input: UpdatePhoneNumberInput! ): UpdatePhoneNumberPayload - """Updates a single `OrgLimit` using a unique key and a patch.""" - updateOrgLimit( + """Updates a single `AppClaimedInvite` using a unique key and a patch.""" + updateAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgLimitInput! - ): UpdateOrgLimitPayload + input: UpdateAppClaimedInviteInput! + ): UpdateAppClaimedInvitePayload - """Updates a single `MembershipType` using a unique key and a patch.""" - updateMembershipType( + """ + Updates a single `AppMembershipDefault` using a unique key and a patch. + """ + updateAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateMembershipTypeInput! - ): UpdateMembershipTypePayload + input: UpdateAppMembershipDefaultInput! + ): UpdateAppMembershipDefaultPayload + + """ + Updates a single `OrgMembershipDefault` using a unique key and a patch. + """ + updateOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipDefaultInput! + ): UpdateOrgMembershipDefaultPayload + + """Updates a single `AuditLog` using a unique key and a patch.""" + updateAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAuditLogInput! + ): UpdateAuditLogPayload """Updates a single `Domain` using a unique key and a patch.""" updateDomain( @@ -50712,6 +54077,30 @@ type Mutation { input: UpdateDomainInput! ): UpdateDomainPayload + """Updates a single `AgentTask` using a unique key and a patch.""" + updateAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentTaskInput! + ): UpdateAgentTaskPayload + + """Updates a single `AgentThread` using a unique key and a patch.""" + updateAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAgentThreadInput! + ): UpdateAgentThreadPayload + + """Updates a single `Email` using a unique key and a patch.""" + updateEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateEmailInput! + ): UpdateEmailPayload + """Updates a single `AppGrant` using a unique key and a patch.""" updateAppGrant( """ @@ -50736,13 +54125,21 @@ type Mutation { input: UpdateOrgChartEdgeInput! ): UpdateOrgChartEdgePayload - """Updates a single `OrgGrant` using a unique key and a patch.""" - updateOrgGrant( + """Updates a single `AppLimit` using a unique key and a patch.""" + updateAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgGrantInput! - ): UpdateOrgGrantPayload + input: UpdateAppLimitInput! + ): UpdateAppLimitPayload + + """Updates a single `OrgLimitAggregate` using a unique key and a patch.""" + updateOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitAggregateInput! + ): UpdateOrgLimitAggregatePayload """ Updates a single `BlueprintConstruction` using a unique key and a patch. @@ -50754,6 +54151,14 @@ type Mutation { input: UpdateBlueprintConstructionInput! ): UpdateBlueprintConstructionPayload + """Updates a single `PlansModule` using a unique key and a patch.""" + updatePlansModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePlansModuleInput! + ): UpdatePlansModulePayload + """Updates a single `RlsModule` using a unique key and a patch.""" updateRlsModule( """ @@ -50770,21 +54175,13 @@ type Mutation { input: UpdateSessionsModuleInput! ): UpdateSessionsModulePayload - """Updates a single `AppLevelRequirement` using a unique key and a patch.""" - updateAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppLevelRequirementInput! - ): UpdateAppLevelRequirementPayload - - """Updates a single `AuditLog` using a unique key and a patch.""" - updateAuditLog( + """Updates a single `OrgGrant` using a unique key and a patch.""" + updateOrgGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateAuditLogInput! - ): UpdateAuditLogPayload + input: UpdateOrgGrantInput! + ): UpdateOrgGrantPayload """Updates a single `AppLevel` using a unique key and a patch.""" updateAppLevel( @@ -50794,6 +54191,14 @@ type Mutation { input: UpdateAppLevelInput! ): UpdateAppLevelPayload + """Updates a single `OrgLimit` using a unique key and a patch.""" + updateOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgLimitInput! + ): UpdateOrgLimitPayload + """Updates a single `Blueprint` using a unique key and a patch.""" updateBlueprint( """ @@ -50812,14 +54217,6 @@ type Mutation { input: UpdateDenormalizedTableFieldInput! ): UpdateDenormalizedTableFieldPayload - """Updates a single `Email` using a unique key and a patch.""" - updateEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateEmailInput! - ): UpdateEmailPayload - """Updates a single `OrgMemberProfile` using a unique key and a patch.""" updateOrgMemberProfile( """ @@ -50828,26 +54225,6 @@ type Mutation { input: UpdateOrgMemberProfileInput! ): UpdateOrgMemberProfilePayload - """ - Updates a single `SecureTableProvision` using a unique key and a patch. - """ - updateSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSecureTableProvisionInput! - ): UpdateSecureTableProvisionPayload - - """ - Updates a single `OrgMembershipSetting` using a unique key and a patch. - """ - updateOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateOrgMembershipSettingInput! - ): UpdateOrgMembershipSettingPayload - """Updates a single `DatabaseTransfer` using a unique key and a patch.""" updateDatabaseTransfer( """ @@ -50856,6 +54233,14 @@ type Mutation { input: UpdateDatabaseTransferInput! ): UpdateDatabaseTransferPayload + """Updates a single `BillingModule` using a unique key and a patch.""" + updateBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateBillingModuleInput! + ): UpdateBillingModulePayload + """Updates a single `CryptoAuthModule` using a unique key and a patch.""" updateCryptoAuthModule( """ @@ -50882,6 +54267,16 @@ type Mutation { input: UpdateInvitesModuleInput! ): UpdateInvitesModulePayload + """ + Updates a single `SecureTableProvision` using a unique key and a patch. + """ + updateSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateSecureTableProvisionInput! + ): UpdateSecureTableProvisionPayload + """Updates a single `Enum` using a unique key and a patch.""" updateEnum( """ @@ -50914,6 +54309,24 @@ type Mutation { input: UpdateWebauthnAuthModuleInput! ): UpdateWebauthnAuthModulePayload + """Updates a single `AppInvite` using a unique key and a patch.""" + updateAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateAppInviteInput! + ): UpdateAppInvitePayload + + """ + Updates a single `OrgMembershipSetting` using a unique key and a patch. + """ + updateOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipSettingInput! + ): UpdateOrgMembershipSettingPayload + """Updates a single `App` using a unique key and a patch.""" updateApp( """ @@ -50930,6 +54343,30 @@ type Mutation { input: UpdateSiteInput! ): UpdateSitePayload + """Updates a single `NotificationsModule` using a unique key and a patch.""" + updateNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateNotificationsModuleInput! + ): UpdateNotificationsModulePayload + + """Updates a single `PermissionsModule` using a unique key and a patch.""" + updatePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdatePermissionsModuleInput! + ): UpdatePermissionsModulePayload + + """Updates a single `WebauthnCredential` using a unique key and a patch.""" + updateWebauthnCredential( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateWebauthnCredentialInput! + ): UpdateWebauthnCredentialPayload + """ Updates a single `PrimaryKeyConstraint` using a unique key and a patch. """ @@ -50980,30 +54417,6 @@ type Mutation { input: UpdatePolicyInput! ): UpdatePolicyPayload - """Updates a single `NotificationsModule` using a unique key and a patch.""" - updateNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateNotificationsModuleInput! - ): UpdateNotificationsModulePayload - - """Updates a single `PermissionsModule` using a unique key and a patch.""" - updatePermissionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdatePermissionsModuleInput! - ): UpdatePermissionsModulePayload - - """Updates a single `AppInvite` using a unique key and a patch.""" - updateAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateAppInviteInput! - ): UpdateAppInvitePayload - """Updates a single `EmbeddingChunk` using a unique key and a patch.""" updateEmbeddingChunk( """ @@ -51012,29 +54425,13 @@ type Mutation { input: UpdateEmbeddingChunkInput! ): UpdateEmbeddingChunkPayload - """Updates a single `Schema` using a unique key and a patch.""" - updateSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateSchemaInput! - ): UpdateSchemaPayload - - """Updates a single `LimitsModule` using a unique key and a patch.""" - updateLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateLimitsModuleInput! - ): UpdateLimitsModulePayload - - """Updates a single `ProfilesModule` using a unique key and a patch.""" - updateProfilesModule( + """Updates a single `OrgInvite` using a unique key and a patch.""" + updateOrgInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateProfilesModuleInput! - ): UpdateProfilesModulePayload + input: UpdateOrgInviteInput! + ): UpdateOrgInvitePayload """Updates a single `AppMembership` using a unique key and a patch.""" updateAppMembership( @@ -51044,37 +54441,29 @@ type Mutation { input: UpdateAppMembershipInput! ): UpdateAppMembershipPayload - """Updates a single `Index` using a unique key and a patch.""" - updateIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateIndexInput! - ): UpdateIndexPayload - - """Updates a single `WebauthnCredential` using a unique key and a patch.""" - updateWebauthnCredential( + """Updates a single `Schema` using a unique key and a patch.""" + updateSchema( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateWebauthnCredentialInput! - ): UpdateWebauthnCredentialPayload + input: UpdateSchemaInput! + ): UpdateSchemaPayload - """Updates a single `OrgInvite` using a unique key and a patch.""" - updateOrgInvite( + """Updates a single `Index` using a unique key and a patch.""" + updateIndex( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgInviteInput! - ): UpdateOrgInvitePayload + input: UpdateIndexInput! + ): UpdateIndexPayload - """Updates a single `OrgMembership` using a unique key and a patch.""" - updateOrgMembership( + """Updates a single `LimitsModule` using a unique key and a patch.""" + updateLimitsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: UpdateOrgMembershipInput! - ): UpdateOrgMembershipPayload + input: UpdateLimitsModuleInput! + ): UpdateLimitsModulePayload """Updates a single `BlueprintTemplate` using a unique key and a patch.""" updateBlueprintTemplate( @@ -51092,6 +54481,22 @@ type Mutation { input: UpdateHierarchyModuleInput! ): UpdateHierarchyModulePayload + """Updates a single `ProfilesModule` using a unique key and a patch.""" + updateProfilesModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateProfilesModuleInput! + ): UpdateProfilesModulePayload + + """Updates a single `OrgMembership` using a unique key and a patch.""" + updateOrgMembership( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateOrgMembershipInput! + ): UpdateOrgMembershipPayload + """ Updates a single `ForeignKeyConstraint` using a unique key and a patch. """ @@ -51102,14 +54507,6 @@ type Mutation { input: UpdateForeignKeyConstraintInput! ): UpdateForeignKeyConstraintPayload - """Updates a single `Table` using a unique key and a patch.""" - updateTable( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: UpdateTableInput! - ): UpdateTablePayload - """Updates a single `StorageModule` using a unique key and a patch.""" updateStorageModule( """ @@ -51118,6 +54515,14 @@ type Mutation { input: UpdateStorageModuleInput! ): UpdateStorageModulePayload + """Updates a single `Table` using a unique key and a patch.""" + updateTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: UpdateTableInput! + ): UpdateTablePayload + """Updates a single `EntityTypeProvision` using a unique key and a patch.""" updateEntityTypeProvision( """ @@ -51174,6 +54579,14 @@ type Mutation { input: DeleteDefaultIdsModuleInput! ): DeleteDefaultIdsModulePayload + """Deletes a single `RoleType` using a unique key.""" + deleteRoleType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteRoleTypeInput! + ): DeleteRoleTypePayload + """Deletes a single `ViewTable` using a unique key.""" deleteViewTable( """ @@ -51190,14 +54603,6 @@ type Mutation { input: DeleteApiSchemaInput! ): DeleteApiSchemaPayload - """Deletes a single `SiteTheme` using a unique key.""" - deleteSiteTheme( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteThemeInput! - ): DeleteSiteThemePayload - """Deletes a single `OrgMember` using a unique key.""" deleteOrgMember( """ @@ -51206,13 +54611,13 @@ type Mutation { input: DeleteOrgMemberInput! ): DeleteOrgMemberPayload - """Deletes a single `AppPermissionDefault` using a unique key.""" - deleteAppPermissionDefault( + """Deletes a single `SiteTheme` using a unique key.""" + deleteSiteTheme( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppPermissionDefaultInput! - ): DeleteAppPermissionDefaultPayload + input: DeleteSiteThemeInput! + ): DeleteSiteThemePayload """Deletes a single `Ref` using a unique key.""" deleteRef( @@ -51230,22 +54635,6 @@ type Mutation { input: DeleteStoreInput! ): DeleteStorePayload - """Deletes a single `ApiModule` using a unique key.""" - deleteApiModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteApiModuleInput! - ): DeleteApiModulePayload - - """Deletes a single `SiteModule` using a unique key.""" - deleteSiteModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSiteModuleInput! - ): DeleteSiteModulePayload - """Deletes a single `EncryptedSecretsModule` using a unique key.""" deleteEncryptedSecretsModule( """ @@ -51270,21 +54659,29 @@ type Mutation { input: DeleteSecretsModuleInput! ): DeleteSecretsModulePayload - """Deletes a single `RoleType` using a unique key.""" - deleteRoleType( + """Deletes a single `AppPermissionDefault` using a unique key.""" + deleteAppPermissionDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteRoleTypeInput! - ): DeleteRoleTypePayload + input: DeleteAppPermissionDefaultInput! + ): DeleteAppPermissionDefaultPayload - """Deletes a single `OrgPermissionDefault` using a unique key.""" - deleteOrgPermissionDefault( + """Deletes a single `ApiModule` using a unique key.""" + deleteApiModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgPermissionDefaultInput! - ): DeleteOrgPermissionDefaultPayload + input: DeleteApiModuleInput! + ): DeleteApiModulePayload + + """Deletes a single `SiteModule` using a unique key.""" + deleteSiteModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSiteModuleInput! + ): DeleteSiteModulePayload """Deletes a single `SchemaGrant` using a unique key.""" deleteSchemaGrant( @@ -51342,21 +54739,53 @@ type Mutation { input: DeleteAppOwnerGrantInput! ): DeleteAppOwnerGrantPayload - """Deletes a single `AppLimitDefault` using a unique key.""" - deleteAppLimitDefault( + """Deletes a single `AppAchievement` using a unique key.""" + deleteAppAchievement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppLimitDefaultInput! - ): DeleteAppLimitDefaultPayload + input: DeleteAppAchievementInput! + ): DeleteAppAchievementPayload - """Deletes a single `OrgLimitDefault` using a unique key.""" - deleteOrgLimitDefault( + """Deletes a single `AppStep` using a unique key.""" + deleteAppStep( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitDefaultInput! - ): DeleteOrgLimitDefaultPayload + input: DeleteAppStepInput! + ): DeleteAppStepPayload + + """Deletes a single `OrgPermissionDefault` using a unique key.""" + deleteOrgPermissionDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionDefaultInput! + ): DeleteOrgPermissionDefaultPayload + + """Deletes a single `AppPermission` using a unique key.""" + deleteAppPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppPermissionInput! + ): DeleteAppPermissionPayload + + """Deletes a single `OrgPermission` using a unique key.""" + deleteOrgPermission( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgPermissionInput! + ): DeleteOrgPermissionPayload + + """Deletes a single `MembershipType` using a unique key.""" + deleteMembershipType( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteMembershipTypeInput! + ): DeleteMembershipTypePayload """Deletes a single `DefaultPrivilege` using a unique key.""" deleteDefaultPrivilege( @@ -51446,13 +54875,29 @@ type Mutation { input: DeleteOrgOwnerGrantInput! ): DeleteOrgOwnerGrantPayload - """Deletes a single `Object` using a unique key.""" - deleteObject( + """Deletes a single `NodeTypeRegistry` using a unique key.""" + deleteNodeTypeRegistry( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteObjectInput! - ): DeleteObjectPayload + input: DeleteNodeTypeRegistryInput! + ): DeleteNodeTypeRegistryPayload + + """Deletes a single `AppLimitDefault` using a unique key.""" + deleteAppLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppLimitDefaultInput! + ): DeleteAppLimitDefaultPayload + + """Deletes a single `OrgLimitDefault` using a unique key.""" + deleteOrgLimitDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitDefaultInput! + ): DeleteOrgLimitDefaultPayload """Deletes a single `Database` using a unique key.""" deleteDatabase( @@ -51478,45 +54923,21 @@ type Mutation { input: DeleteCryptoAddressInput! ): DeleteCryptoAddressPayload - """Deletes a single `AppPermission` using a unique key.""" - deleteAppPermission( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppPermissionInput! - ): DeleteAppPermissionPayload - - """Deletes a single `OrgPermission` using a unique key.""" - deleteOrgPermission( + """Deletes a single `AgentMessage` using a unique key.""" + deleteAgentMessage( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgPermissionInput! - ): DeleteOrgPermissionPayload + input: DeleteAgentMessageInput! + ): DeleteAgentMessagePayload - """Deletes a single `AppLimit` using a unique key.""" - deleteAppLimit( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLimitInput! - ): DeleteAppLimitPayload - - """Deletes a single `AppAchievement` using a unique key.""" - deleteAppAchievement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppAchievementInput! - ): DeleteAppAchievementPayload - - """Deletes a single `AppStep` using a unique key.""" - deleteAppStep( + """Deletes a single `Object` using a unique key.""" + deleteObject( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAppStepInput! - ): DeleteAppStepPayload + input: DeleteObjectInput! + ): DeleteObjectPayload """Deletes a single `SiteMetadatum` using a unique key.""" deleteSiteMetadatum( @@ -51526,29 +54947,13 @@ type Mutation { input: DeleteSiteMetadatumInput! ): DeleteSiteMetadatumPayload - """Deletes a single `AppClaimedInvite` using a unique key.""" - deleteAppClaimedInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppClaimedInviteInput! - ): DeleteAppClaimedInvitePayload - - """Deletes a single `AppMembershipDefault` using a unique key.""" - deleteAppMembershipDefault( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppMembershipDefaultInput! - ): DeleteAppMembershipDefaultPayload - - """Deletes a single `OrgMembershipDefault` using a unique key.""" - deleteOrgMembershipDefault( + """Deletes a single `AppLevelRequirement` using a unique key.""" + deleteAppLevelRequirement( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipDefaultInput! - ): DeleteOrgMembershipDefaultPayload + input: DeleteAppLevelRequirementInput! + ): DeleteAppLevelRequirementPayload """Deletes a single `FullTextSearch` using a unique key.""" deleteFullTextSearch( @@ -51598,21 +55003,37 @@ type Mutation { input: DeletePhoneNumberInput! ): DeletePhoneNumberPayload - """Deletes a single `OrgLimit` using a unique key.""" - deleteOrgLimit( + """Deletes a single `AppClaimedInvite` using a unique key.""" + deleteAppClaimedInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgLimitInput! - ): DeleteOrgLimitPayload + input: DeleteAppClaimedInviteInput! + ): DeleteAppClaimedInvitePayload - """Deletes a single `MembershipType` using a unique key.""" - deleteMembershipType( + """Deletes a single `AppMembershipDefault` using a unique key.""" + deleteAppMembershipDefault( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteMembershipTypeInput! - ): DeleteMembershipTypePayload + input: DeleteAppMembershipDefaultInput! + ): DeleteAppMembershipDefaultPayload + + """Deletes a single `OrgMembershipDefault` using a unique key.""" + deleteOrgMembershipDefault( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipDefaultInput! + ): DeleteOrgMembershipDefaultPayload + + """Deletes a single `AuditLog` using a unique key.""" + deleteAuditLog( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAuditLogInput! + ): DeleteAuditLogPayload """Deletes a single `Domain` using a unique key.""" deleteDomain( @@ -51622,6 +55043,30 @@ type Mutation { input: DeleteDomainInput! ): DeleteDomainPayload + """Deletes a single `AgentTask` using a unique key.""" + deleteAgentTask( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentTaskInput! + ): DeleteAgentTaskPayload + + """Deletes a single `AgentThread` using a unique key.""" + deleteAgentThread( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAgentThreadInput! + ): DeleteAgentThreadPayload + + """Deletes a single `Email` using a unique key.""" + deleteEmail( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteEmailInput! + ): DeleteEmailPayload + """Deletes a single `AppGrant` using a unique key.""" deleteAppGrant( """ @@ -51646,13 +55091,21 @@ type Mutation { input: DeleteOrgChartEdgeInput! ): DeleteOrgChartEdgePayload - """Deletes a single `OrgGrant` using a unique key.""" - deleteOrgGrant( + """Deletes a single `AppLimit` using a unique key.""" + deleteAppLimit( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgGrantInput! - ): DeleteOrgGrantPayload + input: DeleteAppLimitInput! + ): DeleteAppLimitPayload + + """Deletes a single `OrgLimitAggregate` using a unique key.""" + deleteOrgLimitAggregate( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitAggregateInput! + ): DeleteOrgLimitAggregatePayload """Deletes a single `BlueprintConstruction` using a unique key.""" deleteBlueprintConstruction( @@ -51662,6 +55115,14 @@ type Mutation { input: DeleteBlueprintConstructionInput! ): DeleteBlueprintConstructionPayload + """Deletes a single `PlansModule` using a unique key.""" + deletePlansModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePlansModuleInput! + ): DeletePlansModulePayload + """Deletes a single `RlsModule` using a unique key.""" deleteRlsModule( """ @@ -51678,21 +55139,13 @@ type Mutation { input: DeleteSessionsModuleInput! ): DeleteSessionsModulePayload - """Deletes a single `AppLevelRequirement` using a unique key.""" - deleteAppLevelRequirement( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppLevelRequirementInput! - ): DeleteAppLevelRequirementPayload - - """Deletes a single `AuditLog` using a unique key.""" - deleteAuditLog( + """Deletes a single `OrgGrant` using a unique key.""" + deleteOrgGrant( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteAuditLogInput! - ): DeleteAuditLogPayload + input: DeleteOrgGrantInput! + ): DeleteOrgGrantPayload """Deletes a single `AppLevel` using a unique key.""" deleteAppLevel( @@ -51702,6 +55155,14 @@ type Mutation { input: DeleteAppLevelInput! ): DeleteAppLevelPayload + """Deletes a single `OrgLimit` using a unique key.""" + deleteOrgLimit( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgLimitInput! + ): DeleteOrgLimitPayload + """Deletes a single `Blueprint` using a unique key.""" deleteBlueprint( """ @@ -51718,14 +55179,6 @@ type Mutation { input: DeleteDenormalizedTableFieldInput! ): DeleteDenormalizedTableFieldPayload - """Deletes a single `Email` using a unique key.""" - deleteEmail( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteEmailInput! - ): DeleteEmailPayload - """Deletes a single `OrgMemberProfile` using a unique key.""" deleteOrgMemberProfile( """ @@ -51734,22 +55187,6 @@ type Mutation { input: DeleteOrgMemberProfileInput! ): DeleteOrgMemberProfilePayload - """Deletes a single `SecureTableProvision` using a unique key.""" - deleteSecureTableProvision( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSecureTableProvisionInput! - ): DeleteSecureTableProvisionPayload - - """Deletes a single `OrgMembershipSetting` using a unique key.""" - deleteOrgMembershipSetting( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteOrgMembershipSettingInput! - ): DeleteOrgMembershipSettingPayload - """Deletes a single `DatabaseTransfer` using a unique key.""" deleteDatabaseTransfer( """ @@ -51758,6 +55195,14 @@ type Mutation { input: DeleteDatabaseTransferInput! ): DeleteDatabaseTransferPayload + """Deletes a single `BillingModule` using a unique key.""" + deleteBillingModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteBillingModuleInput! + ): DeleteBillingModulePayload + """Deletes a single `CryptoAuthModule` using a unique key.""" deleteCryptoAuthModule( """ @@ -51782,6 +55227,14 @@ type Mutation { input: DeleteInvitesModuleInput! ): DeleteInvitesModulePayload + """Deletes a single `SecureTableProvision` using a unique key.""" + deleteSecureTableProvision( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteSecureTableProvisionInput! + ): DeleteSecureTableProvisionPayload + """Deletes a single `Enum` using a unique key.""" deleteEnum( """ @@ -51814,6 +55267,22 @@ type Mutation { input: DeleteWebauthnAuthModuleInput! ): DeleteWebauthnAuthModulePayload + """Deletes a single `AppInvite` using a unique key.""" + deleteAppInvite( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteAppInviteInput! + ): DeleteAppInvitePayload + + """Deletes a single `OrgMembershipSetting` using a unique key.""" + deleteOrgMembershipSetting( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteOrgMembershipSettingInput! + ): DeleteOrgMembershipSettingPayload + """Deletes a single `App` using a unique key.""" deleteApp( """ @@ -51830,6 +55299,30 @@ type Mutation { input: DeleteSiteInput! ): DeleteSitePayload + """Deletes a single `NotificationsModule` using a unique key.""" + deleteNotificationsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteNotificationsModuleInput! + ): DeleteNotificationsModulePayload + + """Deletes a single `PermissionsModule` using a unique key.""" + deletePermissionsModule( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeletePermissionsModuleInput! + ): DeletePermissionsModulePayload + + """Deletes a single `WebauthnCredential` using a unique key.""" + deleteWebauthnCredential( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteWebauthnCredentialInput! + ): DeleteWebauthnCredentialPayload + """Deletes a single `PrimaryKeyConstraint` using a unique key.""" deletePrimaryKeyConstraint( """ @@ -51878,30 +55371,6 @@ type Mutation { input: DeletePolicyInput! ): DeletePolicyPayload - """Deletes a single `NotificationsModule` using a unique key.""" - deleteNotificationsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteNotificationsModuleInput! - ): DeleteNotificationsModulePayload - - """Deletes a single `PermissionsModule` using a unique key.""" - deletePermissionsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeletePermissionsModuleInput! - ): DeletePermissionsModulePayload - - """Deletes a single `AppInvite` using a unique key.""" - deleteAppInvite( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteAppInviteInput! - ): DeleteAppInvitePayload - """Deletes a single `EmbeddingChunk` using a unique key.""" deleteEmbeddingChunk( """ @@ -51910,29 +55379,13 @@ type Mutation { input: DeleteEmbeddingChunkInput! ): DeleteEmbeddingChunkPayload - """Deletes a single `Schema` using a unique key.""" - deleteSchema( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteSchemaInput! - ): DeleteSchemaPayload - - """Deletes a single `LimitsModule` using a unique key.""" - deleteLimitsModule( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteLimitsModuleInput! - ): DeleteLimitsModulePayload - - """Deletes a single `ProfilesModule` using a unique key.""" - deleteProfilesModule( + """Deletes a single `OrgInvite` using a unique key.""" + deleteOrgInvite( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteProfilesModuleInput! - ): DeleteProfilesModulePayload + input: DeleteOrgInviteInput! + ): DeleteOrgInvitePayload """Deletes a single `AppMembership` using a unique key.""" deleteAppMembership( @@ -51942,37 +55395,29 @@ type Mutation { input: DeleteAppMembershipInput! ): DeleteAppMembershipPayload - """Deletes a single `Index` using a unique key.""" - deleteIndex( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: DeleteIndexInput! - ): DeleteIndexPayload - - """Deletes a single `WebauthnCredential` using a unique key.""" - deleteWebauthnCredential( + """Deletes a single `Schema` using a unique key.""" + deleteSchema( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteWebauthnCredentialInput! - ): DeleteWebauthnCredentialPayload + input: DeleteSchemaInput! + ): DeleteSchemaPayload - """Deletes a single `OrgInvite` using a unique key.""" - deleteOrgInvite( + """Deletes a single `Index` using a unique key.""" + deleteIndex( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgInviteInput! - ): DeleteOrgInvitePayload + input: DeleteIndexInput! + ): DeleteIndexPayload - """Deletes a single `OrgMembership` using a unique key.""" - deleteOrgMembership( + """Deletes a single `LimitsModule` using a unique key.""" + deleteLimitsModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteOrgMembershipInput! - ): DeleteOrgMembershipPayload + input: DeleteLimitsModuleInput! + ): DeleteLimitsModulePayload """Deletes a single `BlueprintTemplate` using a unique key.""" deleteBlueprintTemplate( @@ -51990,21 +55435,29 @@ type Mutation { input: DeleteHierarchyModuleInput! ): DeleteHierarchyModulePayload - """Deletes a single `ForeignKeyConstraint` using a unique key.""" - deleteForeignKeyConstraint( + """Deletes a single `ProfilesModule` using a unique key.""" + deleteProfilesModule( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteForeignKeyConstraintInput! - ): DeleteForeignKeyConstraintPayload + input: DeleteProfilesModuleInput! + ): DeleteProfilesModulePayload - """Deletes a single `Table` using a unique key.""" - deleteTable( + """Deletes a single `OrgMembership` using a unique key.""" + deleteOrgMembership( """ The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. """ - input: DeleteTableInput! - ): DeleteTablePayload + input: DeleteOrgMembershipInput! + ): DeleteOrgMembershipPayload + + """Deletes a single `ForeignKeyConstraint` using a unique key.""" + deleteForeignKeyConstraint( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteForeignKeyConstraintInput! + ): DeleteForeignKeyConstraintPayload """Deletes a single `StorageModule` using a unique key.""" deleteStorageModule( @@ -52014,6 +55467,14 @@ type Mutation { input: DeleteStorageModuleInput! ): DeleteStorageModulePayload + """Deletes a single `Table` using a unique key.""" + deleteTable( + """ + The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. + """ + input: DeleteTableInput! + ): DeleteTablePayload + """Deletes a single `EntityTypeProvision` using a unique key.""" deleteEntityTypeProvision( """ @@ -52075,18 +55536,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/constructive-sdk/src/admin/README.md b/sdk/constructive-sdk/src/admin/README.md index 8df3d19c5..9e4350db1 100644 --- a/sdk/constructive-sdk/src/admin/README.md +++ b/sdk/constructive-sdk/src/admin/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 34 +- **Tables:** 37 - **Custom queries:** 11 -- **Custom mutations:** 5 +- **Custom mutations:** 4 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/admin/orm/README.md b/sdk/constructive-sdk/src/admin/orm/README.md index bcc713ea6..99ee4b492 100644 --- a/sdk/constructive-sdk/src/admin/orm/README.md +++ b/sdk/constructive-sdk/src/admin/orm/README.md @@ -31,27 +31,30 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appAdminGrant` | findMany, findOne, create, update, delete | | `appOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimitDefault` | findMany, findOne, create, update, delete | -| `orgLimitDefault` | findMany, findOne, create, update, delete | -| `orgAdminGrant` | findMany, findOne, create, update, delete | -| `orgOwnerGrant` | findMany, findOne, create, update, delete | -| `appLimit` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | -| `appClaimedInvite` | findMany, findOne, create, update, delete | -| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | -| `orgLimit` | findMany, findOne, create, update, delete | +| `orgAdminGrant` | findMany, findOne, create, update, delete | +| `orgOwnerGrant` | findMany, findOne, create, update, delete | | `membershipType` | findMany, findOne, create, update, delete | +| `appLimitDefault` | findMany, findOne, create, update, delete | +| `orgLimitDefault` | findMany, findOne, create, update, delete | +| `orgChartEdgeGrant` | findMany, findOne, create, update, delete | +| `appClaimedInvite` | findMany, findOne, create, update, delete | | `appGrant` | findMany, findOne, create, update, delete | | `appMembershipDefault` | findMany, findOne, create, update, delete | | `orgMembershipDefault` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | | `orgGrant` | findMany, findOne, create, update, delete | | `orgChartEdge` | findMany, findOne, create, update, delete | +| `appLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `orgMemberProfile` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | +| `orgLimit` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | | `appInvite` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `orgInvite` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `orgMembership` | findMany, findOne, create, update, delete | @@ -381,66 +384,72 @@ const updated = await db.appOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.appOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.appAchievement` -CRUD operations for AppLimitDefault records. +CRUD operations for AppAchievement records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appAchievement records +const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.appStep` -CRUD operations for OrgLimitDefault records. +CRUD operations for AppStep records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `actorId` | UUID | Yes | | `name` | String | Yes | -| `max` | Int | Yes | +| `count` | Int | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all appStep records +const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); ``` ### `db.orgAdminGrant` @@ -513,139 +522,102 @@ const updated = await db.orgOwnerGrant.update({ where: { id: '' }, data: { const deleted = await db.orgOwnerGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimit` +### `db.membershipType` -CRUD operations for AppLimit records. +CRUD operations for MembershipType records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | +| `id` | Int | No | | `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); ``` -### `db.appAchievement` +### `db.appLimitDefault` -CRUD operations for AppAchievement records. +CRUD operations for AppLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appAchievement records -const items = await db.appAchievement.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appAchievement.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appAchievement.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appAchievement.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appAchievement.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.appStep` +### `db.orgLimitDefault` -CRUD operations for AppStep records. +CRUD operations for OrgLimitDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `actorId` | UUID | Yes | | `name` | String | Yes | -| `count` | Int | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | - -**Operations:** - -```typescript -// List all appStep records -const items = await db.appStep.findMany({ select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Get one by id -const item = await db.appStep.findOne({ id: '', select: { id: true, actorId: true, name: true, count: true, createdAt: true, updatedAt: true } }).execute(); - -// Create -const created = await db.appStep.create({ data: { actorId: '', name: '', count: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appStep.update({ where: { id: '' }, data: { actorId: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appStep.delete({ where: { id: '' } }).execute(); -``` - -### `db.appClaimedInvite` - -CRUD operations for AppClaimedInvite records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | UUID | No | -| `data` | JSON | Yes | -| `senderId` | UUID | Yes | -| `receiverId` | UUID | Yes | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | **Operations:** ```typescript -// List all appClaimedInvite records -const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); // Get one by id -const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); // Create -const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); ``` ### `db.orgChartEdgeGrant` @@ -685,72 +657,38 @@ const updated = await db.orgChartEdgeGrant.update({ where: { id: '' }, dat const deleted = await db.orgChartEdgeGrant.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimit` +### `db.appClaimedInvite` -CRUD operations for OrgLimit records. +CRUD operations for AppClaimedInvite records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `name` | String | Yes | -| `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | -| `entityId` | UUID | Yes | - -**Operations:** - -```typescript -// List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); - -// Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); -``` - -### `db.membershipType` - -CRUD operations for MembershipType records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | -| `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | +| `data` | JSON | Yes | +| `senderId` | UUID | Yes | +| `receiverId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all appClaimedInvite records +const items = await db.appClaimedInvite.findMany({ select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.appClaimedInvite.findOne({ id: '', select: { id: true, data: true, senderId: true, receiverId: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.appClaimedInvite.create({ data: { data: '', senderId: '', receiverId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.appClaimedInvite.update({ where: { id: '' }, data: { data: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.appClaimedInvite.delete({ where: { id: '' } }).execute(); ``` ### `db.appGrant` @@ -893,6 +831,80 @@ const updated = await db.orgClaimedInvite.update({ where: { id: '' }, data const deleted = await db.orgClaimedInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimitEvent` + +CRUD operations for AppLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitEvent` + +CRUD operations for OrgLimitEvent records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | + +**Operations:** + +```typescript +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Get one by id +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); + +// Create +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgGrant` CRUD operations for OrgGrant records. @@ -965,6 +977,78 @@ const updated = await db.orgChartEdge.update({ where: { id: '' }, data: { const deleted = await db.orgChartEdge.delete({ where: { id: '' } }).execute(); ``` +### `db.appLimit` + +CRUD operations for AppLimit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all appLimit records +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimit.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgMemberProfile` CRUD operations for OrgMemberProfile records. @@ -1004,44 +1088,41 @@ const updated = await db.orgMemberProfile.update({ where: { id: '' }, data const deleted = await db.orgMemberProfile.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.orgLimit` -CRUD operations for OrgMembershipSetting records. +CRUD operations for OrgLimit records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all orgLimit records +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevel` @@ -1096,6 +1177,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1104,13 +1186,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1119,6 +1201,48 @@ const updated = await db.appInvite.update({ where: { id: '' }, data: { ema const deleted = await db.appInvite.delete({ where: { id: '' } }).execute(); ``` +### `db.orgMembershipSetting` + +CRUD operations for OrgMembershipSetting records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | + +**Operations:** + +```typescript +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Get one by id +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); + +// Create +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +``` + ### `db.orgInvite` CRUD operations for OrgInvite records. @@ -1137,6 +1261,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -1146,13 +1271,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -1179,7 +1304,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -1191,13 +1315,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -1481,23 +1605,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/admin/orm/index.ts b/sdk/constructive-sdk/src/admin/orm/index.ts index c8610a816..5a9d91c9b 100644 --- a/sdk/constructive-sdk/src/admin/orm/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/index.ts @@ -15,27 +15,30 @@ import { AppPermissionDefaultModel } from './models/appPermissionDefault'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppAdminGrantModel } from './models/appAdminGrant'; import { AppOwnerGrantModel } from './models/appOwnerGrant'; -import { AppLimitDefaultModel } from './models/appLimitDefault'; -import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { OrgAdminGrantModel } from './models/orgAdminGrant'; -import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; -import { AppLimitModel } from './models/appLimit'; import { AppAchievementModel } from './models/appAchievement'; import { AppStepModel } from './models/appStep'; -import { AppClaimedInviteModel } from './models/appClaimedInvite'; -import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; -import { OrgLimitModel } from './models/orgLimit'; +import { OrgAdminGrantModel } from './models/orgAdminGrant'; +import { OrgOwnerGrantModel } from './models/orgOwnerGrant'; import { MembershipTypeModel } from './models/membershipType'; +import { AppLimitDefaultModel } from './models/appLimitDefault'; +import { OrgLimitDefaultModel } from './models/orgLimitDefault'; +import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; +import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { AppGrantModel } from './models/appGrant'; import { AppMembershipDefaultModel } from './models/appMembershipDefault'; import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; import { OrgGrantModel } from './models/orgGrant'; import { OrgChartEdgeModel } from './models/orgChartEdge'; +import { AppLimitModel } from './models/appLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { OrgMemberProfileModel } from './models/orgMemberProfile'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; +import { OrgLimitModel } from './models/orgLimit'; import { AppLevelModel } from './models/appLevel'; import { AppInviteModel } from './models/appInvite'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { OrgInviteModel } from './models/orgInvite'; import { AppMembershipModel } from './models/appMembership'; import { OrgMembershipModel } from './models/orgMembership'; @@ -84,27 +87,30 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appAdminGrant: new AppAdminGrantModel(client), appOwnerGrant: new AppOwnerGrantModel(client), - appLimitDefault: new AppLimitDefaultModel(client), - orgLimitDefault: new OrgLimitDefaultModel(client), - orgAdminGrant: new OrgAdminGrantModel(client), - orgOwnerGrant: new OrgOwnerGrantModel(client), - appLimit: new AppLimitModel(client), appAchievement: new AppAchievementModel(client), appStep: new AppStepModel(client), - appClaimedInvite: new AppClaimedInviteModel(client), - orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), - orgLimit: new OrgLimitModel(client), + orgAdminGrant: new OrgAdminGrantModel(client), + orgOwnerGrant: new OrgOwnerGrantModel(client), membershipType: new MembershipTypeModel(client), + appLimitDefault: new AppLimitDefaultModel(client), + orgLimitDefault: new OrgLimitDefaultModel(client), + orgChartEdgeGrant: new OrgChartEdgeGrantModel(client), + appClaimedInvite: new AppClaimedInviteModel(client), appGrant: new AppGrantModel(client), appMembershipDefault: new AppMembershipDefaultModel(client), orgMembershipDefault: new OrgMembershipDefaultModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), orgGrant: new OrgGrantModel(client), orgChartEdge: new OrgChartEdgeModel(client), + appLimit: new AppLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), orgMemberProfile: new OrgMemberProfileModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), + orgLimit: new OrgLimitModel(client), appLevel: new AppLevelModel(client), appInvite: new AppInviteModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), orgInvite: new OrgInviteModel(client), appMembership: new AppMembershipModel(client), orgMembership: new OrgMembershipModel(client), diff --git a/sdk/constructive-sdk/src/admin/orm/input-types.ts b/sdk/constructive-sdk/src/admin/orm/input-types.ts index 3f1ab47a3..a0e988480 100644 --- a/sdk/constructive-sdk/src/admin/orm/input-types.ts +++ b/sdk/constructive-sdk/src/admin/orm/input-types.ts @@ -328,21 +328,27 @@ export interface AppOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface AppLimitDefault { +/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ +export interface AppAchievement { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement being tracked */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Cumulative count of completed steps toward this requirement */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } -/** Default maximum values for each named limit, applied when no per-actor override exists */ -export interface OrgLimitDefault { +/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ +export interface AppStep { id: string; - /** Name identifier of the limit this default applies to */ + actorId?: string | null; + /** Name identifier of the level requirement this step fulfills */ name?: string | null; - /** Default maximum usage allowed for this limit */ - max?: number | null; + /** Number of units completed in this step action */ + count?: number | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of admin role grants and revocations between members */ export interface OrgAdminGrant { @@ -370,51 +376,40 @@ export interface OrgOwnerGrant { createdAt?: string | null; updatedAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface AppLimit { - id: string; - /** Name identifier of the limit being tracked */ +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ + id: number; + /** Human-readable name of the membership type */ name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } -/** Aggregated user progress for level requirements, tallying the total count; updated via triggers and should not be modified manually */ -export interface AppAchievement { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface AppLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement being tracked */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Cumulative count of completed steps toward this requirement */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } -/** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ -export interface AppStep { +/** Default maximum values for each named limit, applied when no per-actor override exists */ +export interface OrgLimitDefault { id: string; - actorId?: string | null; - /** Name identifier of the level requirement this step fulfills */ + /** Name identifier of the limit this default applies to */ name?: string | null; - /** Number of units completed in this step action */ - count?: number | null; - createdAt?: string | null; - updatedAt?: string | null; -} -/** Records of successfully claimed invitations, linking senders to receivers */ -export interface AppClaimedInvite { - id: string; - /** Optional JSON payload captured at the time the invite was claimed */ - data?: Record | null; - /** User ID of the original invitation sender */ - senderId?: string | null; - /** User ID of the person who claimed and redeemed the invitation */ - receiverId?: string | null; - createdAt?: string | null; - updatedAt?: string | null; + /** Default maximum usage allowed for this limit */ + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Append-only log of hierarchy edge grants and revocations; triggers apply changes to the edges table */ export interface OrgChartEdgeGrant { @@ -436,33 +431,17 @@ export interface OrgChartEdgeGrant { /** Timestamp when this grant or revocation was recorded */ createdAt?: string | null; } -/** Tracks per-actor usage counts against configurable maximum limits */ -export interface OrgLimit { +/** Records of successfully claimed invitations, linking senders to receivers */ +export interface AppClaimedInvite { id: string; - /** Name identifier of the limit being tracked */ - name?: string | null; - /** User whose usage is being tracked against this limit */ - actorId?: string | null; - /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; - entityId?: string | null; -} -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ - name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ - prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; + /** Optional JSON payload captured at the time the invite was claimed */ + data?: Record | null; + /** User ID of the original invitation sender */ + senderId?: string | null; + /** User ID of the person who claimed and redeemed the invitation */ + receiverId?: string | null; + createdAt?: string | null; + updatedAt?: string | null; } /** Records of individual permission grants and revocations for members via bitmask */ export interface AppGrant { @@ -514,6 +493,48 @@ export interface OrgClaimedInvite { updatedAt?: string | null; entityId?: string | null; } +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} /** Records of individual permission grants and revocations for members via bitmask */ export interface OrgGrant { id: string; @@ -545,6 +566,42 @@ export interface OrgChartEdge { /** Numeric seniority level for this position (higher = more senior) */ positionLevel?: number | null; } +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface AppLimit { + id: string; + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ + entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; +} /** Per-membership profile information visible to other entity members (display name, email, title, bio, avatar) */ export interface OrgMemberProfile { id: string; @@ -567,27 +624,24 @@ export interface OrgMemberProfile { /** Profile picture visible to other entity members */ profilePicture?: ConstructiveInternalTypeImage | null; } -/** Per-entity settings for the memberships module */ -export interface OrgMembershipSetting { +/** Tracks per-actor usage counts against configurable maximum limits */ +export interface OrgLimit { id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** References the entity these settings apply to */ + /** Name identifier of the limit being tracked */ + name?: string | null; + /** User whose usage is being tracked against this limit */ + actorId?: string | null; + /** Current usage count for this actor and limit */ + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; entityId?: string | null; - /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ - deleteMemberCascadeChildren?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ - createChildCascadeOwners?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ - createChildCascadeAdmins?: boolean | null; - /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ - createChildCascadeMembers?: boolean | null; - /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ - allowExternalMembers?: boolean | null; - /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ - populateMemberEmail?: boolean | null; } /** Defines available levels that users can achieve by completing requirements */ export interface AppLevel { @@ -622,11 +676,39 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; updatedAt?: string | null; } +/** Per-entity settings for the memberships module */ +export interface OrgMembershipSetting { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** References the entity these settings apply to */ + entityId?: string | null; + /** When a member is deleted, whether to cascade-remove their descendant-entity memberships */ + deleteMemberCascadeChildren?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level owners as child-entity owners */ + createChildCascadeOwners?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level admins as child-entity admins */ + createChildCascadeAdmins?: boolean | null; + /** When a child entity is created, whether to auto-add existing org-level members (non-admin, non-owner) as child-entity members */ + createChildCascadeMembers?: boolean | null; + /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ + allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; + /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ + populateMemberEmail?: boolean | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; +} /** Invitation records sent to prospective members via email, with token-based redemption and expiration */ export interface OrgInvite { id: string; @@ -648,6 +730,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -671,8 +755,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -741,29 +823,32 @@ export interface AppPermissionDefaultRelations {} export interface OrgPermissionDefaultRelations {} export interface AppAdminGrantRelations {} export interface AppOwnerGrantRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} -export interface OrgAdminGrantRelations {} -export interface OrgOwnerGrantRelations {} -export interface AppLimitRelations {} export interface AppAchievementRelations {} export interface AppStepRelations {} -export interface AppClaimedInviteRelations {} -export interface OrgChartEdgeGrantRelations {} -export interface OrgLimitRelations {} +export interface OrgAdminGrantRelations {} +export interface OrgOwnerGrantRelations {} export interface MembershipTypeRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} +export interface OrgChartEdgeGrantRelations {} +export interface AppClaimedInviteRelations {} export interface AppGrantRelations {} export interface AppMembershipDefaultRelations {} export interface OrgMembershipDefaultRelations {} export interface OrgClaimedInviteRelations {} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} export interface OrgGrantRelations {} export interface OrgChartEdgeRelations {} +export interface AppLimitRelations {} +export interface OrgLimitAggregateRelations {} export interface OrgMemberProfileRelations { membership?: OrgMembership | null; } -export interface OrgMembershipSettingRelations {} +export interface OrgLimitRelations {} export interface AppLevelRelations {} export interface AppInviteRelations {} +export interface OrgMembershipSettingRelations {} export interface OrgInviteRelations {} export interface AppMembershipRelations {} export interface OrgMembershipRelations { @@ -784,30 +869,33 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppAdminGrantWithRelations = AppAdminGrant & AppAdminGrantRelations; export type AppOwnerGrantWithRelations = AppOwnerGrant & AppOwnerGrantRelations; -export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; -export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; -export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; -export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppStepWithRelations = AppStep & AppStepRelations; -export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; -export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; -export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgAdminGrantWithRelations = OrgAdminGrant & OrgAdminGrantRelations; +export type OrgOwnerGrantWithRelations = OrgOwnerGrant & OrgOwnerGrantRelations; export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; +export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; +export type OrgChartEdgeGrantWithRelations = OrgChartEdgeGrant & OrgChartEdgeGrantRelations; +export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteRelations; export type AppGrantWithRelations = AppGrant & AppGrantRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; export type OrgGrantWithRelations = OrgGrant & OrgGrantRelations; export type OrgChartEdgeWithRelations = OrgChartEdge & OrgChartEdgeRelations; +export type AppLimitWithRelations = AppLimit & AppLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type OrgMemberProfileWithRelations = OrgMemberProfile & OrgMemberProfileRelations; -export type OrgMembershipSettingWithRelations = OrgMembershipSetting & - OrgMembershipSettingRelations; +export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; export type AppInviteWithRelations = AppInvite & AppInviteRelations; +export type OrgMembershipSettingWithRelations = OrgMembershipSetting & + OrgMembershipSettingRelations; export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type OrgMembershipWithRelations = OrgMembership & OrgMembershipRelations; @@ -875,15 +963,21 @@ export type AppOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitDefaultSelect = { +export type AppAchievementSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; -export type OrgLimitDefaultSelect = { +export type AppStepSelect = { id?: boolean; + actorId?: boolean; name?: boolean; - max?: boolean; + count?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type OrgAdminGrantSelect = { id?: boolean; @@ -903,36 +997,25 @@ export type OrgOwnerGrantSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppLimitSelect = { +export type MembershipTypeSelect = { id?: boolean; name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; -export type AppAchievementSelect = { +export type AppLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; -export type AppStepSelect = { +export type OrgLimitDefaultSelect = { id?: boolean; - actorId?: boolean; name?: boolean; - count?: boolean; - createdAt?: boolean; - updatedAt?: boolean; -}; -export type AppClaimedInviteSelect = { - id?: boolean; - data?: boolean; - senderId?: boolean; - receiverId?: boolean; - createdAt?: boolean; - updatedAt?: boolean; + max?: boolean; + softMax?: boolean; }; export type OrgChartEdgeGrantSelect = { id?: boolean; @@ -945,21 +1028,13 @@ export type OrgChartEdgeGrantSelect = { positionLevel?: boolean; createdAt?: boolean; }; -export type OrgLimitSelect = { - id?: boolean; - name?: boolean; - actorId?: boolean; - num?: boolean; - max?: boolean; - entityId?: boolean; -}; -export type MembershipTypeSelect = { +export type AppClaimedInviteSelect = { id?: boolean; - name?: boolean; - description?: boolean; - prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + data?: boolean; + senderId?: boolean; + receiverId?: boolean; + createdAt?: boolean; + updatedAt?: boolean; }; export type AppGrantSelect = { id?: boolean; @@ -997,6 +1072,28 @@ export type OrgClaimedInviteSelect = { updatedAt?: boolean; entityId?: boolean; }; +export type AppLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; export type OrgGrantSelect = { id?: boolean; permissions?: boolean; @@ -1017,6 +1114,26 @@ export type OrgChartEdgeSelect = { positionTitle?: boolean; positionLevel?: boolean; }; +export type AppLimitSelect = { + id?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; +}; export type OrgMemberProfileSelect = { id?: boolean; createdAt?: boolean; @@ -1033,19 +1150,16 @@ export type OrgMemberProfileSelect = { select: OrgMembershipSelect; }; }; -export type OrgMembershipSettingSelect = { +export type OrgLimitSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; + name?: boolean; + actorId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; export type AppLevelSelect = { id?: boolean; @@ -1066,10 +1180,27 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; }; +export type OrgMembershipSettingSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; +}; export type OrgInviteSelect = { id?: boolean; email?: boolean; @@ -1081,6 +1212,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -1097,7 +1229,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -1285,33 +1416,45 @@ export interface AppOwnerGrantFilter { /** Negates the expression. */ not?: AppOwnerGrantFilter; } -export interface AppLimitDefaultFilter { +export interface AppAchievementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; + and?: AppAchievementFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; + or?: AppAchievementFilter[]; /** Negates the expression. */ - not?: AppLimitDefaultFilter; + not?: AppAchievementFilter; } -export interface OrgLimitDefaultFilter { +export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `count` field. */ + count?: IntFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; + and?: AppStepFilter[]; /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; + or?: AppStepFilter[]; /** Negates the expression. */ - not?: OrgLimitDefaultFilter; + not?: AppStepFilter; } export interface OrgAdminGrantFilter { /** Filter by the object’s `id` field. */ @@ -1357,81 +1500,57 @@ export interface OrgOwnerGrantFilter { /** Negates the expression. */ not?: OrgOwnerGrantFilter; } -export interface AppLimitFilter { +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ - id?: UUIDFilter; + id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: AppLimitFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: AppLimitFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: AppLimitFilter; + not?: MembershipTypeFilter; } -export interface AppAchievementFilter { +export interface AppLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppAchievementFilter[]; + and?: AppLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppAchievementFilter[]; + or?: AppLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppAchievementFilter; + not?: AppLimitDefaultFilter; } -export interface AppStepFilter { +export interface OrgLimitDefaultFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `count` field. */ - count?: IntFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: AppStepFilter[]; - /** Checks for any expressions in this list. */ - or?: AppStepFilter[]; - /** Negates the expression. */ - not?: AppStepFilter; -} -export interface AppClaimedInviteFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `senderId` field. */ - senderId?: UUIDFilter; - /** Filter by the object’s `receiverId` field. */ - receiverId?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; /** Checks for all expressions in this list. */ - and?: AppClaimedInviteFilter[]; + and?: OrgLimitDefaultFilter[]; /** Checks for any expressions in this list. */ - or?: AppClaimedInviteFilter[]; + or?: OrgLimitDefaultFilter[]; /** Negates the expression. */ - not?: AppClaimedInviteFilter; + not?: OrgLimitDefaultFilter; } export interface OrgChartEdgeGrantFilter { /** Filter by the object’s `id` field. */ @@ -1459,45 +1578,23 @@ export interface OrgChartEdgeGrantFilter { /** Negates the expression. */ not?: OrgChartEdgeGrantFilter; } -export interface OrgLimitFilter { +export interface AppClaimedInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; - /** Filter by the object’s `num` field. */ - num?: IntFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitFilter[]; - /** Negates the expression. */ - not?: OrgLimitFilter; -} -export interface MembershipTypeFilter { - /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; - /** Filter by the object’s `prefix` field. */ - prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; + /** Filter by the object’s `senderId` field. */ + senderId?: UUIDFilter; + /** Filter by the object’s `receiverId` field. */ + receiverId?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: AppClaimedInviteFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: AppClaimedInviteFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: AppClaimedInviteFilter; } export interface AppGrantFilter { /** Filter by the object’s `id` field. */ @@ -1585,6 +1682,58 @@ export interface OrgClaimedInviteFilter { /** Negates the expression. */ not?: OrgClaimedInviteFilter; } +export interface AppLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} export interface OrgGrantFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1633,6 +1782,54 @@ export interface OrgChartEdgeFilter { /** Negates the expression. */ not?: OrgChartEdgeFilter; } +export interface AppLimitFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitFilter[]; + /** Negates the expression. */ + not?: AppLimitFilter; +} +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; +} export interface OrgMemberProfileFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1665,37 +1862,31 @@ export interface OrgMemberProfileFilter { /** Filter by the object’s `membership` relation. */ membership?: OrgMembershipFilter; } -export interface OrgMembershipSettingFilter { +export interface OrgLimitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: OrgLimitFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: OrgLimitFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; + not?: OrgLimitFilter; } export interface AppLevelFilter { /** Filter by the object’s `id` field. */ @@ -1736,6 +1927,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1749,6 +1942,42 @@ export interface AppInviteFilter { /** Negates the expression. */ not?: AppInviteFilter; } +export interface OrgMembershipSettingFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipSettingFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipSettingFilter[]; + /** Negates the expression. */ + not?: OrgMembershipSettingFilter; +} export interface OrgInviteFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -1768,6 +1997,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -1804,8 +2035,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -2000,26 +2229,38 @@ export type AppOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitDefaultOrderBy = +export type AppAchievementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; +export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; + | 'COUNT_ASC' + | 'COUNT_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type OrgAdminGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2056,7 +2297,7 @@ export type OrgOwnerGrantOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppLimitOrderBy = +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -2064,60 +2305,38 @@ export type AppLimitOrderBy = | 'ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type AppAchievementOrderBy = + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppStepOrderBy = + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'COUNT_ASC' - | 'COUNT_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; -export type AppClaimedInviteOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'SENDER_ID_ASC' - | 'SENDER_ID_DESC' - | 'RECEIVER_ID_ASC' - | 'RECEIVER_ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC'; + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type OrgChartEdgeGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2140,38 +2359,22 @@ export type OrgChartEdgeGrantOrderBy = | 'POSITION_LEVEL_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type OrgLimitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC' - | 'NUM_ASC' - | 'NUM_DESC' - | 'MAX_ASC' - | 'MAX_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type MembershipTypeOrderBy = +export type AppClaimedInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' - | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'DATA_ASC' + | 'DATA_DESC' + | 'SENDER_ID_ASC' + | 'SENDER_ID_DESC' + | 'RECEIVER_ID_ASC' + | 'RECEIVER_ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC'; export type AppGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2244,6 +2447,46 @@ export type OrgClaimedInviteOrderBy = | 'UPDATED_AT_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; export type OrgGrantOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2284,6 +2527,46 @@ export type OrgChartEdgeOrderBy = | 'POSITION_TITLE_DESC' | 'POSITION_LEVEL_ASC' | 'POSITION_LEVEL_DESC'; +export type AppLimitOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgMemberProfileOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2310,34 +2593,28 @@ export type OrgMemberProfileOrderBy = | 'BIO_DESC' | 'PROFILE_PICTURE_ASC' | 'PROFILE_PICTURE_DESC'; -export type OrgMembershipSettingOrderBy = +export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ENTITY_ID_DESC'; export type AppLevelOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2378,12 +2655,46 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; +export type OrgMembershipSettingOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type OrgInviteOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -2408,6 +2719,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -2440,8 +2753,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -2713,43 +3024,47 @@ export interface DeleteAppOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitDefaultInput { +export interface CreateAppAchievementInput { clientMutationId?: string; - appLimitDefault: { + appAchievement: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface AppLimitDefaultPatch { +export interface AppAchievementPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateAppLimitDefaultInput { +export interface UpdateAppAchievementInput { clientMutationId?: string; id: string; - appLimitDefaultPatch: AppLimitDefaultPatch; + appAchievementPatch: AppAchievementPatch; } -export interface DeleteAppLimitDefaultInput { +export interface DeleteAppAchievementInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitDefaultInput { +export interface CreateAppStepInput { clientMutationId?: string; - orgLimitDefault: { + appStep: { + actorId?: string; name: string; - max?: number; + count?: number; }; } -export interface OrgLimitDefaultPatch { +export interface AppStepPatch { + actorId?: string | null; name?: string | null; - max?: number | null; + count?: number | null; } -export interface UpdateOrgLimitDefaultInput { +export interface UpdateAppStepInput { clientMutationId?: string; id: string; - orgLimitDefaultPatch: OrgLimitDefaultPatch; + appStepPatch: AppStepPatch; } -export interface DeleteOrgLimitDefaultInput { +export interface DeleteAppStepInput { clientMutationId?: string; id: string; } @@ -2801,93 +3116,73 @@ export interface DeleteOrgOwnerGrantInput { clientMutationId?: string; id: string; } -export interface CreateAppLimitInput { +export interface CreateMembershipTypeInput { clientMutationId?: string; - appLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; + membershipType: { + name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface AppLimitPatch { +export interface MembershipTypePatch { name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateAppLimitInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; - id: string; - appLimitPatch: AppLimitPatch; + id: number; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteAppLimitInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; - id: string; + id: number; } -export interface CreateAppAchievementInput { +export interface CreateAppLimitDefaultInput { clientMutationId?: string; - appAchievement: { - actorId?: string; + appLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppAchievementPatch { - actorId?: string | null; +export interface AppLimitDefaultPatch { name?: string | null; - count?: number | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppAchievementInput { +export interface UpdateAppLimitDefaultInput { clientMutationId?: string; id: string; - appAchievementPatch: AppAchievementPatch; + appLimitDefaultPatch: AppLimitDefaultPatch; } -export interface DeleteAppAchievementInput { +export interface DeleteAppLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateAppStepInput { +export interface CreateOrgLimitDefaultInput { clientMutationId?: string; - appStep: { - actorId?: string; + orgLimitDefault: { name: string; - count?: number; + max?: string; + softMax?: string; }; } -export interface AppStepPatch { - actorId?: string | null; +export interface OrgLimitDefaultPatch { name?: string | null; - count?: number | null; -} -export interface UpdateAppStepInput { - clientMutationId?: string; - id: string; - appStepPatch: AppStepPatch; -} -export interface DeleteAppStepInput { - clientMutationId?: string; - id: string; -} -export interface CreateAppClaimedInviteInput { - clientMutationId?: string; - appClaimedInvite: { - data?: Record; - senderId?: string; - receiverId?: string; - }; -} -export interface AppClaimedInvitePatch { - data?: Record | null; - senderId?: string | null; - receiverId?: string | null; + max?: string | null; + softMax?: string | null; } -export interface UpdateAppClaimedInviteInput { +export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; id: string; - appClaimedInvitePatch: AppClaimedInvitePatch; + orgLimitDefaultPatch: OrgLimitDefaultPatch; } -export interface DeleteAppClaimedInviteInput { +export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } @@ -2921,58 +3216,28 @@ export interface DeleteOrgChartEdgeGrantInput { clientMutationId?: string; id: string; } -export interface CreateOrgLimitInput { +export interface CreateAppClaimedInviteInput { clientMutationId?: string; - orgLimit: { - name?: string; - actorId: string; - num?: number; - max?: number; - entityId: string; + appClaimedInvite: { + data?: Record; + senderId?: string; + receiverId?: string; }; } -export interface OrgLimitPatch { - name?: string | null; - actorId?: string | null; - num?: number | null; - max?: number | null; - entityId?: string | null; +export interface AppClaimedInvitePatch { + data?: Record | null; + senderId?: string | null; + receiverId?: string | null; } -export interface UpdateOrgLimitInput { +export interface UpdateAppClaimedInviteInput { clientMutationId?: string; id: string; - orgLimitPatch: OrgLimitPatch; + appClaimedInvitePatch: AppClaimedInvitePatch; } -export interface DeleteOrgLimitInput { +export interface DeleteAppClaimedInviteInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { - clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; - }; -} -export interface MembershipTypePatch { - name?: string | null; - description?: string | null; - prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; -} -export interface UpdateMembershipTypeInput { - clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; -} -export interface DeleteMembershipTypeInput { - clientMutationId?: string; - id: number; -} export interface CreateAppGrantInput { clientMutationId?: string; appGrant: { @@ -3069,6 +3334,74 @@ export interface DeleteOrgClaimedInviteInput { clientMutationId?: string; id: string; } +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgGrantInput { clientMutationId?: string; orgGrant: { @@ -3121,7 +3454,67 @@ export interface DeleteOrgChartEdgeInput { clientMutationId?: string; id: string; } -export interface CreateOrgMemberProfileInput { +export interface CreateAppLimitInput { + clientMutationId?: string; + appLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface AppLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateAppLimitInput { + clientMutationId?: string; + id: string; + appLimitPatch: AppLimitPatch; +} +export interface DeleteAppLimitInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMemberProfileInput { clientMutationId?: string; orgMemberProfile: { membershipId: string; @@ -3154,37 +3547,35 @@ export interface DeleteOrgMemberProfileInput { clientMutationId?: string; id: string; } -export interface CreateOrgMembershipSettingInput { +export interface CreateOrgLimitInput { clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; + orgLimit: { + name?: string; + actorId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; }; } -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; +export interface OrgLimitPatch { + name?: string | null; + actorId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; } -export interface UpdateOrgMembershipSettingInput { +export interface UpdateOrgLimitInput { clientMutationId?: string; id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; + orgLimitPatch: OrgLimitPatch; } -export interface DeleteOrgMembershipSettingInput { +export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } @@ -3224,6 +3615,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -3236,6 +3628,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -3247,6 +3640,44 @@ export interface DeleteAppInviteInput { clientMutationId?: string; id: string; } +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateOrgInviteInput { clientMutationId?: string; orgInvite: { @@ -3259,6 +3690,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -3273,6 +3705,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -3295,7 +3728,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -3312,7 +3744,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -3405,10 +3836,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -3418,6 +3845,31 @@ export interface ProvisionBucketInput { */ ownerId?: string; } +/** A filter to be used against Interval fields. All fields are combined with a logical ‘and.’ */ +export interface IntervalFilter { + /** Is null (if `true` is specified) or is not null (if `false` is specified). */ + isNull?: boolean; + /** Equal to the specified value. */ + equalTo?: IntervalInput; + /** Not equal to the specified value. */ + notEqualTo?: IntervalInput; + /** Not equal to the specified value, treating null like an ordinary value. */ + distinctFrom?: IntervalInput; + /** Equal to the specified value, treating null like an ordinary value. */ + notDistinctFrom?: IntervalInput; + /** Included in the specified list. */ + in?: IntervalInput[]; + /** Not included in the specified list. */ + notIn?: IntervalInput[]; + /** Less than the specified value. */ + lessThan?: IntervalInput; + /** Less than or equal to the specified value. */ + lessThanOrEqualTo?: IntervalInput; + /** Greater than the specified value. */ + greaterThan?: IntervalInput; + /** Greater than or equal to the specified value. */ + greaterThanOrEqualTo?: IntervalInput; +} /** A filter to be used against ConstructiveInternalTypeImage fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeImageFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -3530,6 +3982,25 @@ export interface ConstructiveInternalTypeEmailFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: ConstructiveInternalTypeEmail; } +/** An interval of time that has passed where the smallest distinct unit is a second. */ +export interface IntervalInput { + /** + * A quantity of seconds. This is the only non-integer field, as all the other + * fields will dump their overflow into a smaller unit of time. Intervals don’t + * have a smaller unit than seconds. + */ + seconds?: number; + /** A quantity of minutes. */ + minutes?: number; + /** A quantity of hours. */ + hours?: number; + /** A quantity of days. */ + days?: number; + /** A quantity of months. */ + months?: number; + /** A quantity of years. */ + years?: number; +} /** A connection to a list of `AppPermission` values. */ // ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { @@ -3615,8 +4086,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -3624,20 +4093,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -4021,94 +4476,94 @@ export type DeleteAppOwnerGrantPayloadSelect = { select: AppOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface CreateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was created by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type CreateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface UpdateAppLimitDefaultPayload { +export interface UpdateAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was updated by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was updated by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type UpdateAppLimitDefaultPayloadSelect = { +export type UpdateAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface DeleteAppLimitDefaultPayload { +export interface DeleteAppAchievementPayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was deleted by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `AppAchievement` that was deleted by this mutation. */ + appAchievement?: AppAchievement | null; + appAchievementEdge?: AppAchievementEdge | null; } -export type DeleteAppLimitDefaultPayloadSelect = { +export type DeleteAppAchievementPayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + appAchievement?: { + select: AppAchievementSelect; }; - appLimitDefaultEdge?: { - select: AppLimitDefaultEdgeSelect; + appAchievementEdge?: { + select: AppAchievementEdgeSelect; }; }; -export interface CreateOrgLimitDefaultPayload { +export interface CreateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was created by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was created by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type CreateOrgLimitDefaultPayloadSelect = { +export type CreateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface UpdateOrgLimitDefaultPayload { +export interface UpdateAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was updated by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was updated by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type UpdateOrgLimitDefaultPayloadSelect = { +export type UpdateAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; -export interface DeleteOrgLimitDefaultPayload { +export interface DeleteAppStepPayload { clientMutationId?: string | null; - /** The `OrgLimitDefault` that was deleted by this mutation. */ - orgLimitDefault?: OrgLimitDefault | null; - orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; + /** The `AppStep` that was deleted by this mutation. */ + appStep?: AppStep | null; + appStepEdge?: AppStepEdge | null; } -export type DeleteOrgLimitDefaultPayloadSelect = { +export type DeleteAppStepPayloadSelect = { clientMutationId?: boolean; - orgLimitDefault?: { - select: OrgLimitDefaultSelect; + appStep?: { + select: AppStepSelect; }; - orgLimitDefaultEdge?: { - select: OrgLimitDefaultEdgeSelect; + appStepEdge?: { + select: AppStepEdgeSelect; }; }; export interface CreateOrgAdminGrantPayload { @@ -4201,184 +4656,139 @@ export type DeleteOrgOwnerGrantPayloadSelect = { select: OrgOwnerGrantEdgeSelect; }; }; -export interface CreateAppLimitPayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimit` that was created by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitPayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitEdge?: { - select: AppLimitEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface UpdateAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was updated by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type UpdateAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface DeleteAppLimitPayload { - clientMutationId?: string | null; - /** The `AppLimit` that was deleted by this mutation. */ - appLimit?: AppLimit | null; - appLimitEdge?: AppLimitEdge | null; -} -export type DeleteAppLimitPayloadSelect = { - clientMutationId?: boolean; - appLimit?: { - select: AppLimitSelect; - }; - appLimitEdge?: { - select: AppLimitEdgeSelect; - }; -}; -export interface CreateAppAchievementPayload { - clientMutationId?: string | null; - /** The `AppAchievement` that was created by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; -} -export type CreateAppAchievementPayloadSelect = { - clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; - }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; - }; -}; -export interface UpdateAppAchievementPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was updated by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type UpdateAppAchievementPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface DeleteAppAchievementPayload { +export interface DeleteMembershipTypePayload { clientMutationId?: string | null; - /** The `AppAchievement` that was deleted by this mutation. */ - appAchievement?: AppAchievement | null; - appAchievementEdge?: AppAchievementEdge | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type DeleteAppAchievementPayloadSelect = { +export type DeleteMembershipTypePayloadSelect = { clientMutationId?: boolean; - appAchievement?: { - select: AppAchievementSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appAchievementEdge?: { - select: AppAchievementEdgeSelect; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppStepPayload { +export interface CreateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was created by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type CreateAppStepPayloadSelect = { +export type CreateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface UpdateAppStepPayload { +export interface UpdateAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was updated by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was updated by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type UpdateAppStepPayloadSelect = { +export type UpdateAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface DeleteAppStepPayload { +export interface DeleteAppLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppStep` that was deleted by this mutation. */ - appStep?: AppStep | null; - appStepEdge?: AppStepEdge | null; + /** The `AppLimitDefault` that was deleted by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; } -export type DeleteAppStepPayloadSelect = { +export type DeleteAppLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appStep?: { - select: AppStepSelect; + appLimitDefault?: { + select: AppLimitDefaultSelect; }; - appStepEdge?: { - select: AppStepEdgeSelect; + appLimitDefaultEdge?: { + select: AppLimitDefaultEdgeSelect; }; }; -export interface CreateAppClaimedInvitePayload { +export interface CreateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was created by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was created by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type CreateAppClaimedInvitePayloadSelect = { +export type CreateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface UpdateAppClaimedInvitePayload { +export interface UpdateOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was updated by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was updated by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type UpdateAppClaimedInvitePayloadSelect = { +export type UpdateOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; -export interface DeleteAppClaimedInvitePayload { +export interface DeleteOrgLimitDefaultPayload { clientMutationId?: string | null; - /** The `AppClaimedInvite` that was deleted by this mutation. */ - appClaimedInvite?: AppClaimedInvite | null; - appClaimedInviteEdge?: AppClaimedInviteEdge | null; + /** The `OrgLimitDefault` that was deleted by this mutation. */ + orgLimitDefault?: OrgLimitDefault | null; + orgLimitDefaultEdge?: OrgLimitDefaultEdge | null; } -export type DeleteAppClaimedInvitePayloadSelect = { +export type DeleteOrgLimitDefaultPayloadSelect = { clientMutationId?: boolean; - appClaimedInvite?: { - select: AppClaimedInviteSelect; + orgLimitDefault?: { + select: OrgLimitDefaultSelect; }; - appClaimedInviteEdge?: { - select: AppClaimedInviteEdgeSelect; + orgLimitDefaultEdge?: { + select: OrgLimitDefaultEdgeSelect; }; }; export interface CreateOrgChartEdgeGrantPayload { @@ -4426,94 +4836,49 @@ export type DeleteOrgChartEdgeGrantPayloadSelect = { select: OrgChartEdgeGrantEdgeSelect; }; }; -export interface CreateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was created by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type CreateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface UpdateOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was updated by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type UpdateOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface DeleteOrgLimitPayload { - clientMutationId?: string | null; - /** The `OrgLimit` that was deleted by this mutation. */ - orgLimit?: OrgLimit | null; - orgLimitEdge?: OrgLimitEdge | null; -} -export type DeleteOrgLimitPayloadSelect = { - clientMutationId?: boolean; - orgLimit?: { - select: OrgLimitSelect; - }; - orgLimitEdge?: { - select: OrgLimitEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { +export interface CreateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was created by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type CreateMembershipTypePayloadSelect = { +export type CreateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface UpdateMembershipTypePayload { +export interface UpdateAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was updated by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type UpdateMembershipTypePayloadSelect = { +export type UpdateAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; -export interface DeleteMembershipTypePayload { +export interface DeleteAppClaimedInvitePayload { clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `AppClaimedInvite` that was deleted by this mutation. */ + appClaimedInvite?: AppClaimedInvite | null; + appClaimedInviteEdge?: AppClaimedInviteEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeleteAppClaimedInvitePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + appClaimedInvite?: { + select: AppClaimedInviteSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + appClaimedInviteEdge?: { + select: AppClaimedInviteEdgeSelect; }; }; export interface CreateAppGrantPayload { @@ -4696,6 +5061,28 @@ export type DeleteOrgClaimedInvitePayloadSelect = { select: OrgClaimedInviteEdgeSelect; }; }; +export interface CreateAppLimitEventPayload { + clientMutationId?: string | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; +} +export type CreateAppLimitEventPayloadSelect = { + clientMutationId?: boolean; + appLimitEvent?: { + select: AppLimitEventSelect; + }; +}; +export interface CreateOrgLimitEventPayload { + clientMutationId?: string | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; +} +export type CreateOrgLimitEventPayloadSelect = { + clientMutationId?: boolean; + orgLimitEvent?: { + select: OrgLimitEventSelect; + }; +}; export interface CreateOrgGrantPayload { clientMutationId?: string | null; /** The `OrgGrant` that was created by this mutation. */ @@ -4756,34 +5143,124 @@ export type CreateOrgChartEdgePayloadSelect = { select: OrgChartEdgeEdgeSelect; }; }; -export interface UpdateOrgChartEdgePayload { +export interface UpdateOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was updated by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type UpdateOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface DeleteOrgChartEdgePayload { + clientMutationId?: string | null; + /** The `OrgChartEdge` that was deleted by this mutation. */ + orgChartEdge?: OrgChartEdge | null; + orgChartEdgeEdge?: OrgChartEdgeEdge | null; +} +export type DeleteOrgChartEdgePayloadSelect = { + clientMutationId?: boolean; + orgChartEdge?: { + select: OrgChartEdgeSelect; + }; + orgChartEdgeEdge?: { + select: OrgChartEdgeEdgeSelect; + }; +}; +export interface CreateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was created by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type CreateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface UpdateAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was updated by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type UpdateAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface DeleteAppLimitPayload { + clientMutationId?: string | null; + /** The `AppLimit` that was deleted by this mutation. */ + appLimit?: AppLimit | null; + appLimitEdge?: AppLimitEdge | null; +} +export type DeleteAppLimitPayloadSelect = { + clientMutationId?: boolean; + appLimit?: { + select: AppLimitSelect; + }; + appLimitEdge?: { + select: AppLimitEdgeSelect; + }; +}; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was updated by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type UpdateOrgChartEdgePayloadSelect = { +export type UpdateOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; -export interface DeleteOrgChartEdgePayload { +export interface DeleteOrgLimitAggregatePayload { clientMutationId?: string | null; - /** The `OrgChartEdge` that was deleted by this mutation. */ - orgChartEdge?: OrgChartEdge | null; - orgChartEdgeEdge?: OrgChartEdgeEdge | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; } -export type DeleteOrgChartEdgePayloadSelect = { +export type DeleteOrgLimitAggregatePayloadSelect = { clientMutationId?: boolean; - orgChartEdge?: { - select: OrgChartEdgeSelect; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; }; - orgChartEdgeEdge?: { - select: OrgChartEdgeEdgeSelect; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; }; }; export interface CreateOrgMemberProfilePayload { @@ -4831,49 +5308,49 @@ export type DeleteOrgMemberProfilePayloadSelect = { select: OrgMemberProfileEdgeSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was created by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was updated by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type UpdateOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface DeleteOrgLimitPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `OrgLimit` that was deleted by this mutation. */ + orgLimit?: OrgLimit | null; + orgLimitEdge?: OrgLimitEdge | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type DeleteOrgLimitPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + orgLimit?: { + select: OrgLimitSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + orgLimitEdge?: { + select: OrgLimitEdgeSelect; }; }; export interface CreateAppLevelPayload { @@ -4966,6 +5443,51 @@ export type DeleteAppInvitePayloadSelect = { select: AppInviteEdgeSelect; }; }; +export interface CreateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type CreateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; export interface CreateOrgInvitePayload { clientMutationId?: string | null; /** The `OrgInvite` that was created by this mutation. */ @@ -5214,28 +5736,28 @@ export type AppOwnerGrantEdgeSelect = { select: AppOwnerGrantSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `AppAchievement` edge in the connection. */ +export interface AppAchievementEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `AppAchievement` at the end of the edge. */ + node?: AppAchievement | null; } -export type AppLimitDefaultEdgeSelect = { +export type AppAchievementEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: AppAchievementSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `AppStep` edge in the connection. */ +export interface AppStepEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `AppStep` at the end of the edge. */ + node?: AppStep | null; } -export type OrgLimitDefaultEdgeSelect = { +export type AppStepEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: AppStepSelect; }; }; /** A `OrgAdminGrant` edge in the connection. */ @@ -5262,52 +5784,40 @@ export type OrgOwnerGrantEdgeSelect = { select: OrgOwnerGrantSelect; }; }; -/** A `AppLimit` edge in the connection. */ -export interface AppLimitEdge { - cursor?: string | null; - /** The `AppLimit` at the end of the edge. */ - node?: AppLimit | null; -} -export type AppLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: AppLimitSelect; - }; -}; -/** A `AppAchievement` edge in the connection. */ -export interface AppAchievementEdge { +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { cursor?: string | null; - /** The `AppAchievement` at the end of the edge. */ - node?: AppAchievement | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; } -export type AppAchievementEdgeSelect = { +export type MembershipTypeEdgeSelect = { cursor?: boolean; node?: { - select: AppAchievementSelect; + select: MembershipTypeSelect; }; }; -/** A `AppStep` edge in the connection. */ -export interface AppStepEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `AppStep` at the end of the edge. */ - node?: AppStep | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type AppStepEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppStepSelect; + select: AppLimitDefaultSelect; }; }; -/** A `AppClaimedInvite` edge in the connection. */ -export interface AppClaimedInviteEdge { +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { cursor?: string | null; - /** The `AppClaimedInvite` at the end of the edge. */ - node?: AppClaimedInvite | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; } -export type AppClaimedInviteEdgeSelect = { +export type OrgLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: AppClaimedInviteSelect; + select: OrgLimitDefaultSelect; }; }; /** A `OrgChartEdgeGrant` edge in the connection. */ @@ -5322,28 +5832,16 @@ export type OrgChartEdgeGrantEdgeSelect = { select: OrgChartEdgeGrantSelect; }; }; -/** A `OrgLimit` edge in the connection. */ -export interface OrgLimitEdge { - cursor?: string | null; - /** The `OrgLimit` at the end of the edge. */ - node?: OrgLimit | null; -} -export type OrgLimitEdgeSelect = { - cursor?: boolean; - node?: { - select: OrgLimitSelect; - }; -}; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppClaimedInvite` edge in the connection. */ +export interface AppClaimedInviteEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppClaimedInvite` at the end of the edge. */ + node?: AppClaimedInvite | null; } -export type MembershipTypeEdgeSelect = { +export type AppClaimedInviteEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppClaimedInviteSelect; }; }; /** A `AppGrant` edge in the connection. */ @@ -5418,6 +5916,30 @@ export type OrgChartEdgeEdgeSelect = { select: OrgChartEdgeSelect; }; }; +/** A `AppLimit` edge in the connection. */ +export interface AppLimitEdge { + cursor?: string | null; + /** The `AppLimit` at the end of the edge. */ + node?: AppLimit | null; +} +export type AppLimitEdgeSelect = { + cursor?: boolean; + node?: { + select: AppLimitSelect; + }; +}; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `OrgMemberProfile` edge in the connection. */ export interface OrgMemberProfileEdge { cursor?: string | null; @@ -5430,16 +5952,16 @@ export type OrgMemberProfileEdgeSelect = { select: OrgMemberProfileSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `OrgLimit` edge in the connection. */ +export interface OrgLimitEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `OrgLimit` at the end of the edge. */ + node?: OrgLimit | null; } -export type OrgMembershipSettingEdgeSelect = { +export type OrgLimitEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: OrgLimitSelect; }; }; /** A `AppLevel` edge in the connection. */ @@ -5466,6 +5988,18 @@ export type AppInviteEdgeSelect = { select: AppInviteSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `OrgInvite` edge in the connection. */ export interface OrgInviteEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/index.ts b/sdk/constructive-sdk/src/admin/orm/models/index.ts index 061bbd234..1b903645a 100644 --- a/sdk/constructive-sdk/src/admin/orm/models/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/models/index.ts @@ -13,27 +13,30 @@ export { AppPermissionDefaultModel } from './appPermissionDefault'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppAdminGrantModel } from './appAdminGrant'; export { AppOwnerGrantModel } from './appOwnerGrant'; -export { AppLimitDefaultModel } from './appLimitDefault'; -export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { OrgAdminGrantModel } from './orgAdminGrant'; -export { OrgOwnerGrantModel } from './orgOwnerGrant'; -export { AppLimitModel } from './appLimit'; export { AppAchievementModel } from './appAchievement'; export { AppStepModel } from './appStep'; -export { AppClaimedInviteModel } from './appClaimedInvite'; -export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; -export { OrgLimitModel } from './orgLimit'; +export { OrgAdminGrantModel } from './orgAdminGrant'; +export { OrgOwnerGrantModel } from './orgOwnerGrant'; export { MembershipTypeModel } from './membershipType'; +export { AppLimitDefaultModel } from './appLimitDefault'; +export { OrgLimitDefaultModel } from './orgLimitDefault'; +export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; +export { AppClaimedInviteModel } from './appClaimedInvite'; export { AppGrantModel } from './appGrant'; export { AppMembershipDefaultModel } from './appMembershipDefault'; export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; export { OrgGrantModel } from './orgGrant'; export { OrgChartEdgeModel } from './orgChartEdge'; +export { AppLimitModel } from './appLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { OrgMemberProfileModel } from './orgMemberProfile'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; +export { OrgLimitModel } from './orgLimit'; export { AppLevelModel } from './appLevel'; export { AppInviteModel } from './appInvite'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { OrgInviteModel } from './orgInvite'; export { AppMembershipModel } from './appMembership'; export { OrgMembershipModel } from './orgMembership'; diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-sdk/src/admin/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts index e26ce5c85..cbc1459ea 100644 --- a/sdk/constructive-sdk/src/admin/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/admin/orm/mutation/index.ts @@ -10,17 +10,14 @@ import type { SubmitAppInviteCodeInput, SubmitOrgInviteCodeInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SubmitAppInviteCodePayload, SubmitOrgInviteCodePayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SubmitAppInviteCodePayloadSelect, SubmitOrgInviteCodePayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -40,15 +37,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -148,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/auth/README.md b/sdk/constructive-sdk/src/auth/README.md index 4b685da2e..210c88ac4 100644 --- a/sdk/constructive-sdk/src/auth/README.md +++ b/sdk/constructive-sdk/src/auth/README.md @@ -10,7 +10,7 @@ - **Tables:** 9 - **Custom queries:** 5 -- **Custom mutations:** 24 +- **Custom mutations:** 23 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/auth/orm/README.md b/sdk/constructive-sdk/src/auth/orm/README.md index 6b10736b2..9188f84b8 100644 --- a/sdk/constructive-sdk/src/auth/orm/README.md +++ b/sdk/constructive-sdk/src/auth/orm/README.md @@ -755,23 +755,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/auth/orm/input-types.ts b/sdk/constructive-sdk/src/auth/orm/input-types.ts index eb5c48d84..a091f00d3 100644 --- a/sdk/constructive-sdk/src/auth/orm/input-types.ts +++ b/sdk/constructive-sdk/src/auth/orm/input-types.ts @@ -1368,10 +1368,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -2440,8 +2436,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -2449,20 +2443,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts index 1779b93ba..fa49f8830 100644 --- a/sdk/constructive-sdk/src/auth/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/auth/orm/mutation/index.ts @@ -29,7 +29,6 @@ import type { ForgotPasswordInput, SendVerificationEmailInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SignOutPayload, SendAccountDeletionEmailPayload, @@ -53,7 +52,6 @@ import type { ForgotPasswordPayload, SendVerificationEmailPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SignOutPayloadSelect, SendAccountDeletionEmailPayloadSelect, @@ -77,7 +75,6 @@ import type { ForgotPasswordPayloadSelect, SendVerificationEmailPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -154,15 +151,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -813,35 +801,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/objects/README.md b/sdk/constructive-sdk/src/objects/README.md index 2d86254c2..0fc7476f2 100644 --- a/sdk/constructive-sdk/src/objects/README.md +++ b/sdk/constructive-sdk/src/objects/README.md @@ -10,7 +10,7 @@ - **Tables:** 5 - **Custom queries:** 4 -- **Custom mutations:** 11 +- **Custom mutations:** 10 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/objects/orm/README.md b/sdk/constructive-sdk/src/objects/orm/README.md index cb4e1b29d..e86aa309c 100644 --- a/sdk/constructive-sdk/src/objects/orm/README.md +++ b/sdk/constructive-sdk/src/objects/orm/README.md @@ -412,23 +412,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/objects/orm/input-types.ts b/sdk/constructive-sdk/src/objects/orm/input-types.ts index 5a7d7952c..67a2de15b 100644 --- a/sdk/constructive-sdk/src/objects/orm/input-types.ts +++ b/sdk/constructive-sdk/src/objects/orm/input-types.ts @@ -725,10 +725,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -829,8 +825,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -838,20 +832,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts index 49a83c80c..04890fb67 100644 --- a/sdk/constructive-sdk/src/objects/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/objects/orm/mutation/index.ts @@ -16,7 +16,6 @@ import type { UpdateNodeAtPathInput, SetAndCommitInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, FreezeObjectsPayload, InitEmptyRepoPayload, @@ -27,7 +26,6 @@ import type { UpdateNodeAtPathPayload, SetAndCommitPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, FreezeObjectsPayloadSelect, InitEmptyRepoPayloadSelect, @@ -38,7 +36,6 @@ import type { UpdateNodeAtPathPayloadSelect, SetAndCommitPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -76,15 +73,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -358,35 +346,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/public/README.md b/sdk/constructive-sdk/src/public/README.md index ffcc5e42d..1dd3b4991 100644 --- a/sdk/constructive-sdk/src/public/README.md +++ b/sdk/constructive-sdk/src/public/README.md @@ -8,9 +8,9 @@ ## Overview -- **Tables:** 120 +- **Tables:** 129 - **Custom queries:** 22 -- **Custom mutations:** 50 +- **Custom mutations:** 49 **Generators:** ORM diff --git a/sdk/constructive-sdk/src/public/orm/README.md b/sdk/constructive-sdk/src/public/orm/README.md index 9d3f602c4..910f95827 100644 --- a/sdk/constructive-sdk/src/public/orm/README.md +++ b/sdk/constructive-sdk/src/public/orm/README.md @@ -24,9 +24,9 @@ const db = createClient({ | `orgGetManagersRecord` | findMany, findOne, create, update, delete | | `orgGetSubordinatesRecord` | findMany, findOne, create, update, delete | | `getAllRecord` | findMany, findOne, create, update, delete | -| `object` | findMany, findOne, create, update, delete | | `appPermission` | findMany, findOne, create, update, delete | | `orgPermission` | findMany, findOne, create, update, delete | +| `object` | findMany, findOne, create, update, delete | | `appLevelRequirement` | findMany, findOne, create, update, delete | | `database` | findMany, findOne, create, update, delete | | `schema` | findMany, findOne, create, update, delete | @@ -107,6 +107,7 @@ const db = createClient({ | `orgPermissionDefault` | findMany, findOne, create, update, delete | | `appLimit` | findMany, findOne, create, update, delete | | `orgLimit` | findMany, findOne, create, update, delete | +| `orgLimitAggregate` | findMany, findOne, create, update, delete | | `appStep` | findMany, findOne, create, update, delete | | `appAchievement` | findMany, findOne, create, update, delete | | `appLevel` | findMany, findOne, create, update, delete | @@ -119,26 +120,34 @@ const db = createClient({ | `orgInvite` | findMany, findOne, create, update, delete | | `orgClaimedInvite` | findMany, findOne, create, update, delete | | `auditLog` | findMany, findOne, create, update, delete | -| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `agentThread` | findMany, findOne, create, update, delete | +| `agentMessage` | findMany, findOne, create, update, delete | +| `agentTask` | findMany, findOne, create, update, delete | +| `roleType` | findMany, findOne, create, update, delete | | `identityProvider` | findMany, findOne, create, update, delete | | `ref` | findMany, findOne, create, update, delete | | `store` | findMany, findOne, create, update, delete | -| `roleType` | findMany, findOne, create, update, delete | +| `appPermissionDefault` | findMany, findOne, create, update, delete | +| `membershipType` | findMany, findOne, create, update, delete | | `migrateFile` | findMany, findOne, create, update, delete | +| `devicesModule` | findMany, findOne, create, update, delete | +| `nodeTypeRegistry` | findMany, findOne, create, update, delete | | `appLimitDefault` | findMany, findOne, create, update, delete | | `orgLimitDefault` | findMany, findOne, create, update, delete | -| `devicesModule` | findMany, findOne, create, update, delete | | `userConnectedAccount` | findMany, findOne, create, update, delete | -| `appMembershipDefault` | findMany, findOne, create, update, delete | -| `orgMembershipDefault` | findMany, findOne, create, update, delete | | `commit` | findMany, findOne, create, update, delete | | `rateLimitsModule` | findMany, findOne, create, update, delete | -| `membershipType` | findMany, findOne, create, update, delete | +| `appMembershipDefault` | findMany, findOne, create, update, delete | +| `orgMembershipDefault` | findMany, findOne, create, update, delete | +| `appLimitEvent` | findMany, findOne, create, update, delete | +| `orgLimitEvent` | findMany, findOne, create, update, delete | +| `plansModule` | findMany, findOne, create, update, delete | | `rlsModule` | findMany, findOne, create, update, delete | | `sqlAction` | findMany, findOne, create, update, delete | -| `orgMembershipSetting` | findMany, findOne, create, update, delete | -| `user` | findMany, findOne, create, update, delete | +| `billingModule` | findMany, findOne, create, update, delete | | `astMigration` | findMany, findOne, create, update, delete | +| `user` | findMany, findOne, create, update, delete | +| `orgMembershipSetting` | findMany, findOne, create, update, delete | | `appMembership` | findMany, findOne, create, update, delete | | `hierarchyModule` | findMany, findOne, create, update, delete | @@ -234,45 +243,42 @@ const updated = await db.getAllRecord.update({ where: { id: '' }, data: { const deleted = await db.getAllRecord.delete({ where: { id: '' } }).execute(); ``` -### `db.object` +### `db.appPermission` -CRUD operations for Object records. +CRUD operations for AppPermission records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `kids` | UUID | Yes | -| `ktree` | String | Yes | -| `data` | JSON | Yes | -| `frzn` | Boolean | Yes | -| `createdAt` | Datetime | No | +| `name` | String | Yes | +| `bitnum` | Int | Yes | +| `bitstr` | BitString | Yes | +| `description` | String | Yes | **Operations:** ```typescript -// List all object records -const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +// List all appPermission records +const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); +const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); +const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); +const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.object.delete({ where: { id: '' } }).execute(); +const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermission` +### `db.orgPermission` -CRUD operations for AppPermission records. +CRUD operations for OrgPermission records. **Fields:** @@ -287,53 +293,56 @@ CRUD operations for AppPermission records. **Operations:** ```typescript -// List all appPermission records -const items = await db.appPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all orgPermission records +const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Get one by id -const item = await db.appPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); // Create -const created = await db.appPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); ``` -### `db.orgPermission` +### `db.object` -CRUD operations for OrgPermission records. +CRUD operations for Object records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `hashUuid` | UUID | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `bitnum` | Int | Yes | -| `bitstr` | BitString | Yes | -| `description` | String | Yes | +| `databaseId` | UUID | Yes | +| `kids` | UUID | Yes | +| `ktree` | String | Yes | +| `data` | JSON | Yes | +| `frzn` | Boolean | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgPermission records -const items = await db.orgPermission.findMany({ select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +// List all object records +const items = await db.object.findMany({ select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgPermission.findOne({ id: '', select: { id: true, name: true, bitnum: true, bitstr: true, description: true } }).execute(); +const item = await db.object.findOne({ id: '', select: { hashUuid: true, id: true, databaseId: true, kids: true, ktree: true, data: true, frzn: true, createdAt: true } }).execute(); // Create -const created = await db.orgPermission.create({ data: { name: '', bitnum: '', bitstr: '', description: '' }, select: { id: true } }).execute(); +const created = await db.object.create({ data: { hashUuid: '', databaseId: '', kids: '', ktree: '', data: '', frzn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgPermission.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.object.update({ where: { id: '' }, data: { hashUuid: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgPermission.delete({ where: { id: '' } }).execute(); +const deleted = await db.object.delete({ where: { id: '' } }).execute(); ``` ### `db.appLevelRequirement` @@ -2181,6 +2190,7 @@ CRUD operations for LimitsModule records. | `limitDecrementTrigger` | String | Yes | | `limitUpdateTrigger` | String | Yes | | `limitCheckFunction` | String | Yes | +| `aggregateTableId` | UUID | Yes | | `prefix` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | @@ -2190,13 +2200,13 @@ CRUD operations for LimitsModule records. ```typescript // List all limitsModule records -const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const items = await db.limitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Get one by id -const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); +const item = await db.limitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, defaultTableId: true, defaultTableName: true, limitIncrementFunction: true, limitDecrementFunction: true, limitIncrementTrigger: true, limitDecrementTrigger: true, limitUpdateTrigger: true, limitCheckFunction: true, aggregateTableId: true, prefix: true, membershipType: true, entityTableId: true, actorTableId: true } }).execute(); // Create -const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); +const created = await db.limitsModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', defaultTableId: '', defaultTableName: '', limitIncrementFunction: '', limitDecrementFunction: '', limitIncrementTrigger: '', limitDecrementTrigger: '', limitUpdateTrigger: '', limitCheckFunction: '', aggregateTableId: '', prefix: '', membershipType: '', entityTableId: '', actorTableId: '' }, select: { id: true } }).execute(); // Update const updated = await db.limitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2400,6 +2410,8 @@ CRUD operations for ProfilesModule records. | `profileGrantsTableName` | String | Yes | | `profileDefinitionGrantsTableId` | UUID | Yes | | `profileDefinitionGrantsTableName` | String | Yes | +| `profileTemplatesTableId` | UUID | Yes | +| `profileTemplatesTableName` | String | Yes | | `membershipType` | Int | Yes | | `entityTableId` | UUID | Yes | | `actorTableId` | UUID | Yes | @@ -2411,13 +2423,13 @@ CRUD operations for ProfilesModule records. ```typescript // List all profilesModule records -const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const items = await db.profilesModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Get one by id -const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); +const item = await db.profilesModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, tableId: true, tableName: true, profilePermissionsTableId: true, profilePermissionsTableName: true, profileGrantsTableId: true, profileGrantsTableName: true, profileDefinitionGrantsTableId: true, profileDefinitionGrantsTableName: true, profileTemplatesTableId: true, profileTemplatesTableName: true, membershipType: true, entityTableId: true, actorTableId: true, permissionsTableId: true, membershipsTableId: true, prefix: true } }).execute(); // Create -const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); +const created = await db.profilesModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', tableId: '', tableName: '', profilePermissionsTableId: '', profilePermissionsTableName: '', profileGrantsTableId: '', profileGrantsTableName: '', profileDefinitionGrantsTableId: '', profileDefinitionGrantsTableName: '', profileTemplatesTableId: '', profileTemplatesTableName: '', membershipType: '', entityTableId: '', actorTableId: '', permissionsTableId: '', membershipsTableId: '', prefix: '' }, select: { id: true } }).execute(); // Update const updated = await db.profilesModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -2728,10 +2740,8 @@ CRUD operations for StorageModule records. | `privateSchemaId` | UUID | Yes | | `bucketsTableId` | UUID | Yes | | `filesTableId` | UUID | Yes | -| `uploadRequestsTableId` | UUID | Yes | | `bucketsTableName` | String | Yes | | `filesTableName` | String | Yes | -| `uploadRequestsTableName` | String | Yes | | `membershipType` | Int | Yes | | `policies` | JSON | Yes | | `skipDefaultPolicyTables` | String | Yes | @@ -2740,6 +2750,7 @@ CRUD operations for StorageModule records. | `publicUrlPrefix` | String | Yes | | `provider` | String | Yes | | `allowedOrigins` | String | Yes | +| `restrictReads` | Boolean | Yes | | `uploadUrlExpirySeconds` | Int | Yes | | `downloadUrlExpirySeconds` | Int | Yes | | `defaultMaxFileSize` | BigInt | Yes | @@ -2750,13 +2761,13 @@ CRUD operations for StorageModule records. ```typescript // List all storageModule records -const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const items = await db.storageModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Get one by id -const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, uploadRequestsTableId: true, bucketsTableName: true, filesTableName: true, uploadRequestsTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); +const item = await db.storageModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, bucketsTableId: true, filesTableId: true, bucketsTableName: true, filesTableName: true, membershipType: true, policies: true, skipDefaultPolicyTables: true, entityTableId: true, endpoint: true, publicUrlPrefix: true, provider: true, allowedOrigins: true, restrictReads: true, uploadUrlExpirySeconds: true, downloadUrlExpirySeconds: true, defaultMaxFileSize: true, maxFilenameLength: true, cacheTtlSeconds: true } }).execute(); // Create -const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', uploadRequestsTableId: '', bucketsTableName: '', filesTableName: '', uploadRequestsTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); +const created = await db.storageModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', bucketsTableId: '', filesTableId: '', bucketsTableName: '', filesTableName: '', membershipType: '', policies: '', skipDefaultPolicyTables: '', entityTableId: '', endpoint: '', publicUrlPrefix: '', provider: '', allowedOrigins: '', restrictReads: '', uploadUrlExpirySeconds: '', downloadUrlExpirySeconds: '', defaultMaxFileSize: '', maxFilenameLength: '', cacheTtlSeconds: '' }, select: { id: true } }).execute(); // Update const updated = await db.storageModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); @@ -3424,20 +3435,23 @@ CRUD operations for AppLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | **Operations:** ```typescript // List all appLimit records -const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const items = await db.appLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Get one by id -const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true } }).execute(); +const item = await db.appLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); // Create -const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '' }, select: { id: true } }).execute(); +const created = await db.appLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); // Update const updated = await db.appLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3457,21 +3471,24 @@ CRUD operations for OrgLimit records. | `id` | UUID | No | | `name` | String | Yes | | `actorId` | UUID | Yes | -| `num` | Int | Yes | -| `max` | Int | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | | `entityId` | UUID | Yes | **Operations:** ```typescript // List all orgLimit records -const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const items = await db.orgLimit.findMany({ select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, entityId: true } }).execute(); +const item = await db.orgLimit.findOne({ id: '', select: { id: true, name: true, actorId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true, entityId: true } }).execute(); // Create -const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgLimit.create({ data: { name: '', actorId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgLimit.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); @@ -3480,6 +3497,42 @@ const updated = await db.orgLimit.update({ where: { id: '' }, data: { name const deleted = await db.orgLimit.delete({ where: { id: '' } }).execute(); ``` +### `db.orgLimitAggregate` + +CRUD operations for OrgLimitAggregate records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `entityId` | UUID | Yes | +| `num` | BigInt | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | +| `windowStart` | Datetime | Yes | +| `windowDuration` | Interval | Yes | + +**Operations:** + +```typescript +// List all orgLimitAggregate records +const items = await db.orgLimitAggregate.findMany({ select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Get one by id +const item = await db.orgLimitAggregate.findOne({ id: '', select: { id: true, name: true, entityId: true, num: true, max: true, softMax: true, windowStart: true, windowDuration: true } }).execute(); + +// Create +const created = await db.orgLimitAggregate.create({ data: { name: '', entityId: '', num: '', max: '', softMax: '', windowStart: '', windowDuration: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitAggregate.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitAggregate.delete({ where: { id: '' } }).execute(); +``` + ### `db.appStep` CRUD operations for AppStep records. @@ -3751,6 +3804,7 @@ CRUD operations for AppInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3759,13 +3813,13 @@ CRUD operations for AppInvite records. ```typescript // List all appInvite records -const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const items = await db.appInvite.findMany({ select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Get one by id -const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); +const item = await db.appInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true } }).execute(); // Create -const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '' }, select: { id: true } }).execute(); +const created = await db.appInvite.create({ data: { email: '', senderId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '' }, select: { id: true } }).execute(); // Update const updated = await db.appInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3826,6 +3880,7 @@ CRUD operations for OrgInvite records. | `inviteCount` | Int | Yes | | `multiple` | Boolean | Yes | | `data` | JSON | Yes | +| `profileId` | UUID | Yes | | `expiresAt` | Datetime | Yes | | `createdAt` | Datetime | No | | `updatedAt` | Datetime | No | @@ -3835,13 +3890,13 @@ CRUD operations for OrgInvite records. ```typescript // List all orgInvite records -const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const items = await db.orgInvite.findMany({ select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Get one by id -const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); +const item = await db.orgInvite.findOne({ id: '', select: { id: true, email: true, senderId: true, receiverId: true, inviteToken: true, inviteValid: true, inviteLimit: true, inviteCount: true, multiple: true, data: true, profileId: true, expiresAt: true, createdAt: true, updatedAt: true, entityId: true } }).execute(); // Create -const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); +const created = await db.orgInvite.create({ data: { email: '', senderId: '', receiverId: '', inviteToken: '', inviteValid: '', inviteLimit: '', inviteCount: '', multiple: '', data: '', profileId: '', expiresAt: '', entityId: '' }, select: { id: true } }).execute(); // Update const updated = await db.orgInvite.update({ where: { id: '' }, data: { email: '' }, select: { id: true } }).execute(); @@ -3921,133 +3976,116 @@ const updated = await db.auditLog.update({ where: { id: '' }, data: { even const deleted = await db.auditLog.delete({ where: { id: '' } }).execute(); ``` -### `db.appPermissionDefault` +### `db.agentThread` -CRUD operations for AppPermissionDefault records. +CRUD operations for AgentThread records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `title` | String | Yes | +| `mode` | String | Yes | +| `model` | String | Yes | +| `systemPrompt` | String | Yes | | `id` | UUID | No | -| `permissions` | BitString | Yes | - -**Operations:** - -```typescript -// List all appPermissionDefault records -const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); - -// Get one by id -const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); - -// Create -const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); - -// Update -const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); - -// Delete -const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); -``` - -### `db.identityProvider` - -CRUD operations for IdentityProvider records. - -**Fields:** - -| Field | Type | Editable | -|-------|------|----------| -| `slug` | String | Yes | -| `kind` | String | Yes | -| `displayName` | String | Yes | -| `enabled` | Boolean | Yes | -| `isBuiltIn` | Boolean | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all identityProvider records -const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +// List all agentThread records +const items = await db.agentThread.findMany({ select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Get one by id -const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); +const item = await db.agentThread.findOne({ id: '', select: { title: true, mode: true, model: true, systemPrompt: true, id: true, createdAt: true, updatedAt: true, ownerId: true, entityId: true, status: true } }).execute(); // Create -const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); +const created = await db.agentThread.create({ data: { title: '', mode: '', model: '', systemPrompt: '', ownerId: '', entityId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); +const updated = await db.agentThread.update({ where: { id: '' }, data: { title: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentThread.delete({ where: { id: '' } }).execute(); ``` -### `db.ref` +### `db.agentMessage` -CRUD operations for Ref records. +CRUD operations for AgentMessage records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `authorRole` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `commitId` | UUID | Yes | +| `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `parts` | JSON | Yes | **Operations:** ```typescript -// List all ref records -const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +// List all agentMessage records +const items = await db.agentMessage.findMany({ select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Get one by id -const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); +const item = await db.agentMessage.findOne({ id: '', select: { threadId: true, entityId: true, authorRole: true, id: true, createdAt: true, updatedAt: true, ownerId: true, parts: true } }).execute(); // Create -const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); +const created = await db.agentMessage.create({ data: { threadId: '', entityId: '', authorRole: '', ownerId: '', parts: '' }, select: { id: true } }).execute(); // Update -const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentMessage.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.ref.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentMessage.delete({ where: { id: '' } }).execute(); ``` -### `db.store` +### `db.agentTask` -CRUD operations for Store records. +CRUD operations for AgentTask records. **Fields:** | Field | Type | Editable | |-------|------|----------| +| `threadId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `description` | String | Yes | +| `source` | String | Yes | +| `error` | String | Yes | | `id` | UUID | No | -| `name` | String | Yes | -| `databaseId` | UUID | Yes | -| `hash` | UUID | Yes | | `createdAt` | Datetime | No | +| `updatedAt` | Datetime | No | +| `ownerId` | UUID | Yes | +| `status` | String | Yes | **Operations:** ```typescript -// List all store records -const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +// List all agentTask records +const items = await db.agentTask.findMany({ select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Get one by id -const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); +const item = await db.agentTask.findOne({ id: '', select: { threadId: true, entityId: true, description: true, source: true, error: true, id: true, createdAt: true, updatedAt: true, ownerId: true, status: true } }).execute(); // Create -const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); +const created = await db.agentTask.create({ data: { threadId: '', entityId: '', description: '', source: '', error: '', ownerId: '', status: '' }, select: { id: true } }).execute(); // Update -const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.agentTask.update({ where: { id: '' }, data: { threadId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.store.delete({ where: { id: '' } }).execute(); +const deleted = await db.agentTask.delete({ where: { id: '' } }).execute(); ``` ### `db.roleType` @@ -4080,40 +4118,42 @@ const updated = await db.roleType.update({ where: { id: '' }, data: { name: const deleted = await db.roleType.delete({ where: { id: '' } }).execute(); ``` -### `db.migrateFile` +### `db.identityProvider` -CRUD operations for MigrateFile records. +CRUD operations for IdentityProvider records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `upload` | ConstructiveInternalTypeUpload | Yes | +| `slug` | String | Yes | +| `kind` | String | Yes | +| `displayName` | String | Yes | +| `enabled` | Boolean | Yes | +| `isBuiltIn` | Boolean | Yes | **Operations:** ```typescript -// List all migrateFile records -const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); +// List all identityProvider records +const items = await db.identityProvider.findMany({ select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Get one by id -const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); +const item = await db.identityProvider.findOne({ id: '', select: { slug: true, kind: true, displayName: true, enabled: true, isBuiltIn: true } }).execute(); // Create -const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); +const created = await db.identityProvider.create({ data: { slug: '', kind: '', displayName: '', enabled: '', isBuiltIn: '' }, select: { id: true } }).execute(); // Update -const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.identityProvider.update({ where: { id: '' }, data: { slug: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +const deleted = await db.identityProvider.delete({ where: { id: '' } }).execute(); ``` -### `db.appLimitDefault` +### `db.ref` -CRUD operations for AppLimitDefault records. +CRUD operations for Ref records. **Fields:** @@ -4121,30 +4161,32 @@ CRUD operations for AppLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `commitId` | UUID | Yes | **Operations:** ```typescript -// List all appLimitDefault records -const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all ref records +const items = await db.ref.findMany({ select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Get one by id -const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.ref.findOne({ id: '', select: { id: true, name: true, databaseId: true, storeId: true, commitId: true } }).execute(); // Create -const created = await db.appLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.ref.create({ data: { name: '', databaseId: '', storeId: '', commitId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.ref.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.ref.delete({ where: { id: '' } }).execute(); ``` -### `db.orgLimitDefault` +### `db.store` -CRUD operations for OrgLimitDefault records. +CRUD operations for Store records. **Fields:** @@ -4152,38 +4194,135 @@ CRUD operations for OrgLimitDefault records. |-------|------|----------| | `id` | UUID | No | | `name` | String | Yes | -| `max` | Int | Yes | +| `databaseId` | UUID | Yes | +| `hash` | UUID | Yes | +| `createdAt` | Datetime | No | **Operations:** ```typescript -// List all orgLimitDefault records -const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true } }).execute(); +// List all store records +const items = await db.store.findMany({ select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Get one by id -const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true } }).execute(); +const item = await db.store.findOne({ id: '', select: { id: true, name: true, databaseId: true, hash: true, createdAt: true } }).execute(); // Create -const created = await db.orgLimitDefault.create({ data: { name: '', max: '' }, select: { id: true } }).execute(); +const created = await db.store.create({ data: { name: '', databaseId: '', hash: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.store.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +const deleted = await db.store.delete({ where: { id: '' } }).execute(); ``` -### `db.devicesModule` +### `db.appPermissionDefault` -CRUD operations for DevicesModule records. +CRUD operations for AppPermissionDefault records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | +| `permissions` | BitString | Yes | + +**Operations:** + +```typescript +// List all appPermissionDefault records +const items = await db.appPermissionDefault.findMany({ select: { id: true, permissions: true } }).execute(); + +// Get one by id +const item = await db.appPermissionDefault.findOne({ id: '', select: { id: true, permissions: true } }).execute(); + +// Create +const created = await db.appPermissionDefault.create({ data: { permissions: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appPermissionDefault.update({ where: { id: '' }, data: { permissions: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appPermissionDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.membershipType` + +CRUD operations for MembershipType records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `name` | String | Yes | +| `description` | String | Yes | +| `prefix` | String | Yes | +| `parentMembershipType` | Int | Yes | +| `hasUsersTableEntry` | Boolean | Yes | + +**Operations:** + +```typescript +// List all membershipType records +const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Get one by id +const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); + +// Create +const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +``` + +### `db.migrateFile` + +CRUD operations for MigrateFile records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `upload` | ConstructiveInternalTypeUpload | Yes | + +**Operations:** + +```typescript +// List all migrateFile records +const items = await db.migrateFile.findMany({ select: { id: true, databaseId: true, upload: true } }).execute(); + +// Get one by id +const item = await db.migrateFile.findOne({ id: '', select: { id: true, databaseId: true, upload: true } }).execute(); + +// Create +const created = await db.migrateFile.create({ data: { databaseId: '', upload: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.migrateFile.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.migrateFile.delete({ where: { id: '' } }).execute(); +``` + +### `db.devicesModule` + +CRUD operations for DevicesModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | | `userDevicesTableId` | UUID | Yes | | `deviceSettingsTableId` | UUID | Yes | | `userDevicesTable` | String | Yes | @@ -4208,6 +4347,105 @@ const updated = await db.devicesModule.update({ where: { id: '' }, data: { const deleted = await db.devicesModule.delete({ where: { id: '' } }).execute(); ``` +### `db.nodeTypeRegistry` + +CRUD operations for NodeTypeRegistry records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `name` | String | No | +| `slug` | String | Yes | +| `category` | String | Yes | +| `displayName` | String | Yes | +| `description` | String | Yes | +| `parameterSchema` | JSON | Yes | +| `tags` | String | Yes | + +**Operations:** + +```typescript +// List all nodeTypeRegistry records +const items = await db.nodeTypeRegistry.findMany({ select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Get one by name +const item = await db.nodeTypeRegistry.findOne({ name: '', select: { name: true, slug: true, category: true, displayName: true, description: true, parameterSchema: true, tags: true } }).execute(); + +// Create +const created = await db.nodeTypeRegistry.create({ data: { slug: '', category: '', displayName: '', description: '', parameterSchema: '', tags: '' }, select: { name: true } }).execute(); + +// Update +const updated = await db.nodeTypeRegistry.update({ where: { name: '' }, data: { slug: '' }, select: { name: true } }).execute(); + +// Delete +const deleted = await db.nodeTypeRegistry.delete({ where: { name: '' } }).execute(); +``` + +### `db.appLimitDefault` + +CRUD operations for AppLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all appLimitDefault records +const items = await db.appLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.appLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.appLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.appLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.appLimitDefault.delete({ where: { id: '' } }).execute(); +``` + +### `db.orgLimitDefault` + +CRUD operations for OrgLimitDefault records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `name` | String | Yes | +| `max` | BigInt | Yes | +| `softMax` | BigInt | Yes | + +**Operations:** + +```typescript +// List all orgLimitDefault records +const items = await db.orgLimitDefault.findMany({ select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Get one by id +const item = await db.orgLimitDefault.findOne({ id: '', select: { id: true, name: true, max: true, softMax: true } }).execute(); + +// Create +const created = await db.orgLimitDefault.create({ data: { name: '', max: '', softMax: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.orgLimitDefault.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.orgLimitDefault.delete({ where: { id: '' } }).execute(); +``` + ### `db.userConnectedAccount` CRUD operations for UserConnectedAccount records. @@ -4244,6 +4482,80 @@ const updated = await db.userConnectedAccount.update({ where: { id: '' }, const deleted = await db.userConnectedAccount.delete({ where: { id: '' } }).execute(); ``` +### `db.commit` + +CRUD operations for Commit records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `message` | String | Yes | +| `databaseId` | UUID | Yes | +| `storeId` | UUID | Yes | +| `parentIds` | UUID | Yes | +| `authorId` | UUID | Yes | +| `committerId` | UUID | Yes | +| `treeId` | UUID | Yes | +| `date` | Datetime | Yes | + +**Operations:** + +```typescript +// List all commit records +const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Get one by id +const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); + +// Create +const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +``` + +### `db.rateLimitsModule` + +CRUD operations for RateLimitsModule records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `rateLimitSettingsTableId` | UUID | Yes | +| `ipRateLimitsTableId` | UUID | Yes | +| `rateLimitsTableId` | UUID | Yes | +| `rateLimitSettingsTable` | String | Yes | +| `ipRateLimitsTable` | String | Yes | +| `rateLimitsTable` | String | Yes | + +**Operations:** + +```typescript +// List all rateLimitsModule records +const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Get one by id +const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); + +// Create +const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +``` + ### `db.appMembershipDefault` CRUD operations for AppMembershipDefault records. @@ -4314,112 +4626,117 @@ const updated = await db.orgMembershipDefault.update({ where: { id: '' }, const deleted = await db.orgMembershipDefault.delete({ where: { id: '' } }).execute(); ``` -### `db.commit` +### `db.appLimitEvent` -CRUD operations for Commit records. +CRUD operations for AppLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `message` | String | Yes | -| `databaseId` | UUID | Yes | -| `storeId` | UUID | Yes | -| `parentIds` | UUID | Yes | -| `authorId` | UUID | Yes | -| `committerId` | UUID | Yes | -| `treeId` | UUID | Yes | -| `date` | Datetime | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all commit records -const items = await db.commit.findMany({ select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +// List all appLimitEvent records +const items = await db.appLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.commit.findOne({ id: '', select: { id: true, message: true, databaseId: true, storeId: true, parentIds: true, authorId: true, committerId: true, treeId: true, date: true } }).execute(); +const item = await db.appLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.commit.create({ data: { message: '', databaseId: '', storeId: '', parentIds: '', authorId: '', committerId: '', treeId: '', date: '' }, select: { id: true } }).execute(); +const created = await db.appLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.commit.update({ where: { id: '' }, data: { message: '' }, select: { id: true } }).execute(); +const updated = await db.appLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.commit.delete({ where: { id: '' } }).execute(); +const deleted = await db.appLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.rateLimitsModule` +### `db.orgLimitEvent` -CRUD operations for RateLimitsModule records. +CRUD operations for OrgLimitEvent records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | UUID | No | -| `databaseId` | UUID | Yes | -| `schemaId` | UUID | Yes | -| `rateLimitSettingsTableId` | UUID | Yes | -| `ipRateLimitsTableId` | UUID | Yes | -| `rateLimitsTableId` | UUID | Yes | -| `rateLimitSettingsTable` | String | Yes | -| `ipRateLimitsTable` | String | Yes | -| `rateLimitsTable` | String | Yes | +| `name` | String | Yes | +| `actorId` | UUID | Yes | +| `entityId` | UUID | Yes | +| `eventType` | String | Yes | +| `delta` | BigInt | Yes | +| `numBefore` | BigInt | Yes | +| `numAfter` | BigInt | Yes | +| `maxAtEvent` | BigInt | Yes | +| `reason` | String | Yes | **Operations:** ```typescript -// List all rateLimitsModule records -const items = await db.rateLimitsModule.findMany({ select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +// List all orgLimitEvent records +const items = await db.orgLimitEvent.findMany({ select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Get one by id -const item = await db.rateLimitsModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, rateLimitSettingsTableId: true, ipRateLimitsTableId: true, rateLimitsTableId: true, rateLimitSettingsTable: true, ipRateLimitsTable: true, rateLimitsTable: true } }).execute(); +const item = await db.orgLimitEvent.findOne({ id: '', select: { name: true, actorId: true, entityId: true, eventType: true, delta: true, numBefore: true, numAfter: true, maxAtEvent: true, reason: true } }).execute(); // Create -const created = await db.rateLimitsModule.create({ data: { databaseId: '', schemaId: '', rateLimitSettingsTableId: '', ipRateLimitsTableId: '', rateLimitsTableId: '', rateLimitSettingsTable: '', ipRateLimitsTable: '', rateLimitsTable: '' }, select: { id: true } }).execute(); +const created = await db.orgLimitEvent.create({ data: { name: '', actorId: '', entityId: '', eventType: '', delta: '', numBefore: '', numAfter: '', maxAtEvent: '', reason: '' }, select: { id: true } }).execute(); // Update -const updated = await db.rateLimitsModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgLimitEvent.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.rateLimitsModule.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgLimitEvent.delete({ where: { id: '' } }).execute(); ``` -### `db.membershipType` +### `db.plansModule` -CRUD operations for MembershipType records. +CRUD operations for PlansModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `name` | String | Yes | -| `description` | String | Yes | +| `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `plansTableId` | UUID | Yes | +| `plansTableName` | String | Yes | +| `planLimitsTableId` | UUID | Yes | +| `planLimitsTableName` | String | Yes | +| `applyPlanFunction` | String | Yes | +| `applyPlanAggregateFunction` | String | Yes | | `prefix` | String | Yes | -| `parentMembershipType` | Int | Yes | -| `hasUsersTableEntry` | Boolean | Yes | **Operations:** ```typescript -// List all membershipType records -const items = await db.membershipType.findMany({ select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +// List all plansModule records +const items = await db.plansModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Get one by id -const item = await db.membershipType.findOne({ id: '', select: { id: true, name: true, description: true, prefix: true, parentMembershipType: true, hasUsersTableEntry: true } }).execute(); +const item = await db.plansModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, plansTableId: true, plansTableName: true, planLimitsTableId: true, planLimitsTableName: true, applyPlanFunction: true, applyPlanAggregateFunction: true, prefix: true } }).execute(); // Create -const created = await db.membershipType.create({ data: { name: '', description: '', prefix: '', parentMembershipType: '', hasUsersTableEntry: '' }, select: { id: true } }).execute(); +const created = await db.plansModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', plansTableId: '', plansTableName: '', planLimitsTableId: '', planLimitsTableName: '', applyPlanFunction: '', applyPlanAggregateFunction: '', prefix: '' }, select: { id: true } }).execute(); // Update -const updated = await db.membershipType.update({ where: { id: '' }, data: { name: '' }, select: { id: true } }).execute(); +const updated = await db.plansModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.membershipType.delete({ where: { id: '' } }).execute(); +const deleted = await db.plansModule.delete({ where: { id: '' } }).execute(); ``` ### `db.rlsModule` @@ -4502,44 +4819,87 @@ const updated = await db.sqlAction.update({ where: { id: '' }, data: { name const deleted = await db.sqlAction.delete({ where: { id: '' } }).execute(); ``` -### `db.orgMembershipSetting` +### `db.billingModule` -CRUD operations for OrgMembershipSetting records. +CRUD operations for BillingModule records. **Fields:** | Field | Type | Editable | |-------|------|----------| | `id` | UUID | No | +| `databaseId` | UUID | Yes | +| `schemaId` | UUID | Yes | +| `privateSchemaId` | UUID | Yes | +| `metersTableId` | UUID | Yes | +| `metersTableName` | String | Yes | +| `planSubscriptionsTableId` | UUID | Yes | +| `planSubscriptionsTableName` | String | Yes | +| `ledgerTableId` | UUID | Yes | +| `ledgerTableName` | String | Yes | +| `balancesTableId` | UUID | Yes | +| `balancesTableName` | String | Yes | +| `recordUsageFunction` | String | Yes | +| `prefix` | String | Yes | + +**Operations:** + +```typescript +// List all billingModule records +const items = await db.billingModule.findMany({ select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Get one by id +const item = await db.billingModule.findOne({ id: '', select: { id: true, databaseId: true, schemaId: true, privateSchemaId: true, metersTableId: true, metersTableName: true, planSubscriptionsTableId: true, planSubscriptionsTableName: true, ledgerTableId: true, ledgerTableName: true, balancesTableId: true, balancesTableName: true, recordUsageFunction: true, prefix: true } }).execute(); + +// Create +const created = await db.billingModule.create({ data: { databaseId: '', schemaId: '', privateSchemaId: '', metersTableId: '', metersTableName: '', planSubscriptionsTableId: '', planSubscriptionsTableName: '', ledgerTableId: '', ledgerTableName: '', balancesTableId: '', balancesTableName: '', recordUsageFunction: '', prefix: '' }, select: { id: true } }).execute(); + +// Update +const updated = await db.billingModule.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); + +// Delete +const deleted = await db.billingModule.delete({ where: { id: '' } }).execute(); +``` + +### `db.astMigration` + +CRUD operations for AstMigration records. + +**Fields:** + +| Field | Type | Editable | +|-------|------|----------| +| `id` | Int | No | +| `databaseId` | UUID | Yes | +| `name` | String | Yes | +| `requires` | String | Yes | +| `payload` | JSON | Yes | +| `deploys` | String | Yes | +| `deploy` | JSON | Yes | +| `revert` | JSON | Yes | +| `verify` | JSON | Yes | | `createdAt` | Datetime | No | -| `updatedAt` | Datetime | No | -| `createdBy` | UUID | Yes | -| `updatedBy` | UUID | Yes | -| `entityId` | UUID | Yes | -| `deleteMemberCascadeChildren` | Boolean | Yes | -| `createChildCascadeOwners` | Boolean | Yes | -| `createChildCascadeAdmins` | Boolean | Yes | -| `createChildCascadeMembers` | Boolean | Yes | -| `allowExternalMembers` | Boolean | Yes | -| `populateMemberEmail` | Boolean | Yes | +| `action` | String | Yes | +| `actionId` | UUID | Yes | +| `actorId` | UUID | Yes | **Operations:** ```typescript -// List all orgMembershipSetting records -const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +// List all astMigration records +const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Get one by id -const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, populateMemberEmail: true } }).execute(); +const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); // Create -const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', populateMemberEmail: '' }, select: { id: true } }).execute(); +const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); // Update -const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); +const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); +const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); ``` ### `db.user` @@ -4584,45 +4944,46 @@ const deleted = await db.user.delete({ where: { id: '' } }).execute(); > **Unified Search API fields:** `searchTsv` > Fields provided by the Unified Search plugin. Includes full-text search (tsvector/BM25), trigram similarity scores, and the combined searchScore. Computed fields are read-only and cannot be set in create/update operations. -### `db.astMigration` +### `db.orgMembershipSetting` -CRUD operations for AstMigration records. +CRUD operations for OrgMembershipSetting records. **Fields:** | Field | Type | Editable | |-------|------|----------| -| `id` | Int | No | -| `databaseId` | UUID | Yes | -| `name` | String | Yes | -| `requires` | String | Yes | -| `payload` | JSON | Yes | -| `deploys` | String | Yes | -| `deploy` | JSON | Yes | -| `revert` | JSON | Yes | -| `verify` | JSON | Yes | +| `id` | UUID | No | | `createdAt` | Datetime | No | -| `action` | String | Yes | -| `actionId` | UUID | Yes | -| `actorId` | UUID | Yes | +| `updatedAt` | Datetime | No | +| `createdBy` | UUID | Yes | +| `updatedBy` | UUID | Yes | +| `entityId` | UUID | Yes | +| `deleteMemberCascadeChildren` | Boolean | Yes | +| `createChildCascadeOwners` | Boolean | Yes | +| `createChildCascadeAdmins` | Boolean | Yes | +| `createChildCascadeMembers` | Boolean | Yes | +| `allowExternalMembers` | Boolean | Yes | +| `inviteProfileAssignmentMode` | String | Yes | +| `populateMemberEmail` | Boolean | Yes | +| `limitAllocationMode` | String | Yes | **Operations:** ```typescript -// List all astMigration records -const items = await db.astMigration.findMany({ select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +// List all orgMembershipSetting records +const items = await db.orgMembershipSetting.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Get one by id -const item = await db.astMigration.findOne({ id: '', select: { id: true, databaseId: true, name: true, requires: true, payload: true, deploys: true, deploy: true, revert: true, verify: true, createdAt: true, action: true, actionId: true, actorId: true } }).execute(); +const item = await db.orgMembershipSetting.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, entityId: true, deleteMemberCascadeChildren: true, createChildCascadeOwners: true, createChildCascadeAdmins: true, createChildCascadeMembers: true, allowExternalMembers: true, inviteProfileAssignmentMode: true, populateMemberEmail: true, limitAllocationMode: true } }).execute(); // Create -const created = await db.astMigration.create({ data: { databaseId: '', name: '', requires: '', payload: '', deploys: '', deploy: '', revert: '', verify: '', action: '', actionId: '', actorId: '' }, select: { id: true } }).execute(); +const created = await db.orgMembershipSetting.create({ data: { createdBy: '', updatedBy: '', entityId: '', deleteMemberCascadeChildren: '', createChildCascadeOwners: '', createChildCascadeAdmins: '', createChildCascadeMembers: '', allowExternalMembers: '', inviteProfileAssignmentMode: '', populateMemberEmail: '', limitAllocationMode: '' }, select: { id: true } }).execute(); // Update -const updated = await db.astMigration.update({ where: { id: '' }, data: { databaseId: '' }, select: { id: true } }).execute(); +const updated = await db.orgMembershipSetting.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); // Delete -const deleted = await db.astMigration.delete({ where: { id: '' } }).execute(); +const deleted = await db.orgMembershipSetting.delete({ where: { id: '' } }).execute(); ``` ### `db.appMembership` @@ -4643,7 +5004,6 @@ CRUD operations for AppMembership records. | `isDisabled` | Boolean | Yes | | `isVerified` | Boolean | Yes | | `isActive` | Boolean | Yes | -| `isExternal` | Boolean | Yes | | `isOwner` | Boolean | Yes | | `isAdmin` | Boolean | Yes | | `permissions` | BitString | Yes | @@ -4655,13 +5015,13 @@ CRUD operations for AppMembership records. ```typescript // List all appMembership records -const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const items = await db.appMembership.findMany({ select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Get one by id -const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isExternal: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); +const item = await db.appMembership.findOne({ id: '', select: { id: true, createdAt: true, updatedAt: true, createdBy: true, updatedBy: true, isApproved: true, isBanned: true, isDisabled: true, isVerified: true, isActive: true, isOwner: true, isAdmin: true, permissions: true, granted: true, actorId: true, profileId: true } }).execute(); // Create -const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isExternal: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); +const created = await db.appMembership.create({ data: { createdBy: '', updatedBy: '', isApproved: '', isBanned: '', isDisabled: '', isVerified: '', isActive: '', isOwner: '', isAdmin: '', permissions: '', granted: '', actorId: '', profileId: '' }, select: { id: true } }).execute(); // Update const updated = await db.appMembership.update({ where: { id: '' }, data: { createdBy: '' }, select: { id: true } }).execute(); @@ -4945,97 +5305,97 @@ orgPermissionsGetMaskByNames const result = await db.query.orgPermissionsGetMaskByNames({ names: '' }).execute(); ``` -### `db.query.getAllObjectsFromRoot` +### `db.query.appPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `AppPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getPathObjectsFromRoot` +### `db.query.orgPermissionsGetByMask` -Reads and enables pagination through a set of `Object`. +Reads and enables pagination through a set of `OrgPermission`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `databaseId` | UUID | - | `id` | UUID | - | `path` | [String] | + | `mask` | BitString | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.getObjectAtPath` +### `db.query.getAllObjectsFromRoot` -getObjectAtPath +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `dbId` | UUID | - | `storeId` | UUID | - | `path` | [String] | - | `refname` | String | + | `databaseId` | UUID | + | `id` | UUID | + | `first` | Int | + | `offset` | Int | + | `after` | Cursor | ```typescript -const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); +const result = await db.query.getAllObjectsFromRoot({ databaseId: '', id: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.appPermissionsGetByMask` +### `db.query.getPathObjectsFromRoot` -Reads and enables pagination through a set of `AppPermission`. +Reads and enables pagination through a set of `Object`. - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | + | `databaseId` | UUID | + | `id` | UUID | + | `path` | [String] | | `first` | Int | | `offset` | Int | | `after` | Cursor | ```typescript -const result = await db.query.appPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getPathObjectsFromRoot({ databaseId: '', id: '', path: '', first: '', offset: '', after: '' }).execute(); ``` -### `db.query.orgPermissionsGetByMask` +### `db.query.getObjectAtPath` -Reads and enables pagination through a set of `OrgPermission`. +getObjectAtPath - **Type:** query - **Arguments:** | Argument | Type | |----------|------| - | `mask` | BitString | - | `first` | Int | - | `offset` | Int | - | `after` | Cursor | + | `dbId` | UUID | + | `storeId` | UUID | + | `path` | [String] | + | `refname` | String | ```typescript -const result = await db.query.orgPermissionsGetByMask({ mask: '', first: '', offset: '', after: '' }).execute(); +const result = await db.query.getObjectAtPath({ dbId: '', storeId: '', path: '', refname: '' }).execute(); ``` ### `db.query.stepsRequired` @@ -5699,94 +6059,94 @@ createApiKey const result = await db.mutation.createApiKey({ input: { keyName: '', accessLevel: '', mfaLevel: '', expiresIn: '' } }).execute(); ``` -### `db.mutation.signUp` +### `db.mutation.sendVerificationEmail` -signUp +sendVerificationEmail - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignUpInput (required) | + | `input` | SendVerificationEmailInput (required) | ```typescript -const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); +const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); ``` -### `db.mutation.requestCrossOriginToken` +### `db.mutation.forgotPassword` -requestCrossOriginToken +forgotPassword - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | RequestCrossOriginTokenInput (required) | + | `input` | ForgotPasswordInput (required) | ```typescript -const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); +const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); ``` -### `db.mutation.signIn` +### `db.mutation.signUp` -signIn +signUp - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SignInInput (required) | + | `input` | SignUpInput (required) | ```typescript -const result = await db.mutation.signIn({ input: '' }).execute(); +const result = await db.mutation.signUp({ input: { email: '', password: '', rememberMe: '', credentialKind: '', csrfToken: '' } }).execute(); ``` -### `db.mutation.provisionTable` +### `db.mutation.requestCrossOriginToken` -Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). +requestCrossOriginToken - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ProvisionTableInput (required) | + | `input` | RequestCrossOriginTokenInput (required) | ```typescript -const result = await db.mutation.provisionTable({ input: '' }).execute(); +const result = await db.mutation.requestCrossOriginToken({ input: { email: '', password: '', origin: '', rememberMe: '' } }).execute(); ``` -### `db.mutation.sendVerificationEmail` +### `db.mutation.signIn` -sendVerificationEmail +signIn - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | SendVerificationEmailInput (required) | + | `input` | SignInInput (required) | ```typescript -const result = await db.mutation.sendVerificationEmail({ input: { email: '' } }).execute(); +const result = await db.mutation.signIn({ input: '' }).execute(); ``` -### `db.mutation.forgotPassword` +### `db.mutation.provisionTable` -forgotPassword +Composable table provisioning: creates or finds a table, then creates fields (so Data* modules can reference them), applies N nodes (Data* modules), enables RLS, creates grants, creates N policies, and optionally creates table-level indexes/full_text_searches/unique_constraints. All operations are graceful (skip existing). Accepts multiple nodes and multiple policies per call, unlike secure_table_provision which is limited to one of each. Returns (out_table_id, out_fields). - **Type:** mutation - **Arguments:** | Argument | Type | |----------|------| - | `input` | ForgotPasswordInput (required) | + | `input` | ProvisionTableInput (required) | ```typescript -const result = await db.mutation.forgotPassword({ input: { email: '' } }).execute(); +const result = await db.mutation.provisionTable({ input: '' }).execute(); ``` ### `db.mutation.requestUploadUrl` @@ -5807,23 +6167,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/constructive-sdk/src/public/orm/index.ts b/sdk/constructive-sdk/src/public/orm/index.ts index 8fd468297..4dca904e1 100644 --- a/sdk/constructive-sdk/src/public/orm/index.ts +++ b/sdk/constructive-sdk/src/public/orm/index.ts @@ -8,9 +8,9 @@ import type { OrmClientConfig } from './client'; import { OrgGetManagersRecordModel } from './models/orgGetManagersRecord'; import { OrgGetSubordinatesRecordModel } from './models/orgGetSubordinatesRecord'; import { GetAllRecordModel } from './models/getAllRecord'; -import { ObjectModel } from './models/object'; import { AppPermissionModel } from './models/appPermission'; import { OrgPermissionModel } from './models/orgPermission'; +import { ObjectModel } from './models/object'; import { AppLevelRequirementModel } from './models/appLevelRequirement'; import { DatabaseModel } from './models/database'; import { SchemaModel } from './models/schema'; @@ -91,6 +91,7 @@ import { OrgChartEdgeGrantModel } from './models/orgChartEdgeGrant'; import { OrgPermissionDefaultModel } from './models/orgPermissionDefault'; import { AppLimitModel } from './models/appLimit'; import { OrgLimitModel } from './models/orgLimit'; +import { OrgLimitAggregateModel } from './models/orgLimitAggregate'; import { AppStepModel } from './models/appStep'; import { AppAchievementModel } from './models/appAchievement'; import { AppLevelModel } from './models/appLevel'; @@ -103,26 +104,34 @@ import { AppClaimedInviteModel } from './models/appClaimedInvite'; import { OrgInviteModel } from './models/orgInvite'; import { OrgClaimedInviteModel } from './models/orgClaimedInvite'; import { AuditLogModel } from './models/auditLog'; -import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { AgentThreadModel } from './models/agentThread'; +import { AgentMessageModel } from './models/agentMessage'; +import { AgentTaskModel } from './models/agentTask'; +import { RoleTypeModel } from './models/roleType'; import { IdentityProviderModel } from './models/identityProvider'; import { RefModel } from './models/ref'; import { StoreModel } from './models/store'; -import { RoleTypeModel } from './models/roleType'; +import { AppPermissionDefaultModel } from './models/appPermissionDefault'; +import { MembershipTypeModel } from './models/membershipType'; import { MigrateFileModel } from './models/migrateFile'; +import { DevicesModuleModel } from './models/devicesModule'; +import { NodeTypeRegistryModel } from './models/nodeTypeRegistry'; import { AppLimitDefaultModel } from './models/appLimitDefault'; import { OrgLimitDefaultModel } from './models/orgLimitDefault'; -import { DevicesModuleModel } from './models/devicesModule'; import { UserConnectedAccountModel } from './models/userConnectedAccount'; -import { AppMembershipDefaultModel } from './models/appMembershipDefault'; -import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; import { CommitModel } from './models/commit'; import { RateLimitsModuleModel } from './models/rateLimitsModule'; -import { MembershipTypeModel } from './models/membershipType'; +import { AppMembershipDefaultModel } from './models/appMembershipDefault'; +import { OrgMembershipDefaultModel } from './models/orgMembershipDefault'; +import { AppLimitEventModel } from './models/appLimitEvent'; +import { OrgLimitEventModel } from './models/orgLimitEvent'; +import { PlansModuleModel } from './models/plansModule'; import { RlsModuleModel } from './models/rlsModule'; import { SqlActionModel } from './models/sqlAction'; -import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; -import { UserModel } from './models/user'; +import { BillingModuleModel } from './models/billingModule'; import { AstMigrationModel } from './models/astMigration'; +import { UserModel } from './models/user'; +import { OrgMembershipSettingModel } from './models/orgMembershipSetting'; import { AppMembershipModel } from './models/appMembership'; import { HierarchyModuleModel } from './models/hierarchyModule'; import { createQueryOperations } from './query'; @@ -163,9 +172,9 @@ export function createClient(config: OrmClientConfig) { orgGetManagersRecord: new OrgGetManagersRecordModel(client), orgGetSubordinatesRecord: new OrgGetSubordinatesRecordModel(client), getAllRecord: new GetAllRecordModel(client), - object: new ObjectModel(client), appPermission: new AppPermissionModel(client), orgPermission: new OrgPermissionModel(client), + object: new ObjectModel(client), appLevelRequirement: new AppLevelRequirementModel(client), database: new DatabaseModel(client), schema: new SchemaModel(client), @@ -246,6 +255,7 @@ export function createClient(config: OrmClientConfig) { orgPermissionDefault: new OrgPermissionDefaultModel(client), appLimit: new AppLimitModel(client), orgLimit: new OrgLimitModel(client), + orgLimitAggregate: new OrgLimitAggregateModel(client), appStep: new AppStepModel(client), appAchievement: new AppAchievementModel(client), appLevel: new AppLevelModel(client), @@ -258,26 +268,34 @@ export function createClient(config: OrmClientConfig) { orgInvite: new OrgInviteModel(client), orgClaimedInvite: new OrgClaimedInviteModel(client), auditLog: new AuditLogModel(client), - appPermissionDefault: new AppPermissionDefaultModel(client), + agentThread: new AgentThreadModel(client), + agentMessage: new AgentMessageModel(client), + agentTask: new AgentTaskModel(client), + roleType: new RoleTypeModel(client), identityProvider: new IdentityProviderModel(client), ref: new RefModel(client), store: new StoreModel(client), - roleType: new RoleTypeModel(client), + appPermissionDefault: new AppPermissionDefaultModel(client), + membershipType: new MembershipTypeModel(client), migrateFile: new MigrateFileModel(client), + devicesModule: new DevicesModuleModel(client), + nodeTypeRegistry: new NodeTypeRegistryModel(client), appLimitDefault: new AppLimitDefaultModel(client), orgLimitDefault: new OrgLimitDefaultModel(client), - devicesModule: new DevicesModuleModel(client), userConnectedAccount: new UserConnectedAccountModel(client), - appMembershipDefault: new AppMembershipDefaultModel(client), - orgMembershipDefault: new OrgMembershipDefaultModel(client), commit: new CommitModel(client), rateLimitsModule: new RateLimitsModuleModel(client), - membershipType: new MembershipTypeModel(client), + appMembershipDefault: new AppMembershipDefaultModel(client), + orgMembershipDefault: new OrgMembershipDefaultModel(client), + appLimitEvent: new AppLimitEventModel(client), + orgLimitEvent: new OrgLimitEventModel(client), + plansModule: new PlansModuleModel(client), rlsModule: new RlsModuleModel(client), sqlAction: new SqlActionModel(client), - orgMembershipSetting: new OrgMembershipSettingModel(client), - user: new UserModel(client), + billingModule: new BillingModuleModel(client), astMigration: new AstMigrationModel(client), + user: new UserModel(client), + orgMembershipSetting: new OrgMembershipSettingModel(client), appMembership: new AppMembershipModel(client), hierarchyModule: new HierarchyModuleModel(client), query: createQueryOperations(client), diff --git a/sdk/constructive-sdk/src/public/orm/input-types.ts b/sdk/constructive-sdk/src/public/orm/input-types.ts index 6f3337645..923a0d41d 100644 --- a/sdk/constructive-sdk/src/public/orm/input-types.ts +++ b/sdk/constructive-sdk/src/public/orm/input-types.ts @@ -254,16 +254,6 @@ export interface GetAllRecord { path?: string[] | null; data?: Record | null; } -export interface Object { - hashUuid?: string | null; - id: string; - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; - createdAt?: string | null; -} /** Defines available permissions as named bits within a bitmask, used by the RBAC system for access control */ export interface AppPermission { id: string; @@ -288,6 +278,16 @@ export interface OrgPermission { /** Human-readable description of what this permission allows */ description?: string | null; } +export interface Object { + hashUuid?: string | null; + id: string; + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; + createdAt?: string | null; +} /** Defines the specific requirements that must be met to achieve a level */ export interface AppLevelRequirement { id: string; @@ -1101,6 +1101,7 @@ export interface LimitsModule { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -1190,6 +1191,8 @@ export interface ProfilesModule { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -1356,10 +1359,8 @@ export interface StorageModule { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -1368,6 +1369,7 @@ export interface StorageModule { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -1447,7 +1449,7 @@ export interface EntityTypeProvision { hasLevels?: boolean | null; /** * Whether to provision storage_module for this type. Defaults to false. - * When true, creates {prefix}_buckets, {prefix}_files, and {prefix}_upload_requests tables + * When true, creates {prefix}_buckets and {prefix}_files tables * with entity-scoped RLS (AuthzEntityMembership) using the entity's membership_type. * Storage tables get owner_id FK to the entity table, so files are owned by the entity. */ @@ -1480,7 +1482,7 @@ export interface EntityTypeProvision { * - allowed_origins (text[]) per-bucket CORS override * - provisions (jsonb object) optional: customize storage tables * with additional nodes, fields, grants, and policies. - * Keyed by table role: "files", "buckets", "upload_requests". + * Keyed by table role: "files", "buckets". * Each value uses the same shape as table_provision: * { nodes, fields, grants, use_rls, policies }. Fanned out * to secure_table_provision targeting the corresponding table. @@ -1838,9 +1840,15 @@ export interface AppLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Tracks per-actor usage counts against configurable maximum limits */ export interface OrgLimit { @@ -1850,10 +1858,34 @@ export interface OrgLimit { /** User whose usage is being tracked against this limit */ actorId?: string | null; /** Current usage count for this actor and limit */ - num?: number | null; - /** Maximum allowed usage; NULL means use the default limit value */ - max?: number | null; + num?: string | null; + /** Maximum allowed usage; negative means unlimited. Modified by plans, credits, and achievements. */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit. When num >= soft_max, consumers should warn but still allow until max is reached. */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; + entityId?: string | null; +} +/** Tracks aggregate entity-level usage counts (org-wide caps, no per-user breakdown) */ +export interface OrgLimitAggregate { + id: string; + /** Name identifier of the aggregate limit being tracked */ + name?: string | null; + /** Entity (org) whose aggregate usage is being tracked */ entityId?: string | null; + /** Current aggregate usage count for this entity and limit */ + num?: string | null; + /** Maximum allowed aggregate usage; negative means unlimited */ + max?: string | null; + /** Soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; + /** Start of the current metering window; NULL means no time window */ + windowStart?: string | null; + /** Duration of the metering window (e.g. 1 day, 1 month); NULL means no time window */ + windowDuration?: string | null; } /** Log of individual user actions toward level requirements; every single step ever taken is recorded here */ export interface AppStep { @@ -1984,6 +2016,8 @@ export interface AppInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2022,6 +2056,8 @@ export interface OrgInvite { multiple?: boolean | null; /** Optional JSON payload of additional invite metadata */ data?: Record | null; + /** Optional profile (role) to assign to the member when they claim this invite. Only allowed on email invites. */ + profileId?: string | null; /** Timestamp after which this invitation can no longer be redeemed */ expiresAt?: string | null; createdAt?: string | null; @@ -2059,11 +2095,71 @@ export interface AuditLog { /** Timestamp when the audit event was recorded */ createdAt?: string | null; } -/** Stores the default permission bitmask assigned to new members upon joining */ -export interface AppPermissionDefault { +/** Top-level AI/LLM conversation. Owns the chat-mode + model + system-prompt snapshot for the lifetime of the conversation, and is the entity-scoping anchor — descendants (agent_message, agent_task) inherit entity_id from this row via DataInheritFromParent. RLS is owner-only (AuthzDirectOwner); entity_id is a grouping dimension, not a security dimension. */ +export interface AgentThread { + /** Human-readable conversation title. Typically auto-generated from the first user message and editable by the user. NULL until a title has been computed. */ + title?: string | null; + /** Conversation mode: 'ask' for plain Q&A (no tool execution) or 'agent' for tool-enabled execution. Stored as free-text (no CHECK) so new modes can be added without migration. */ + mode?: string | null; + /** Snapshot of the LLM model id this thread is bound to (e.g. 'gpt-5', 'claude-sonnet-4'). Captured on creation so a resumed conversation stays on the same model even if app defaults change. NULL means use the app default at request time. */ + model?: string | null; + /** Snapshot of the system prompt active for this thread. Stored on the thread (rather than referenced from a registry) so the conversation remains reproducible even if a future system_prompt registry changes its canonical text. NULL means use the app default at request time. */ + systemPrompt?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record within the entity */ + ownerId?: string | null; + /** Entity this record belongs to */ + entityId?: string | null; + /** Current status of this record */ + status?: string | null; +} +/** 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. */ +export interface AgentMessage { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this message is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger, which copies it from agent_thread.entity_id via thread_id; the application never sets this column directly. Used for org-scoped grouping queries (e.g. 'all my messages in org X'), NOT for RLS — RLS is owner-only. */ + entityId?: string | null; + /** Who authored this message: 'user' or 'assistant'. Stored as free-text (no CHECK) so additional roles can be introduced without migration. Tool inputs/outputs do NOT get their own role — they appear as ToolPart entries inside the assistant message's `parts` array. */ + authorRole?: string | null; id: string; - /** Default permission bitmask applied to new members */ - permissions?: string | null; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** JSON metadata for extensible key-value storage */ + parts?: Record | null; +} +/** 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. */ +export interface AgentTask { + /** Foreign key to agent_thread. Required; the FK constraint and cascade-delete behaviour are declared in the blueprint's relations[]. Declared explicitly in fields[] (rather than left for RelationBelongsTo to create) so that the DataInheritFromParent generator can validate this field exists when it provisions the entity_id-inheritance trigger. */ + threadId?: string | null; + /** Entity (org/group/personal-org id) this task is filed under. Populated automatically by the DataInheritFromParent BEFORE INSERT trigger from agent_thread.entity_id via thread_id; the application never sets this column directly. */ + entityId?: string | null; + /** Natural-language description of the work to do. Required. */ + description?: string | null; + /** Who created the task: 'agent' (added by the LLM during planning) or 'user' (added manually by the human). Stored as free-text (no CHECK) so additional sources can be introduced later. */ + source?: string | null; + /** Error message captured when the task transitioned to 'failed'. NULL while the task is still pending/in-progress, or when it completed successfully. */ + error?: string | null; + id: string; + /** Timestamp when this record was created */ + createdAt?: string | null; + /** Timestamp when this record was last updated */ + updatedAt?: string | null; + /** User who owns this record */ + ownerId?: string | null; + /** Current status of this record */ + status?: string | null; +} +export interface RoleType { + id: number; + name?: string | null; } export interface IdentityProvider { slug?: string | null; @@ -2094,22 +2190,59 @@ export interface Store { hash?: string | null; createdAt?: string | null; } -export interface RoleType { +/** Stores the default permission bitmask assigned to new members upon joining */ +export interface AppPermissionDefault { + id: string; + /** Default permission bitmask applied to new members */ + permissions?: string | null; +} +/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ +export interface MembershipType { + /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ id: number; + /** Human-readable name of the membership type */ name?: string | null; + /** Description of what this membership type represents */ + description?: string | null; + /** Short prefix used to namespace tables and functions for this membership scope */ + prefix?: string | null; + /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ + parentMembershipType?: number | null; + /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ + hasUsersTableEntry?: boolean | null; } export interface MigrateFile { id: string; databaseId?: string | null; upload?: ConstructiveInternalTypeUpload | null; } +export interface DevicesModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface NodeTypeRegistry { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface AppLimitDefault { id: string; /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } /** Default maximum values for each named limit, applied when no per-actor override exists */ export interface OrgLimitDefault { @@ -2117,16 +2250,9 @@ export interface OrgLimitDefault { /** Name identifier of the limit this default applies to */ name?: string | null; /** Default maximum usage allowed for this limit */ - max?: number | null; -} -export interface DevicesModule { - id: string; - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; + max?: string | null; + /** Default soft limit threshold for warnings; NULL means no soft limit */ + softMax?: string | null; } export interface UserConnectedAccount { id: string; @@ -2138,30 +2264,6 @@ export interface UserConnectedAccount { createdAt?: string | null; updatedAt?: string | null; } -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface AppMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** Whether new members are automatically verified upon joining */ - isVerified?: boolean | null; -} -/** Default membership settings per entity, controlling initial approval and verification state for new members */ -export interface OrgMembershipDefault { - id: string; - createdAt?: string | null; - updatedAt?: string | null; - createdBy?: string | null; - updatedBy?: string | null; - /** Whether new members are automatically approved upon joining */ - isApproved?: boolean | null; - /** References the entity these membership defaults apply to */ - entityId?: string | null; -} /** A commit records changes to the repository. */ export interface Commit { /** The primary unique identifier for the commit. */ @@ -2192,20 +2294,84 @@ export interface RateLimitsModule { ipRateLimitsTable?: string | null; rateLimitsTable?: string | null; } -/** Defines the different scopes of membership (e.g. App Member, Organization Member, Group Member) */ -export interface MembershipType { - /** Integer identifier for the membership type (1=App, 2=Organization, 3=Group) */ - id: number; - /** Human-readable name of the membership type */ +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface AppMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** Whether new members are automatically verified upon joining */ + isVerified?: boolean | null; +} +/** Default membership settings per entity, controlling initial approval and verification state for new members */ +export interface OrgMembershipDefault { + id: string; + createdAt?: string | null; + updatedAt?: string | null; + createdBy?: string | null; + updatedBy?: string | null; + /** Whether new members are automatically approved upon joining */ + isApproved?: boolean | null; + /** References the entity these membership defaults apply to */ + entityId?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface AppLimitEvent { + /** Limit name this event applies to */ name?: string | null; - /** Description of what this membership type represents */ - description?: string | null; - /** Short prefix used to namespace tables and functions for this membership scope */ + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +/** Append-only log of limit events for historical reporting and audit */ +export interface OrgLimitEvent { + /** Limit name this event applies to */ + name?: string | null; + /** User who triggered this event; NULL for system/aggregate events */ + actorId?: string | null; + /** Entity this event applies to; NULL for app-level events */ + entityId?: string | null; + /** Event type: inc, dec, check, modify, transfer, apply_plan, reset */ + eventType?: string | null; + /** Change amount: positive for increment, negative for decrement */ + delta?: string | null; + /** Usage count before this event */ + numBefore?: string | null; + /** Usage count after this event */ + numAfter?: string | null; + /** Max limit ceiling at the time of this event */ + maxAtEvent?: string | null; + /** Optional reason or source: achievement, invite, plan_change, purchase, etc. */ + reason?: string | null; +} +export interface PlansModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - /** Parent membership type ID for SPRT cascade chain (e.g. type 2 parent=1, type 3 parent=2) */ - parentMembershipType?: number | null; - /** When true, entities of this membership type get a one-to-one ID in the users table and a corresponding role_type entry, enabling them to own resources via owner_id FKs */ - hasUsersTableEntry?: boolean | null; } export interface RlsModule { id: string; @@ -2235,6 +2401,53 @@ export interface SqlAction { actionId?: string | null; actorId?: string | null; } +export interface BillingModule { + id: string; + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; +} +export interface AstMigration { + id: number; + databaseId?: string | null; + name?: string | null; + requires?: string[] | null; + payload?: Record | null; + deploys?: string | null; + deploy?: Record | null; + revert?: Record | null; + verify?: Record | null; + createdAt?: string | null; + action?: string | null; + actionId?: string | null; + actorId?: string | null; +} +export interface User { + id: string; + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + searchTsv?: string | null; + type?: number | null; + createdAt?: string | null; + updatedAt?: string | null; + /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ + searchTsvRank?: number | null; + /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ + displayNameTrgmSimilarity?: number | null; + /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ + searchScore?: number | null; +} /** Per-entity settings for the memberships module */ export interface OrgMembershipSetting { id: string; @@ -2254,39 +2467,12 @@ export interface OrgMembershipSetting { createChildCascadeMembers?: boolean | null; /** Whether descendants of this org may admit members who are not already org members (outside-collaborators toggle) */ allowExternalMembers?: boolean | null; + /** Controls how profile assignment on invites is validated: strict (permission + subset check), permission_only (permission only), or subset_only (subset check only) */ + inviteProfileAssignmentMode?: string | null; /** Whether member_profiles.email is snapshot on join and kept synced with the user's primary email. When FALSE, the email field is left blank and never synced from the user's primary email. */ populateMemberEmail?: boolean | null; -} -export interface User { - id: string; - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - searchTsv?: string | null; - type?: number | null; - createdAt?: string | null; - updatedAt?: string | null; - /** TSV rank when searching `searchTsv`. Returns null when no tsv search filter is active. */ - searchTsvRank?: number | null; - /** TRGM similarity when searching `displayName`. Returns null when no trgm search filter is active. */ - displayNameTrgmSimilarity?: number | null; - /** Composite search relevance score (0..1, higher = more relevant). Computed by normalizing and averaging all active search signals. Supports per-table weight customization via @searchConfig smart tag. Returns null when no search filters are active. */ - searchScore?: number | null; -} -export interface AstMigration { - id: number; - databaseId?: string | null; - name?: string | null; - requires?: string[] | null; - payload?: Record | null; - deploys?: string | null; - deploy?: Record | null; - revert?: Record | null; - verify?: Record | null; - createdAt?: string | null; - action?: string | null; - actionId?: string | null; - actorId?: string | null; + /** Allocation mode for sub-entity limits: pooled (shared parent cap, no per-entity budgets) or budgeted (explicit per-entity allocations, transfer enabled) */ + limitAllocationMode?: string | null; } /** Tracks membership records linking actors to entities with permission bitmasks, ownership, and admin status */ export interface AppMembership { @@ -2305,8 +2491,6 @@ export interface AppMembership { isVerified?: boolean | null; /** Computed field indicating the membership is approved, verified, not banned, and not disabled */ isActive?: boolean | null; - /** Whether this member is external (not a member of the parent scope). External members may have restricted permissions. */ - isExternal?: boolean | null; /** Whether the actor is the owner of this entity */ isOwner?: boolean | null; /** Whether the actor has admin privileges on this entity */ @@ -2357,9 +2541,9 @@ export interface PageInfo { export interface OrgGetManagersRecordRelations {} export interface OrgGetSubordinatesRecordRelations {} export interface GetAllRecordRelations {} -export interface ObjectRelations {} export interface AppPermissionRelations {} export interface OrgPermissionRelations {} +export interface ObjectRelations {} export interface AppLevelRequirementRelations {} export interface DatabaseRelations { owner?: User | null; @@ -2367,6 +2551,8 @@ export interface DatabaseRelations { hierarchyModule?: HierarchyModule | null; rateLimitsModule?: RateLimitsModule | null; devicesModule?: DevicesModule | null; + plansModule?: PlansModule | null; + billingModule?: BillingModule | null; schemas?: ConnectionResult; tables?: ConnectionResult
; checkConstraints?: ConnectionResult; @@ -2697,6 +2883,7 @@ export interface LevelsModuleRelations { } export interface LimitsModuleRelations { actorTable?: Table | null; + aggregateTable?: Table | null; database?: Database | null; defaultTable?: Table | null; entityTable?: Table | null; @@ -2753,6 +2940,7 @@ export interface ProfilesModuleRelations { profileDefinitionGrantsTable?: Table | null; profileGrantsTable?: Table | null; profilePermissionsTable?: Table | null; + profileTemplatesTable?: Table | null; schema?: Schema | null; table?: Table | null; } @@ -2806,7 +2994,6 @@ export interface StorageModuleRelations { filesTable?: Table | null; privateSchema?: Schema | null; schema?: Schema | null; - uploadRequestsTable?: Table | null; } export interface EntityTypeProvisionRelations { database?: Database | null; @@ -2906,6 +3093,9 @@ export interface OrgLimitRelations { actor?: User | null; entity?: User | null; } +export interface OrgLimitAggregateRelations { + entity?: User | null; +} export interface AppStepRelations { actor?: User | null; } @@ -2947,25 +3137,37 @@ export interface OrgClaimedInviteRelations { export interface AuditLogRelations { actor?: User | null; } -export interface AppPermissionDefaultRelations {} +export interface AgentThreadRelations { + entity?: User | null; + owner?: User | null; + agentMessagesByThreadId?: ConnectionResult; + agentTasksByThreadId?: ConnectionResult; +} +export interface AgentMessageRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface AgentTaskRelations { + owner?: User | null; + thread?: AgentThread | null; +} +export interface RoleTypeRelations {} export interface IdentityProviderRelations {} export interface RefRelations {} export interface StoreRelations {} -export interface RoleTypeRelations {} +export interface AppPermissionDefaultRelations {} +export interface MembershipTypeRelations {} export interface MigrateFileRelations {} -export interface AppLimitDefaultRelations {} -export interface OrgLimitDefaultRelations {} export interface DevicesModuleRelations { database?: Database | null; deviceSettingsTableByDeviceSettingsTableId?: Table | null; schema?: Schema | null; userDevicesTableByUserDevicesTableId?: Table | null; } +export interface NodeTypeRegistryRelations {} +export interface AppLimitDefaultRelations {} +export interface OrgLimitDefaultRelations {} export interface UserConnectedAccountRelations {} -export interface AppMembershipDefaultRelations {} -export interface OrgMembershipDefaultRelations { - entity?: User | null; -} export interface CommitRelations {} export interface RateLimitsModuleRelations { database?: Database | null; @@ -2974,7 +3176,19 @@ export interface RateLimitsModuleRelations { rateLimitsTableByRateLimitsTableId?: Table | null; schema?: Schema | null; } -export interface MembershipTypeRelations {} +export interface AppMembershipDefaultRelations {} +export interface OrgMembershipDefaultRelations { + entity?: User | null; +} +export interface AppLimitEventRelations {} +export interface OrgLimitEventRelations {} +export interface PlansModuleRelations { + database?: Database | null; + planLimitsTable?: Table | null; + plansTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; +} export interface RlsModuleRelations { database?: Database | null; privateSchema?: Schema | null; @@ -2984,9 +3198,16 @@ export interface RlsModuleRelations { usersTable?: Table | null; } export interface SqlActionRelations {} -export interface OrgMembershipSettingRelations { - entity?: User | null; +export interface BillingModuleRelations { + balancesTable?: Table | null; + database?: Database | null; + ledgerTable?: Table | null; + metersTable?: Table | null; + planSubscriptionsTable?: Table | null; + privateSchema?: Schema | null; + schema?: Schema | null; } +export interface AstMigrationRelations {} export interface UserRelations { roleType?: RoleType | null; appMembershipByActorId?: AppMembership | null; @@ -3025,6 +3246,7 @@ export interface UserRelations { appLimitsByActorId?: ConnectionResult; orgLimitsByActorId?: ConnectionResult; orgLimitsByEntityId?: ConnectionResult; + orgLimitAggregatesByEntityId?: ConnectionResult; appStepsByActorId?: ConnectionResult; appAchievementsByActorId?: ConnectionResult; ownedAppLevels?: ConnectionResult; @@ -3042,8 +3264,14 @@ export interface UserRelations { orgClaimedInvitesByReceiverId?: ConnectionResult; orgClaimedInvitesBySenderId?: ConnectionResult; auditLogsByActorId?: ConnectionResult; + agentThreadsByEntityId?: ConnectionResult; + ownedAgentThreads?: ConnectionResult; + ownedAgentMessages?: ConnectionResult; + ownedAgentTasks?: ConnectionResult; +} +export interface OrgMembershipSettingRelations { + entity?: User | null; } -export interface AstMigrationRelations {} export interface AppMembershipRelations { actor?: User | null; } @@ -3063,9 +3291,9 @@ export type OrgGetManagersRecordWithRelations = OrgGetManagersRecord & export type OrgGetSubordinatesRecordWithRelations = OrgGetSubordinatesRecord & OrgGetSubordinatesRecordRelations; export type GetAllRecordWithRelations = GetAllRecord & GetAllRecordRelations; -export type ObjectWithRelations = Object & ObjectRelations; export type AppPermissionWithRelations = AppPermission & AppPermissionRelations; export type OrgPermissionWithRelations = OrgPermission & OrgPermissionRelations; +export type ObjectWithRelations = Object & ObjectRelations; export type AppLevelRequirementWithRelations = AppLevelRequirement & AppLevelRequirementRelations; export type DatabaseWithRelations = Database & DatabaseRelations; export type SchemaWithRelations = Schema & SchemaRelations; @@ -3160,6 +3388,7 @@ export type OrgPermissionDefaultWithRelations = OrgPermissionDefault & OrgPermissionDefaultRelations; export type AppLimitWithRelations = AppLimit & AppLimitRelations; export type OrgLimitWithRelations = OrgLimit & OrgLimitRelations; +export type OrgLimitAggregateWithRelations = OrgLimitAggregate & OrgLimitAggregateRelations; export type AppStepWithRelations = AppStep & AppStepRelations; export type AppAchievementWithRelations = AppAchievement & AppAchievementRelations; export type AppLevelWithRelations = AppLevel & AppLevelRelations; @@ -3172,31 +3401,39 @@ export type AppClaimedInviteWithRelations = AppClaimedInvite & AppClaimedInviteR export type OrgInviteWithRelations = OrgInvite & OrgInviteRelations; export type OrgClaimedInviteWithRelations = OrgClaimedInvite & OrgClaimedInviteRelations; export type AuditLogWithRelations = AuditLog & AuditLogRelations; -export type AppPermissionDefaultWithRelations = AppPermissionDefault & - AppPermissionDefaultRelations; +export type AgentThreadWithRelations = AgentThread & AgentThreadRelations; +export type AgentMessageWithRelations = AgentMessage & AgentMessageRelations; +export type AgentTaskWithRelations = AgentTask & AgentTaskRelations; +export type RoleTypeWithRelations = RoleType & RoleTypeRelations; export type IdentityProviderWithRelations = IdentityProvider & IdentityProviderRelations; export type RefWithRelations = Ref & RefRelations; export type StoreWithRelations = Store & StoreRelations; -export type RoleTypeWithRelations = RoleType & RoleTypeRelations; +export type AppPermissionDefaultWithRelations = AppPermissionDefault & + AppPermissionDefaultRelations; +export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; export type MigrateFileWithRelations = MigrateFile & MigrateFileRelations; +export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; +export type NodeTypeRegistryWithRelations = NodeTypeRegistry & NodeTypeRegistryRelations; export type AppLimitDefaultWithRelations = AppLimitDefault & AppLimitDefaultRelations; export type OrgLimitDefaultWithRelations = OrgLimitDefault & OrgLimitDefaultRelations; -export type DevicesModuleWithRelations = DevicesModule & DevicesModuleRelations; export type UserConnectedAccountWithRelations = UserConnectedAccount & UserConnectedAccountRelations; +export type CommitWithRelations = Commit & CommitRelations; +export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; export type AppMembershipDefaultWithRelations = AppMembershipDefault & AppMembershipDefaultRelations; export type OrgMembershipDefaultWithRelations = OrgMembershipDefault & OrgMembershipDefaultRelations; -export type CommitWithRelations = Commit & CommitRelations; -export type RateLimitsModuleWithRelations = RateLimitsModule & RateLimitsModuleRelations; -export type MembershipTypeWithRelations = MembershipType & MembershipTypeRelations; +export type AppLimitEventWithRelations = AppLimitEvent & AppLimitEventRelations; +export type OrgLimitEventWithRelations = OrgLimitEvent & OrgLimitEventRelations; +export type PlansModuleWithRelations = PlansModule & PlansModuleRelations; export type RlsModuleWithRelations = RlsModule & RlsModuleRelations; export type SqlActionWithRelations = SqlAction & SqlActionRelations; +export type BillingModuleWithRelations = BillingModule & BillingModuleRelations; +export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; +export type UserWithRelations = User & UserRelations; export type OrgMembershipSettingWithRelations = OrgMembershipSetting & OrgMembershipSettingRelations; -export type UserWithRelations = User & UserRelations; -export type AstMigrationWithRelations = AstMigration & AstMigrationRelations; export type AppMembershipWithRelations = AppMembership & AppMembershipRelations; export type HierarchyModuleWithRelations = HierarchyModule & HierarchyModuleRelations; // ============ Entity Select Types ============ @@ -3212,16 +3449,6 @@ export type GetAllRecordSelect = { path?: boolean; data?: boolean; }; -export type ObjectSelect = { - hashUuid?: boolean; - id?: boolean; - databaseId?: boolean; - kids?: boolean; - ktree?: boolean; - data?: boolean; - frzn?: boolean; - createdAt?: boolean; -}; export type AppPermissionSelect = { id?: boolean; name?: boolean; @@ -3236,6 +3463,16 @@ export type OrgPermissionSelect = { bitstr?: boolean; description?: boolean; }; +export type ObjectSelect = { + hashUuid?: boolean; + id?: boolean; + databaseId?: boolean; + kids?: boolean; + ktree?: boolean; + data?: boolean; + frzn?: boolean; + createdAt?: boolean; +}; export type AppLevelRequirementSelect = { id?: boolean; name?: boolean; @@ -3270,6 +3507,12 @@ export type DatabaseSelect = { devicesModule?: { select: DevicesModuleSelect; }; + plansModule?: { + select: PlansModuleSelect; + }; + billingModule?: { + select: BillingModuleSelect; + }; schemas?: { select: SchemaSelect; first?: number; @@ -4893,6 +5136,7 @@ export type LimitsModuleSelect = { limitDecrementTrigger?: boolean; limitUpdateTrigger?: boolean; limitCheckFunction?: boolean; + aggregateTableId?: boolean; prefix?: boolean; membershipType?: boolean; entityTableId?: boolean; @@ -4900,6 +5144,9 @@ export type LimitsModuleSelect = { actorTable?: { select: TableSelect; }; + aggregateTable?: { + select: TableSelect; + }; database?: { select: DatabaseSelect; }; @@ -5096,6 +5343,8 @@ export type ProfilesModuleSelect = { profileGrantsTableName?: boolean; profileDefinitionGrantsTableId?: boolean; profileDefinitionGrantsTableName?: boolean; + profileTemplatesTableId?: boolean; + profileTemplatesTableName?: boolean; membershipType?: boolean; entityTableId?: boolean; actorTableId?: boolean; @@ -5129,6 +5378,9 @@ export type ProfilesModuleSelect = { profilePermissionsTable?: { select: TableSelect; }; + profileTemplatesTable?: { + select: TableSelect; + }; schema?: { select: SchemaSelect; }; @@ -5345,10 +5597,8 @@ export type StorageModuleSelect = { privateSchemaId?: boolean; bucketsTableId?: boolean; filesTableId?: boolean; - uploadRequestsTableId?: boolean; bucketsTableName?: boolean; filesTableName?: boolean; - uploadRequestsTableName?: boolean; membershipType?: boolean; policies?: boolean; skipDefaultPolicyTables?: boolean; @@ -5357,6 +5607,7 @@ export type StorageModuleSelect = { publicUrlPrefix?: boolean; provider?: boolean; allowedOrigins?: boolean; + restrictReads?: boolean; uploadUrlExpirySeconds?: boolean; downloadUrlExpirySeconds?: boolean; defaultMaxFileSize?: boolean; @@ -5380,9 +5631,6 @@ export type StorageModuleSelect = { schema?: { select: SchemaSelect; }; - uploadRequestsTable?: { - select: TableSelect; - }; }; export type EntityTypeProvisionSelect = { id?: boolean; @@ -5767,6 +6015,9 @@ export type AppLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; actor?: { select: UserSelect; }; @@ -5777,6 +6028,9 @@ export type OrgLimitSelect = { actorId?: boolean; num?: boolean; max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; entityId?: boolean; actor?: { select: UserSelect; @@ -5785,6 +6039,19 @@ export type OrgLimitSelect = { select: UserSelect; }; }; +export type OrgLimitAggregateSelect = { + id?: boolean; + name?: boolean; + entityId?: boolean; + num?: boolean; + max?: boolean; + softMax?: boolean; + windowStart?: boolean; + windowDuration?: boolean; + entity?: { + select: UserSelect; + }; +}; export type AppStepSelect = { id?: boolean; actorId?: boolean; @@ -5888,6 +6155,7 @@ export type AppInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5920,6 +6188,7 @@ export type OrgInviteSelect = { inviteCount?: boolean; multiple?: boolean; data?: boolean; + profileId?: boolean; expiresAt?: boolean; createdAt?: boolean; updatedAt?: boolean; @@ -5965,9 +6234,73 @@ export type AuditLogSelect = { select: UserSelect; }; }; -export type AppPermissionDefaultSelect = { +export type AgentThreadSelect = { + title?: boolean; + mode?: boolean; + model?: boolean; + systemPrompt?: boolean; id?: boolean; - permissions?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + entityId?: boolean; + status?: boolean; + entity?: { + select: UserSelect; + }; + owner?: { + select: UserSelect; + }; + agentMessagesByThreadId?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + agentTasksByThreadId?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; +}; +export type AgentMessageSelect = { + threadId?: boolean; + entityId?: boolean; + authorRole?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + parts?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type AgentTaskSelect = { + threadId?: boolean; + entityId?: boolean; + description?: boolean; + source?: boolean; + error?: boolean; + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + ownerId?: boolean; + status?: boolean; + owner?: { + select: UserSelect; + }; + thread?: { + select: AgentThreadSelect; + }; +}; +export type RoleTypeSelect = { + id?: boolean; + name?: boolean; }; export type IdentityProviderSelect = { slug?: boolean; @@ -5990,25 +6323,23 @@ export type StoreSelect = { hash?: boolean; createdAt?: boolean; }; -export type RoleTypeSelect = { +export type AppPermissionDefaultSelect = { + id?: boolean; + permissions?: boolean; +}; +export type MembershipTypeSelect = { id?: boolean; name?: boolean; + description?: boolean; + prefix?: boolean; + parentMembershipType?: boolean; + hasUsersTableEntry?: boolean; }; export type MigrateFileSelect = { id?: boolean; databaseId?: boolean; upload?: boolean; }; -export type AppLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; -export type OrgLimitDefaultSelect = { - id?: boolean; - name?: boolean; - max?: boolean; -}; export type DevicesModuleSelect = { id?: boolean; databaseId?: boolean; @@ -6030,6 +6361,27 @@ export type DevicesModuleSelect = { select: TableSelect; }; }; +export type NodeTypeRegistrySelect = { + name?: boolean; + slug?: boolean; + category?: boolean; + displayName?: boolean; + description?: boolean; + parameterSchema?: boolean; + tags?: boolean; +}; +export type AppLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; +export type OrgLimitDefaultSelect = { + id?: boolean; + name?: boolean; + max?: boolean; + softMax?: boolean; +}; export type UserConnectedAccountSelect = { id?: boolean; ownerId?: boolean; @@ -6040,27 +6392,6 @@ export type UserConnectedAccountSelect = { createdAt?: boolean; updatedAt?: boolean; }; -export type AppMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - isVerified?: boolean; -}; -export type OrgMembershipDefaultSelect = { - id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - isApproved?: boolean; - entityId?: boolean; - entity?: { - select: UserSelect; - }; -}; export type CommitSelect = { id?: boolean; message?: boolean; @@ -6098,13 +6429,76 @@ export type RateLimitsModuleSelect = { select: SchemaSelect; }; }; -export type MembershipTypeSelect = { +export type AppMembershipDefaultSelect = { id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + isVerified?: boolean; +}; +export type OrgMembershipDefaultSelect = { + id?: boolean; + createdAt?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + isApproved?: boolean; + entityId?: boolean; + entity?: { + select: UserSelect; + }; +}; +export type AppLimitEventSelect = { name?: boolean; - description?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type OrgLimitEventSelect = { + name?: boolean; + actorId?: boolean; + entityId?: boolean; + eventType?: boolean; + delta?: boolean; + numBefore?: boolean; + numAfter?: boolean; + maxAtEvent?: boolean; + reason?: boolean; +}; +export type PlansModuleSelect = { + id?: boolean; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + plansTableId?: boolean; + plansTableName?: boolean; + planLimitsTableId?: boolean; + planLimitsTableName?: boolean; + applyPlanFunction?: boolean; + applyPlanAggregateFunction?: boolean; prefix?: boolean; - parentMembershipType?: boolean; - hasUsersTableEntry?: boolean; + database?: { + select: DatabaseSelect; + }; + planLimitsTable?: { + select: TableSelect; + }; + plansTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; }; export type RlsModuleSelect = { id?: boolean; @@ -6152,23 +6546,58 @@ export type SqlActionSelect = { actionId?: boolean; actorId?: boolean; }; -export type OrgMembershipSettingSelect = { +export type BillingModuleSelect = { id?: boolean; - createdAt?: boolean; - updatedAt?: boolean; - createdBy?: boolean; - updatedBy?: boolean; - entityId?: boolean; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - entity?: { - select: UserSelect; + databaseId?: boolean; + schemaId?: boolean; + privateSchemaId?: boolean; + metersTableId?: boolean; + metersTableName?: boolean; + planSubscriptionsTableId?: boolean; + planSubscriptionsTableName?: boolean; + ledgerTableId?: boolean; + ledgerTableName?: boolean; + balancesTableId?: boolean; + balancesTableName?: boolean; + recordUsageFunction?: boolean; + prefix?: boolean; + balancesTable?: { + select: TableSelect; }; -}; + database?: { + select: DatabaseSelect; + }; + ledgerTable?: { + select: TableSelect; + }; + metersTable?: { + select: TableSelect; + }; + planSubscriptionsTable?: { + select: TableSelect; + }; + privateSchema?: { + select: SchemaSelect; + }; + schema?: { + select: SchemaSelect; + }; +}; +export type AstMigrationSelect = { + id?: boolean; + databaseId?: boolean; + name?: boolean; + requires?: boolean; + payload?: boolean; + deploys?: boolean; + deploy?: boolean; + revert?: boolean; + verify?: boolean; + createdAt?: boolean; + action?: boolean; + actionId?: boolean; + actorId?: boolean; +}; export type UserSelect = { id?: boolean; username?: boolean; @@ -6391,6 +6820,12 @@ export type UserSelect = { filter?: OrgLimitFilter; orderBy?: OrgLimitOrderBy[]; }; + orgLimitAggregatesByEntityId?: { + select: OrgLimitAggregateSelect; + first?: number; + filter?: OrgLimitAggregateFilter; + orderBy?: OrgLimitAggregateOrderBy[]; + }; appStepsByActorId?: { select: AppStepSelect; first?: number; @@ -6493,21 +6928,49 @@ export type UserSelect = { filter?: AuditLogFilter; orderBy?: AuditLogOrderBy[]; }; + agentThreadsByEntityId?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentThreads?: { + select: AgentThreadSelect; + first?: number; + filter?: AgentThreadFilter; + orderBy?: AgentThreadOrderBy[]; + }; + ownedAgentMessages?: { + select: AgentMessageSelect; + first?: number; + filter?: AgentMessageFilter; + orderBy?: AgentMessageOrderBy[]; + }; + ownedAgentTasks?: { + select: AgentTaskSelect; + first?: number; + filter?: AgentTaskFilter; + orderBy?: AgentTaskOrderBy[]; + }; }; -export type AstMigrationSelect = { +export type OrgMembershipSettingSelect = { id?: boolean; - databaseId?: boolean; - name?: boolean; - requires?: boolean; - payload?: boolean; - deploys?: boolean; - deploy?: boolean; - revert?: boolean; - verify?: boolean; createdAt?: boolean; - action?: boolean; - actionId?: boolean; - actorId?: boolean; + updatedAt?: boolean; + createdBy?: boolean; + updatedBy?: boolean; + entityId?: boolean; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: boolean; + populateMemberEmail?: boolean; + limitAllocationMode?: boolean; + entity?: { + select: UserSelect; + }; }; export type AppMembershipSelect = { id?: boolean; @@ -6520,7 +6983,6 @@ export type AppMembershipSelect = { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: boolean; @@ -6599,28 +7061,6 @@ export interface GetAllRecordFilter { or?: GetAllRecordFilter[]; not?: GetAllRecordFilter; } -export interface ObjectFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `kids` field. */ - kids?: UUIDListFilter; - /** Filter by the object’s `ktree` field. */ - ktree?: StringListFilter; - /** Filter by the object’s `data` field. */ - data?: JSONFilter; - /** Filter by the object’s `frzn` field. */ - frzn?: BooleanFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Checks for all expressions in this list. */ - and?: ObjectFilter[]; - /** Checks for any expressions in this list. */ - or?: ObjectFilter[]; - /** Negates the expression. */ - not?: ObjectFilter; -} export interface AppPermissionFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6657,6 +7097,28 @@ export interface OrgPermissionFilter { /** Negates the expression. */ not?: OrgPermissionFilter; } +export interface ObjectFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `kids` field. */ + kids?: UUIDListFilter; + /** Filter by the object’s `ktree` field. */ + ktree?: StringListFilter; + /** Filter by the object’s `data` field. */ + data?: JSONFilter; + /** Filter by the object’s `frzn` field. */ + frzn?: BooleanFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Checks for all expressions in this list. */ + and?: ObjectFilter[]; + /** Checks for any expressions in this list. */ + or?: ObjectFilter[]; + /** Negates the expression. */ + not?: ObjectFilter; +} export interface AppLevelRequirementFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -6968,6 +7430,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -8796,6 +9266,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -8812,6 +9284,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -9080,6 +9556,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -9118,6 +9598,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -9444,14 +9926,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -9468,6 +9946,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -9498,8 +9978,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } export interface EntityTypeProvisionFilter { /** Filter by the object’s `id` field. */ @@ -10135,9 +10613,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -10155,9 +10639,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -10171,6 +10661,32 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} export interface AppStepFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10376,6 +10892,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10436,6 +10954,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -10517,17 +11037,117 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } -export interface AppPermissionDefaultFilter { +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; /** Filter by the object’s `id` field. */ id?: UUIDFilter; - /** Filter by the object’s `permissions` field. */ - permissions?: BitStringFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; /** Checks for all expressions in this list. */ - and?: AppPermissionDefaultFilter[]; + and?: AgentThreadFilter[]; /** Checks for any expressions in this list. */ - or?: AppPermissionDefaultFilter[]; + or?: AgentThreadFilter[]; /** Negates the expression. */ - not?: AppPermissionDefaultFilter; + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +export interface RoleTypeFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Checks for all expressions in this list. */ + and?: RoleTypeFilter[]; + /** Checks for any expressions in this list. */ + or?: RoleTypeFilter[]; + /** Negates the expression. */ + not?: RoleTypeFilter; } export interface IdentityProviderFilter { /** Filter by the object’s `slug` field. */ @@ -10583,17 +11203,37 @@ export interface StoreFilter { /** Negates the expression. */ not?: StoreFilter; } -export interface RoleTypeFilter { +export interface AppPermissionDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `permissions` field. */ + permissions?: BitStringFilter; + /** Checks for all expressions in this list. */ + and?: AppPermissionDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppPermissionDefaultFilter[]; + /** Negates the expression. */ + not?: AppPermissionDefaultFilter; +} +export interface MembershipTypeFilter { /** Filter by the object’s `id` field. */ id?: IntFilter; /** Filter by the object’s `name` field. */ name?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Filter by the object’s `parentMembershipType` field. */ + parentMembershipType?: IntFilter; + /** Filter by the object’s `hasUsersTableEntry` field. */ + hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: RoleTypeFilter[]; + and?: MembershipTypeFilter[]; /** Checks for any expressions in this list. */ - or?: RoleTypeFilter[]; + or?: MembershipTypeFilter[]; /** Negates the expression. */ - not?: RoleTypeFilter; + not?: MembershipTypeFilter; } export interface MigrateFileFilter { /** Filter by the object’s `id` field. */ @@ -10609,34 +11249,6 @@ export interface MigrateFileFilter { /** Negates the expression. */ not?: MigrateFileFilter; } -export interface AppLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: AppLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppLimitDefaultFilter[]; - /** Negates the expression. */ - not?: AppLimitDefaultFilter; -} -export interface OrgLimitDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `max` field. */ - max?: IntFilter; - /** Checks for all expressions in this list. */ - and?: OrgLimitDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgLimitDefaultFilter[]; - /** Negates the expression. */ - not?: OrgLimitDefaultFilter; -} export interface DevicesModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10667,7 +11279,61 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } -export interface UserConnectedAccountFilter { +export interface NodeTypeRegistryFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `slug` field. */ + slug?: StringFilter; + /** Filter by the object’s `category` field. */ + category?: StringFilter; + /** Filter by the object’s `displayName` field. */ + displayName?: StringFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `parameterSchema` field. */ + parameterSchema?: JSONFilter; + /** Filter by the object’s `tags` field. */ + tags?: StringListFilter; + /** Checks for all expressions in this list. */ + and?: NodeTypeRegistryFilter[]; + /** Checks for any expressions in this list. */ + or?: NodeTypeRegistryFilter[]; + /** Negates the expression. */ + not?: NodeTypeRegistryFilter; +} +export interface AppLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitDefaultFilter[]; + /** Negates the expression. */ + not?: AppLimitDefaultFilter; +} +export interface OrgLimitDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitDefaultFilter[]; + /** Negates the expression. */ + not?: OrgLimitDefaultFilter; +} +export interface UserConnectedAccountFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; /** Filter by the object’s `ownerId` field. */ @@ -10691,52 +11357,6 @@ export interface UserConnectedAccountFilter { /** Negates the expression. */ not?: UserConnectedAccountFilter; } -export interface AppMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `isVerified` field. */ - isVerified?: BooleanFilter; - /** Checks for all expressions in this list. */ - and?: AppMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: AppMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: AppMembershipDefaultFilter; -} -export interface OrgMembershipDefaultFilter { - /** Filter by the object’s `id` field. */ - id?: UUIDFilter; - /** Filter by the object’s `createdAt` field. */ - createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `isApproved` field. */ - isApproved?: BooleanFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Checks for all expressions in this list. */ - and?: OrgMembershipDefaultFilter[]; - /** Checks for any expressions in this list. */ - or?: OrgMembershipDefaultFilter[]; - /** Negates the expression. */ - not?: OrgMembershipDefaultFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; -} export interface CommitFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; @@ -10799,25 +11419,143 @@ export interface RateLimitsModuleFilter { /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; } -export interface MembershipTypeFilter { +export interface AppMembershipDefaultFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `isVerified` field. */ + isVerified?: BooleanFilter; + /** Checks for all expressions in this list. */ + and?: AppMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: AppMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: AppMembershipDefaultFilter; +} +export interface OrgMembershipDefaultFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `isApproved` field. */ + isApproved?: BooleanFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Checks for all expressions in this list. */ + and?: OrgMembershipDefaultFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgMembershipDefaultFilter[]; + /** Negates the expression. */ + not?: OrgMembershipDefaultFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} +export interface AppLimitEventFilter { /** Filter by the object’s `name` field. */ name?: StringFilter; - /** Filter by the object’s `description` field. */ - description?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AppLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: AppLimitEventFilter[]; + /** Negates the expression. */ + not?: AppLimitEventFilter; +} +export interface OrgLimitEventFilter { + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `eventType` field. */ + eventType?: StringFilter; + /** Filter by the object’s `delta` field. */ + delta?: BigIntFilter; + /** Filter by the object’s `numBefore` field. */ + numBefore?: BigIntFilter; + /** Filter by the object’s `numAfter` field. */ + numAfter?: BigIntFilter; + /** Filter by the object’s `maxAtEvent` field. */ + maxAtEvent?: BigIntFilter; + /** Filter by the object’s `reason` field. */ + reason?: StringFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitEventFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitEventFilter[]; + /** Negates the expression. */ + not?: OrgLimitEventFilter; +} +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; - /** Filter by the object’s `parentMembershipType` field. */ - parentMembershipType?: IntFilter; - /** Filter by the object’s `hasUsersTableEntry` field. */ - hasUsersTableEntry?: BooleanFilter; /** Checks for all expressions in this list. */ - and?: MembershipTypeFilter[]; + and?: PlansModuleFilter[]; /** Checks for any expressions in this list. */ - or?: MembershipTypeFilter[]; + or?: PlansModuleFilter[]; /** Negates the expression. */ - not?: MembershipTypeFilter; + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; } export interface RlsModuleFilter { /** Filter by the object’s `id` field. */ @@ -10893,39 +11631,89 @@ export interface SqlActionFilter { /** Negates the expression. */ not?: SqlActionFilter; } -export interface OrgMembershipSettingFilter { +export interface BillingModuleFilter { /** Filter by the object’s `id` field. */ id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +export interface AstMigrationFilter { + /** Filter by the object’s `id` field. */ + id?: IntFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `requires` field. */ + requires?: StringListFilter; + /** Filter by the object’s `payload` field. */ + payload?: JSONFilter; + /** Filter by the object’s `deploys` field. */ + deploys?: StringFilter; + /** Filter by the object’s `deploy` field. */ + deploy?: JSONFilter; + /** Filter by the object’s `revert` field. */ + revert?: JSONFilter; + /** Filter by the object’s `verify` field. */ + verify?: JSONFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `updatedAt` field. */ - updatedAt?: DatetimeFilter; - /** Filter by the object’s `createdBy` field. */ - createdBy?: UUIDFilter; - /** Filter by the object’s `updatedBy` field. */ - updatedBy?: UUIDFilter; - /** Filter by the object’s `entityId` field. */ - entityId?: UUIDFilter; - /** Filter by the object’s `deleteMemberCascadeChildren` field. */ - deleteMemberCascadeChildren?: BooleanFilter; - /** Filter by the object’s `createChildCascadeOwners` field. */ - createChildCascadeOwners?: BooleanFilter; - /** Filter by the object’s `createChildCascadeAdmins` field. */ - createChildCascadeAdmins?: BooleanFilter; - /** Filter by the object’s `createChildCascadeMembers` field. */ - createChildCascadeMembers?: BooleanFilter; - /** Filter by the object’s `allowExternalMembers` field. */ - allowExternalMembers?: BooleanFilter; - /** Filter by the object’s `populateMemberEmail` field. */ - populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `action` field. */ + action?: StringFilter; + /** Filter by the object’s `actionId` field. */ + actionId?: UUIDFilter; + /** Filter by the object’s `actorId` field. */ + actorId?: UUIDFilter; /** Checks for all expressions in this list. */ - and?: OrgMembershipSettingFilter[]; + and?: AstMigrationFilter[]; /** Checks for any expressions in this list. */ - or?: OrgMembershipSettingFilter[]; + or?: AstMigrationFilter[]; /** Negates the expression. */ - not?: OrgMembershipSettingFilter; - /** Filter by the object’s `entity` relation. */ - entity?: UserFilter; + not?: AstMigrationFilter; } export interface UserFilter { /** Filter by the object’s `id` field. */ @@ -11096,6 +11884,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -11164,6 +11956,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -11176,39 +11984,43 @@ export interface UserFilter { */ unifiedSearch?: string; } -export interface AstMigrationFilter { +export interface OrgMembershipSettingFilter { /** Filter by the object’s `id` field. */ - id?: IntFilter; - /** Filter by the object’s `databaseId` field. */ - databaseId?: UUIDFilter; - /** Filter by the object’s `name` field. */ - name?: StringFilter; - /** Filter by the object’s `requires` field. */ - requires?: StringListFilter; - /** Filter by the object’s `payload` field. */ - payload?: JSONFilter; - /** Filter by the object’s `deploys` field. */ - deploys?: StringFilter; - /** Filter by the object’s `deploy` field. */ - deploy?: JSONFilter; - /** Filter by the object’s `revert` field. */ - revert?: JSONFilter; - /** Filter by the object’s `verify` field. */ - verify?: JSONFilter; + id?: UUIDFilter; /** Filter by the object’s `createdAt` field. */ createdAt?: DatetimeFilter; - /** Filter by the object’s `action` field. */ - action?: StringFilter; - /** Filter by the object’s `actionId` field. */ - actionId?: UUIDFilter; - /** Filter by the object’s `actorId` field. */ - actorId?: UUIDFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `createdBy` field. */ + createdBy?: UUIDFilter; + /** Filter by the object’s `updatedBy` field. */ + updatedBy?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `deleteMemberCascadeChildren` field. */ + deleteMemberCascadeChildren?: BooleanFilter; + /** Filter by the object’s `createChildCascadeOwners` field. */ + createChildCascadeOwners?: BooleanFilter; + /** Filter by the object’s `createChildCascadeAdmins` field. */ + createChildCascadeAdmins?: BooleanFilter; + /** Filter by the object’s `createChildCascadeMembers` field. */ + createChildCascadeMembers?: BooleanFilter; + /** Filter by the object’s `allowExternalMembers` field. */ + allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; + /** Filter by the object’s `populateMemberEmail` field. */ + populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ - and?: AstMigrationFilter[]; + and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ - or?: AstMigrationFilter[]; + or?: OrgMembershipSettingFilter[]; /** Negates the expression. */ - not?: AstMigrationFilter; + not?: OrgMembershipSettingFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; } export interface AppMembershipFilter { /** Filter by the object’s `id` field. */ @@ -11231,8 +12043,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -11343,24 +12153,6 @@ export type GetAllRecordsOrderBy = | 'PATH_DESC' | 'DATA_ASC' | 'DATA_DESC'; -export type ObjectOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'KIDS_ASC' - | 'KIDS_DESC' - | 'KTREE_ASC' - | 'KTREE_DESC' - | 'DATA_ASC' - | 'DATA_DESC' - | 'FRZN_ASC' - | 'FRZN_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC'; export type AppPermissionOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -11389,6 +12181,24 @@ export type OrgPermissionOrderBy = | 'BITSTR_DESC' | 'DESCRIPTION_ASC' | 'DESCRIPTION_DESC'; +export type ObjectOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'KIDS_ASC' + | 'KIDS_DESC' + | 'KTREE_ASC' + | 'KTREE_DESC' + | 'DATA_ASC' + | 'DATA_DESC' + | 'FRZN_ASC' + | 'FRZN_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC'; export type AppLevelRequirementOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -12623,6 +13433,8 @@ export type LimitsModuleOrderBy = | 'LIMIT_UPDATE_TRIGGER_DESC' | 'LIMIT_CHECK_FUNCTION_ASC' | 'LIMIT_CHECK_FUNCTION_DESC' + | 'AGGREGATE_TABLE_ID_ASC' + | 'AGGREGATE_TABLE_ID_DESC' | 'PREFIX_ASC' | 'PREFIX_DESC' | 'MEMBERSHIP_TYPE_ASC' @@ -12801,6 +13613,10 @@ export type ProfilesModuleOrderBy = | 'PROFILE_DEFINITION_GRANTS_TABLE_ID_DESC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_ASC' | 'PROFILE_DEFINITION_GRANTS_TABLE_NAME_DESC' + | 'PROFILE_TEMPLATES_TABLE_ID_ASC' + | 'PROFILE_TEMPLATES_TABLE_ID_DESC' + | 'PROFILE_TEMPLATES_TABLE_NAME_ASC' + | 'PROFILE_TEMPLATES_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'ENTITY_TABLE_ID_ASC' @@ -13041,14 +13857,10 @@ export type StorageModuleOrderBy = | 'BUCKETS_TABLE_ID_DESC' | 'FILES_TABLE_ID_ASC' | 'FILES_TABLE_ID_DESC' - | 'UPLOAD_REQUESTS_TABLE_ID_ASC' - | 'UPLOAD_REQUESTS_TABLE_ID_DESC' | 'BUCKETS_TABLE_NAME_ASC' | 'BUCKETS_TABLE_NAME_DESC' | 'FILES_TABLE_NAME_ASC' | 'FILES_TABLE_NAME_DESC' - | 'UPLOAD_REQUESTS_TABLE_NAME_ASC' - | 'UPLOAD_REQUESTS_TABLE_NAME_DESC' | 'MEMBERSHIP_TYPE_ASC' | 'MEMBERSHIP_TYPE_DESC' | 'POLICIES_ASC' @@ -13065,6 +13877,8 @@ export type StorageModuleOrderBy = | 'PROVIDER_DESC' | 'ALLOWED_ORIGINS_ASC' | 'ALLOWED_ORIGINS_DESC' + | 'RESTRICT_READS_ASC' + | 'RESTRICT_READS_DESC' | 'UPLOAD_URL_EXPIRY_SECONDS_ASC' | 'UPLOAD_URL_EXPIRY_SECONDS_DESC' | 'DOWNLOAD_URL_EXPIRY_SECONDS_ASC' @@ -13500,7 +14314,13 @@ export type AppLimitOrderBy = | 'NUM_ASC' | 'NUM_DESC' | 'MAX_ASC' - | 'MAX_DESC'; + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type OrgLimitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13515,8 +14335,34 @@ export type OrgLimitOrderBy = | 'NUM_DESC' | 'MAX_ASC' | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC' | 'ENTITY_ID_ASC' | 'ENTITY_ID_DESC'; +export type OrgLimitAggregateOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'NUM_ASC' + | 'NUM_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC' + | 'WINDOW_START_ASC' + | 'WINDOW_START_DESC' + | 'WINDOW_DURATION_ASC' + | 'WINDOW_DURATION_DESC'; export type AppStepOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -13683,6 +14529,8 @@ export type AppInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13729,6 +14577,8 @@ export type OrgInviteOrderBy = | 'MULTIPLE_DESC' | 'DATA_ASC' | 'DATA_DESC' + | 'PROFILE_ID_ASC' + | 'PROFILE_ID_DESC' | 'EXPIRES_AT_ASC' | 'EXPIRES_AT_DESC' | 'CREATED_AT_ASC' @@ -13775,14 +14625,82 @@ export type AuditLogOrderBy = | 'SUCCESS_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type AppPermissionDefaultOrderBy = +export type AgentThreadOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' + | 'TITLE_ASC' + | 'TITLE_DESC' + | 'MODE_ASC' + | 'MODE_DESC' + | 'MODEL_ASC' + | 'MODEL_DESC' + | 'SYSTEM_PROMPT_ASC' + | 'SYSTEM_PROMPT_DESC' | 'ID_ASC' | 'ID_DESC' - | 'PERMISSIONS_ASC' - | 'PERMISSIONS_DESC'; + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type AgentMessageOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'AUTHOR_ROLE_ASC' + | 'AUTHOR_ROLE_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'PARTS_ASC' + | 'PARTS_DESC'; +export type AgentTaskOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'THREAD_ID_ASC' + | 'THREAD_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'SOURCE_ASC' + | 'SOURCE_DESC' + | 'ERROR_ASC' + | 'ERROR_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'OWNER_ID_ASC' + | 'OWNER_ID_DESC' + | 'STATUS_ASC' + | 'STATUS_DESC'; +export type RoleTypeOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC'; export type IdentityProviderOrderBy = | 'NATURAL' | 'SLUG_ASC' @@ -13823,14 +14741,30 @@ export type StoreOrderBy = | 'HASH_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC'; -export type RoleTypeOrderBy = +export type AppPermissionDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'PERMISSIONS_ASC' + | 'PERMISSIONS_DESC'; +export type MembershipTypeOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' | 'NAME_ASC' - | 'NAME_DESC'; + | 'NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC' + | 'PARENT_MEMBERSHIP_TYPE_ASC' + | 'PARENT_MEMBERSHIP_TYPE_DESC' + | 'HAS_USERS_TABLE_ENTRY_ASC' + | 'HAS_USERS_TABLE_ENTRY_DESC'; export type MigrateFileOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13839,17 +14773,43 @@ export type MigrateFileOrderBy = | 'DATABASE_ID_DESC' | 'UPLOAD_ASC' | 'UPLOAD_DESC'; -export type AppLimitDefaultOrderBy = +export type DevicesModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'USER_DEVICES_TABLE_ID_ASC' + | 'USER_DEVICES_TABLE_ID_DESC' + | 'DEVICE_SETTINGS_TABLE_ID_ASC' + | 'DEVICE_SETTINGS_TABLE_ID_DESC' + | 'USER_DEVICES_TABLE_ASC' + | 'USER_DEVICES_TABLE_DESC' + | 'DEVICE_SETTINGS_TABLE_ASC' + | 'DEVICE_SETTINGS_TABLE_DESC'; +export type NodeTypeRegistryOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'NAME_ASC' | 'NAME_DESC' - | 'MAX_ASC' - | 'MAX_DESC'; -export type OrgLimitDefaultOrderBy = + | 'SLUG_ASC' + | 'SLUG_DESC' + | 'CATEGORY_ASC' + | 'CATEGORY_DESC' + | 'DISPLAY_NAME_ASC' + | 'DISPLAY_NAME_DESC' + | 'DESCRIPTION_ASC' + | 'DESCRIPTION_DESC' + | 'PARAMETER_SCHEMA_ASC' + | 'PARAMETER_SCHEMA_DESC' + | 'TAGS_ASC' + | 'TAGS_DESC'; +export type AppLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13858,25 +14818,21 @@ export type OrgLimitDefaultOrderBy = | 'NAME_ASC' | 'NAME_DESC' | 'MAX_ASC' - | 'MAX_DESC'; -export type DevicesModuleOrderBy = + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; +export type OrgLimitDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'SCHEMA_ID_ASC' - | 'SCHEMA_ID_DESC' - | 'USER_DEVICES_TABLE_ID_ASC' - | 'USER_DEVICES_TABLE_ID_DESC' - | 'DEVICE_SETTINGS_TABLE_ID_ASC' - | 'DEVICE_SETTINGS_TABLE_ID_DESC' - | 'USER_DEVICES_TABLE_ASC' - | 'USER_DEVICES_TABLE_DESC' - | 'DEVICE_SETTINGS_TABLE_ASC' - | 'DEVICE_SETTINGS_TABLE_DESC'; + | 'NAME_ASC' + | 'NAME_DESC' + | 'MAX_ASC' + | 'MAX_DESC' + | 'SOFT_MAX_ASC' + | 'SOFT_MAX_DESC'; export type UserConnectedAccountOrderBy = | 'NATURAL' | 'ID_ASC' @@ -13895,65 +14851,29 @@ export type UserConnectedAccountOrderBy = | 'CREATED_AT_DESC' | 'UPDATED_AT_ASC' | 'UPDATED_AT_DESC'; -export type AppMembershipDefaultOrderBy = +export type CommitOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'IS_VERIFIED_ASC' - | 'IS_VERIFIED_DESC'; -export type OrgMembershipDefaultOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'CREATED_AT_ASC' - | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'IS_APPROVED_ASC' - | 'IS_APPROVED_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC'; -export type CommitOrderBy = - | 'NATURAL' - | 'PRIMARY_KEY_ASC' - | 'PRIMARY_KEY_DESC' - | 'ID_ASC' - | 'ID_DESC' - | 'MESSAGE_ASC' - | 'MESSAGE_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'STORE_ID_ASC' - | 'STORE_ID_DESC' - | 'PARENT_IDS_ASC' - | 'PARENT_IDS_DESC' - | 'AUTHOR_ID_ASC' - | 'AUTHOR_ID_DESC' - | 'COMMITTER_ID_ASC' - | 'COMMITTER_ID_DESC' - | 'TREE_ID_ASC' - | 'TREE_ID_DESC' - | 'DATE_ASC' - | 'DATE_DESC'; -export type RateLimitsModuleOrderBy = + | 'MESSAGE_ASC' + | 'MESSAGE_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'STORE_ID_ASC' + | 'STORE_ID_DESC' + | 'PARENT_IDS_ASC' + | 'PARENT_IDS_DESC' + | 'AUTHOR_ID_ASC' + | 'AUTHOR_ID_DESC' + | 'COMMITTER_ID_ASC' + | 'COMMITTER_ID_DESC' + | 'TREE_ID_ASC' + | 'TREE_ID_DESC' + | 'DATE_ASC' + | 'DATE_DESC'; +export type RateLimitsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' @@ -13975,22 +14895,108 @@ export type RateLimitsModuleOrderBy = | 'IP_RATE_LIMITS_TABLE_DESC' | 'RATE_LIMITS_TABLE_ASC' | 'RATE_LIMITS_TABLE_DESC'; -export type MembershipTypeOrderBy = +export type AppMembershipDefaultOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'IS_VERIFIED_ASC' + | 'IS_VERIFIED_DESC'; +export type OrgMembershipDefaultOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'CREATED_AT_ASC' + | 'CREATED_AT_DESC' + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'IS_APPROVED_ASC' + | 'IS_APPROVED_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC'; +export type AppLimitEventOrderBy = + | 'NATURAL' | 'NAME_ASC' | 'NAME_DESC' - | 'DESCRIPTION_ASC' - | 'DESCRIPTION_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type OrgLimitEventOrderBy = + | 'NATURAL' + | 'NAME_ASC' + | 'NAME_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'EVENT_TYPE_ASC' + | 'EVENT_TYPE_DESC' + | 'DELTA_ASC' + | 'DELTA_DESC' + | 'NUM_BEFORE_ASC' + | 'NUM_BEFORE_DESC' + | 'NUM_AFTER_ASC' + | 'NUM_AFTER_DESC' + | 'MAX_AT_EVENT_ASC' + | 'MAX_AT_EVENT_DESC' + | 'REASON_ASC' + | 'REASON_DESC'; +export type PlansModuleOrderBy = + | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'PLANS_TABLE_ID_ASC' + | 'PLANS_TABLE_ID_DESC' + | 'PLANS_TABLE_NAME_ASC' + | 'PLANS_TABLE_NAME_DESC' + | 'PLAN_LIMITS_TABLE_ID_ASC' + | 'PLAN_LIMITS_TABLE_ID_DESC' + | 'PLAN_LIMITS_TABLE_NAME_ASC' + | 'PLAN_LIMITS_TABLE_NAME_DESC' + | 'APPLY_PLAN_FUNCTION_ASC' + | 'APPLY_PLAN_FUNCTION_DESC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_ASC' + | 'APPLY_PLAN_AGGREGATE_FUNCTION_DESC' | 'PREFIX_ASC' - | 'PREFIX_DESC' - | 'PARENT_MEMBERSHIP_TYPE_ASC' - | 'PARENT_MEMBERSHIP_TYPE_DESC' - | 'HAS_USERS_TABLE_ENTRY_ASC' - | 'HAS_USERS_TABLE_ENTRY_DESC'; + | 'PREFIX_DESC'; export type RlsModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14045,34 +15051,66 @@ export type SqlActionOrderBy = | 'ACTION_ID_DESC' | 'ACTOR_ID_ASC' | 'ACTOR_ID_DESC'; -export type OrgMembershipSettingOrderBy = +export type BillingModuleOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'SCHEMA_ID_ASC' + | 'SCHEMA_ID_DESC' + | 'PRIVATE_SCHEMA_ID_ASC' + | 'PRIVATE_SCHEMA_ID_DESC' + | 'METERS_TABLE_ID_ASC' + | 'METERS_TABLE_ID_DESC' + | 'METERS_TABLE_NAME_ASC' + | 'METERS_TABLE_NAME_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_ID_DESC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_ASC' + | 'PLAN_SUBSCRIPTIONS_TABLE_NAME_DESC' + | 'LEDGER_TABLE_ID_ASC' + | 'LEDGER_TABLE_ID_DESC' + | 'LEDGER_TABLE_NAME_ASC' + | 'LEDGER_TABLE_NAME_DESC' + | 'BALANCES_TABLE_ID_ASC' + | 'BALANCES_TABLE_ID_DESC' + | 'BALANCES_TABLE_NAME_ASC' + | 'BALANCES_TABLE_NAME_DESC' + | 'RECORD_USAGE_FUNCTION_ASC' + | 'RECORD_USAGE_FUNCTION_DESC' + | 'PREFIX_ASC' + | 'PREFIX_DESC'; +export type AstMigrationOrderBy = + | 'NATURAL' + | 'ID_ASC' + | 'ID_DESC' + | 'DATABASE_ID_ASC' + | 'DATABASE_ID_DESC' + | 'NAME_ASC' + | 'NAME_DESC' + | 'REQUIRES_ASC' + | 'REQUIRES_DESC' + | 'PAYLOAD_ASC' + | 'PAYLOAD_DESC' + | 'DEPLOYS_ASC' + | 'DEPLOYS_DESC' + | 'DEPLOY_ASC' + | 'DEPLOY_DESC' + | 'REVERT_ASC' + | 'REVERT_DESC' + | 'VERIFY_ASC' + | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'UPDATED_AT_ASC' - | 'UPDATED_AT_DESC' - | 'CREATED_BY_ASC' - | 'CREATED_BY_DESC' - | 'UPDATED_BY_ASC' - | 'UPDATED_BY_DESC' - | 'ENTITY_ID_ASC' - | 'ENTITY_ID_DESC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' - | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' - | 'CREATE_CHILD_CASCADE_OWNERS_ASC' - | 'CREATE_CHILD_CASCADE_OWNERS_DESC' - | 'CREATE_CHILD_CASCADE_ADMINS_ASC' - | 'CREATE_CHILD_CASCADE_ADMINS_DESC' - | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' - | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' - | 'ALLOW_EXTERNAL_MEMBERS_ASC' - | 'ALLOW_EXTERNAL_MEMBERS_DESC' - | 'POPULATE_MEMBER_EMAIL_ASC' - | 'POPULATE_MEMBER_EMAIL_DESC'; + | 'ACTION_ASC' + | 'ACTION_DESC' + | 'ACTION_ID_ASC' + | 'ACTION_ID_DESC' + | 'ACTOR_ID_ASC' + | 'ACTOR_ID_DESC'; export type UserOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14099,34 +15137,38 @@ export type UserOrderBy = | 'DISPLAY_NAME_TRGM_SIMILARITY_DESC' | 'SEARCH_SCORE_ASC' | 'SEARCH_SCORE_DESC'; -export type AstMigrationOrderBy = +export type OrgMembershipSettingOrderBy = | 'NATURAL' + | 'PRIMARY_KEY_ASC' + | 'PRIMARY_KEY_DESC' | 'ID_ASC' | 'ID_DESC' - | 'DATABASE_ID_ASC' - | 'DATABASE_ID_DESC' - | 'NAME_ASC' - | 'NAME_DESC' - | 'REQUIRES_ASC' - | 'REQUIRES_DESC' - | 'PAYLOAD_ASC' - | 'PAYLOAD_DESC' - | 'DEPLOYS_ASC' - | 'DEPLOYS_DESC' - | 'DEPLOY_ASC' - | 'DEPLOY_DESC' - | 'REVERT_ASC' - | 'REVERT_DESC' - | 'VERIFY_ASC' - | 'VERIFY_DESC' | 'CREATED_AT_ASC' | 'CREATED_AT_DESC' - | 'ACTION_ASC' - | 'ACTION_DESC' - | 'ACTION_ID_ASC' - | 'ACTION_ID_DESC' - | 'ACTOR_ID_ASC' - | 'ACTOR_ID_DESC'; + | 'UPDATED_AT_ASC' + | 'UPDATED_AT_DESC' + | 'CREATED_BY_ASC' + | 'CREATED_BY_DESC' + | 'UPDATED_BY_ASC' + | 'UPDATED_BY_DESC' + | 'ENTITY_ID_ASC' + | 'ENTITY_ID_DESC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_ASC' + | 'DELETE_MEMBER_CASCADE_CHILDREN_DESC' + | 'CREATE_CHILD_CASCADE_OWNERS_ASC' + | 'CREATE_CHILD_CASCADE_OWNERS_DESC' + | 'CREATE_CHILD_CASCADE_ADMINS_ASC' + | 'CREATE_CHILD_CASCADE_ADMINS_DESC' + | 'CREATE_CHILD_CASCADE_MEMBERS_ASC' + | 'CREATE_CHILD_CASCADE_MEMBERS_DESC' + | 'ALLOW_EXTERNAL_MEMBERS_ASC' + | 'ALLOW_EXTERNAL_MEMBERS_DESC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_ASC' + | 'INVITE_PROFILE_ASSIGNMENT_MODE_DESC' + | 'POPULATE_MEMBER_EMAIL_ASC' + | 'POPULATE_MEMBER_EMAIL_DESC' + | 'LIMIT_ALLOCATION_MODE_ASC' + | 'LIMIT_ALLOCATION_MODE_DESC'; export type AppMembershipOrderBy = | 'NATURAL' | 'PRIMARY_KEY_ASC' @@ -14151,8 +15193,6 @@ export type AppMembershipOrderBy = | 'IS_VERIFIED_DESC' | 'IS_ACTIVE_ASC' | 'IS_ACTIVE_DESC' - | 'IS_EXTERNAL_ASC' - | 'IS_EXTERNAL_DESC' | 'IS_OWNER_ASC' | 'IS_OWNER_DESC' | 'IS_ADMIN_ASC' @@ -14270,32 +15310,6 @@ export interface DeleteGetAllRecordInput { clientMutationId?: string; id: string; } -export interface CreateObjectInput { - clientMutationId?: string; - object: { - databaseId: string; - kids?: string[]; - ktree?: string[]; - data?: Record; - frzn?: boolean; - }; -} -export interface ObjectPatch { - databaseId?: string | null; - kids?: string[] | null; - ktree?: string[] | null; - data?: Record | null; - frzn?: boolean | null; -} -export interface UpdateObjectInput { - clientMutationId?: string; - id: string; - objectPatch: ObjectPatch; -} -export interface DeleteObjectInput { - clientMutationId?: string; - id: string; -} export interface CreateAppPermissionInput { clientMutationId?: string; appPermission: { @@ -14344,6 +15358,32 @@ export interface DeleteOrgPermissionInput { clientMutationId?: string; id: string; } +export interface CreateObjectInput { + clientMutationId?: string; + object: { + databaseId: string; + kids?: string[]; + ktree?: string[]; + data?: Record; + frzn?: boolean; + }; +} +export interface ObjectPatch { + databaseId?: string | null; + kids?: string[] | null; + ktree?: string[] | null; + data?: Record | null; + frzn?: boolean | null; +} +export interface UpdateObjectInput { + clientMutationId?: string; + id: string; + objectPatch: ObjectPatch; +} +export interface DeleteObjectInput { + clientMutationId?: string; + id: string; +} export interface CreateAppLevelRequirementInput { clientMutationId?: string; appLevelRequirement: { @@ -15962,6 +17002,7 @@ export interface CreateLimitsModuleInput { limitDecrementTrigger?: string; limitUpdateTrigger?: string; limitCheckFunction?: string; + aggregateTableId?: string; prefix?: string; membershipType: number; entityTableId?: string; @@ -15982,6 +17023,7 @@ export interface LimitsModulePatch { limitDecrementTrigger?: string | null; limitUpdateTrigger?: string | null; limitCheckFunction?: string | null; + aggregateTableId?: string | null; prefix?: string | null; membershipType?: number | null; entityTableId?: string | null; @@ -16192,6 +17234,8 @@ export interface CreateProfilesModuleInput { profileGrantsTableName?: string; profileDefinitionGrantsTableId?: string; profileDefinitionGrantsTableName?: string; + profileTemplatesTableId?: string; + profileTemplatesTableName?: string; membershipType: number; entityTableId?: string; actorTableId?: string; @@ -16212,6 +17256,8 @@ export interface ProfilesModulePatch { profileGrantsTableName?: string | null; profileDefinitionGrantsTableId?: string | null; profileDefinitionGrantsTableName?: string | null; + profileTemplatesTableId?: string | null; + profileTemplatesTableName?: string | null; membershipType?: number | null; entityTableId?: string | null; actorTableId?: string | null; @@ -16506,10 +17552,8 @@ export interface CreateStorageModuleInput { privateSchemaId?: string; bucketsTableId?: string; filesTableId?: string; - uploadRequestsTableId?: string; bucketsTableName?: string; filesTableName?: string; - uploadRequestsTableName?: string; membershipType?: number; policies?: Record; skipDefaultPolicyTables?: string[]; @@ -16518,6 +17562,7 @@ export interface CreateStorageModuleInput { publicUrlPrefix?: string; provider?: string; allowedOrigins?: string[]; + restrictReads?: boolean; uploadUrlExpirySeconds?: number; downloadUrlExpirySeconds?: number; defaultMaxFileSize?: string; @@ -16531,10 +17576,8 @@ export interface StorageModulePatch { privateSchemaId?: string | null; bucketsTableId?: string | null; filesTableId?: string | null; - uploadRequestsTableId?: string | null; bucketsTableName?: string | null; filesTableName?: string | null; - uploadRequestsTableName?: string | null; membershipType?: number | null; policies?: Record | null; skipDefaultPolicyTables?: string[] | null; @@ -16543,6 +17586,7 @@ export interface StorageModulePatch { publicUrlPrefix?: string | null; provider?: string | null; allowedOrigins?: string[] | null; + restrictReads?: boolean | null; uploadUrlExpirySeconds?: number | null; downloadUrlExpirySeconds?: number | null; defaultMaxFileSize?: string | null; @@ -17104,15 +18148,21 @@ export interface CreateAppLimitInput { appLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; }; } export interface AppLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; } export interface UpdateAppLimitInput { clientMutationId?: string; @@ -17128,16 +18178,22 @@ export interface CreateOrgLimitInput { orgLimit: { name?: string; actorId: string; - num?: number; - max?: number; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; entityId: string; }; } export interface OrgLimitPatch { name?: string | null; actorId?: string | null; - num?: number | null; - max?: number | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; entityId?: string | null; } export interface UpdateOrgLimitInput { @@ -17149,6 +18205,36 @@ export interface DeleteOrgLimitInput { clientMutationId?: string; id: string; } +export interface CreateOrgLimitAggregateInput { + clientMutationId?: string; + orgLimitAggregate: { + name?: string; + entityId: string; + num?: string; + max?: string; + softMax?: string; + windowStart?: string; + windowDuration?: IntervalInput; + }; +} +export interface OrgLimitAggregatePatch { + name?: string | null; + entityId?: string | null; + num?: string | null; + max?: string | null; + softMax?: string | null; + windowStart?: string | null; + windowDuration?: IntervalInput | null; +} +export interface UpdateOrgLimitAggregateInput { + clientMutationId?: string; + id: string; + orgLimitAggregatePatch: OrgLimitAggregatePatch; +} +export interface DeleteOrgLimitAggregateInput { + clientMutationId?: string; + id: string; +} export interface CreateAppStepInput { clientMutationId?: string; appStep: { @@ -17347,6 +18433,7 @@ export interface CreateAppInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; }; } @@ -17359,6 +18446,7 @@ export interface AppInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; } export interface UpdateAppInviteInput { @@ -17404,6 +18492,7 @@ export interface CreateOrgInviteInput { inviteCount?: number; multiple?: boolean; data?: Record; + profileId?: string; expiresAt?: string; entityId: string; }; @@ -17418,6 +18507,7 @@ export interface OrgInvitePatch { inviteCount?: number | null; multiple?: boolean | null; data?: Record | null; + profileId?: string | null; expiresAt?: string | null; entityId?: string | null; } @@ -17482,23 +18572,109 @@ export interface DeleteAuditLogInput { clientMutationId?: string; id: string; } -export interface CreateAppPermissionDefaultInput { +export interface CreateAgentThreadInput { clientMutationId?: string; - appPermissionDefault: { - permissions?: string; + agentThread: { + title?: string; + mode?: string; + model?: string; + systemPrompt?: string; + ownerId?: string; + entityId: string; + status?: string; }; } -export interface AppPermissionDefaultPatch { - permissions?: string | null; +export interface AgentThreadPatch { + title?: string | null; + mode?: string | null; + model?: string | null; + systemPrompt?: string | null; + ownerId?: string | null; + entityId?: string | null; + status?: string | null; } -export interface UpdateAppPermissionDefaultInput { +export interface UpdateAgentThreadInput { clientMutationId?: string; id: string; - appPermissionDefaultPatch: AppPermissionDefaultPatch; + agentThreadPatch: AgentThreadPatch; } -export interface DeleteAppPermissionDefaultInput { +export interface DeleteAgentThreadInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentMessageInput { + clientMutationId?: string; + agentMessage: { + threadId: string; + entityId: string; + authorRole: string; + ownerId?: string; + parts?: Record; + }; +} +export interface AgentMessagePatch { + threadId?: string | null; + entityId?: string | null; + authorRole?: string | null; + ownerId?: string | null; + parts?: Record | null; +} +export interface UpdateAgentMessageInput { + clientMutationId?: string; + id: string; + agentMessagePatch: AgentMessagePatch; +} +export interface DeleteAgentMessageInput { + clientMutationId?: string; + id: string; +} +export interface CreateAgentTaskInput { + clientMutationId?: string; + agentTask: { + threadId: string; + entityId: string; + description: string; + source?: string; + error?: string; + ownerId?: string; + status?: string; + }; +} +export interface AgentTaskPatch { + threadId?: string | null; + entityId?: string | null; + description?: string | null; + source?: string | null; + error?: string | null; + ownerId?: string | null; + status?: string | null; +} +export interface UpdateAgentTaskInput { clientMutationId?: string; id: string; + agentTaskPatch: AgentTaskPatch; +} +export interface DeleteAgentTaskInput { + clientMutationId?: string; + id: string; +} +export interface CreateRoleTypeInput { + clientMutationId?: string; + roleType: { + name: string; + }; +} +export interface RoleTypePatch { + name?: string | null; +} +export interface UpdateRoleTypeInput { + clientMutationId?: string; + id: number; + roleTypePatch: RoleTypePatch; +} +export interface DeleteRoleTypeInput { + clientMutationId?: string; + id: number; } export interface CreateIdentityProviderInput { clientMutationId?: string; @@ -17572,21 +18748,47 @@ export interface DeleteStoreInput { clientMutationId?: string; id: string; } -export interface CreateRoleTypeInput { +export interface CreateAppPermissionDefaultInput { clientMutationId?: string; - roleType: { + appPermissionDefault: { + permissions?: string; + }; +} +export interface AppPermissionDefaultPatch { + permissions?: string | null; +} +export interface UpdateAppPermissionDefaultInput { + clientMutationId?: string; + id: string; + appPermissionDefaultPatch: AppPermissionDefaultPatch; +} +export interface DeleteAppPermissionDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateMembershipTypeInput { + clientMutationId?: string; + membershipType: { name: string; + description: string; + prefix: string; + parentMembershipType?: number; + hasUsersTableEntry?: boolean; }; } -export interface RoleTypePatch { +export interface MembershipTypePatch { name?: string | null; + description?: string | null; + prefix?: string | null; + parentMembershipType?: number | null; + hasUsersTableEntry?: boolean | null; } -export interface UpdateRoleTypeInput { +export interface UpdateMembershipTypeInput { clientMutationId?: string; id: number; - roleTypePatch: RoleTypePatch; + membershipTypePatch: MembershipTypePatch; } -export interface DeleteRoleTypeInput { +export interface DeleteMembershipTypeInput { clientMutationId?: string; id: number; } @@ -17610,16 +18812,76 @@ export interface DeleteMigrateFileInput { clientMutationId?: string; id: string; } +export interface CreateDevicesModuleInput { + clientMutationId?: string; + devicesModule: { + databaseId: string; + schemaId?: string; + userDevicesTableId?: string; + deviceSettingsTableId?: string; + userDevicesTable?: string; + deviceSettingsTable?: string; + }; +} +export interface DevicesModulePatch { + databaseId?: string | null; + schemaId?: string | null; + userDevicesTableId?: string | null; + deviceSettingsTableId?: string | null; + userDevicesTable?: string | null; + deviceSettingsTable?: string | null; +} +export interface UpdateDevicesModuleInput { + clientMutationId?: string; + id: string; + devicesModulePatch: DevicesModulePatch; +} +export interface DeleteDevicesModuleInput { + clientMutationId?: string; + id: string; +} +export interface CreateNodeTypeRegistryInput { + clientMutationId?: string; + nodeTypeRegistry: { + name: string; + slug: string; + category: string; + displayName?: string; + description?: string; + parameterSchema?: Record; + tags?: string[]; + }; +} +export interface NodeTypeRegistryPatch { + name?: string | null; + slug?: string | null; + category?: string | null; + displayName?: string | null; + description?: string | null; + parameterSchema?: Record | null; + tags?: string[] | null; +} +export interface UpdateNodeTypeRegistryInput { + clientMutationId?: string; + name: string; + nodeTypeRegistryPatch: NodeTypeRegistryPatch; +} +export interface DeleteNodeTypeRegistryInput { + clientMutationId?: string; + name: string; +} export interface CreateAppLimitDefaultInput { clientMutationId?: string; appLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface AppLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateAppLimitDefaultInput { clientMutationId?: string; @@ -17634,12 +18896,14 @@ export interface CreateOrgLimitDefaultInput { clientMutationId?: string; orgLimitDefault: { name: string; - max?: number; + max?: string; + softMax?: string; }; } export interface OrgLimitDefaultPatch { name?: string | null; - max?: number | null; + max?: string | null; + softMax?: string | null; } export interface UpdateOrgLimitDefaultInput { clientMutationId?: string; @@ -17650,34 +18914,6 @@ export interface DeleteOrgLimitDefaultInput { clientMutationId?: string; id: string; } -export interface CreateDevicesModuleInput { - clientMutationId?: string; - devicesModule: { - databaseId: string; - schemaId?: string; - userDevicesTableId?: string; - deviceSettingsTableId?: string; - userDevicesTable?: string; - deviceSettingsTable?: string; - }; -} -export interface DevicesModulePatch { - databaseId?: string | null; - schemaId?: string | null; - userDevicesTableId?: string | null; - deviceSettingsTableId?: string | null; - userDevicesTable?: string | null; - deviceSettingsTable?: string | null; -} -export interface UpdateDevicesModuleInput { - clientMutationId?: string; - id: string; - devicesModulePatch: DevicesModulePatch; -} -export interface DeleteDevicesModuleInput { - clientMutationId?: string; - id: string; -} export interface CreateUserConnectedAccountInput { clientMutationId?: string; userConnectedAccount: { @@ -17704,54 +18940,6 @@ export interface DeleteUserConnectedAccountInput { clientMutationId?: string; id: string; } -export interface CreateAppMembershipDefaultInput { - clientMutationId?: string; - appMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - isVerified?: boolean; - }; -} -export interface AppMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - isVerified?: boolean | null; -} -export interface UpdateAppMembershipDefaultInput { - clientMutationId?: string; - id: string; - appMembershipDefaultPatch: AppMembershipDefaultPatch; -} -export interface DeleteAppMembershipDefaultInput { - clientMutationId?: string; - id: string; -} -export interface CreateOrgMembershipDefaultInput { - clientMutationId?: string; - orgMembershipDefault: { - createdBy?: string; - updatedBy?: string; - isApproved?: boolean; - entityId: string; - }; -} -export interface OrgMembershipDefaultPatch { - createdBy?: string | null; - updatedBy?: string | null; - isApproved?: boolean | null; - entityId?: string | null; -} -export interface UpdateOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; - orgMembershipDefaultPatch: OrgMembershipDefaultPatch; -} -export interface DeleteOrgMembershipDefaultInput { - clientMutationId?: string; - id: string; -} export interface CreateCommitInput { clientMutationId?: string; commit: { @@ -17816,31 +19004,157 @@ export interface DeleteRateLimitsModuleInput { clientMutationId?: string; id: string; } -export interface CreateMembershipTypeInput { +export interface CreateAppMembershipDefaultInput { clientMutationId?: string; - membershipType: { - name: string; - description: string; - prefix: string; - parentMembershipType?: number; - hasUsersTableEntry?: boolean; + appMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + isVerified?: boolean; }; } -export interface MembershipTypePatch { +export interface AppMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + isVerified?: boolean | null; +} +export interface UpdateAppMembershipDefaultInput { + clientMutationId?: string; + id: string; + appMembershipDefaultPatch: AppMembershipDefaultPatch; +} +export interface DeleteAppMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipDefaultInput { + clientMutationId?: string; + orgMembershipDefault: { + createdBy?: string; + updatedBy?: string; + isApproved?: boolean; + entityId: string; + }; +} +export interface OrgMembershipDefaultPatch { + createdBy?: string | null; + updatedBy?: string | null; + isApproved?: boolean | null; + entityId?: string | null; +} +export interface UpdateOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; + orgMembershipDefaultPatch: OrgMembershipDefaultPatch; +} +export interface DeleteOrgMembershipDefaultInput { + clientMutationId?: string; + id: string; +} +export interface CreateAppLimitEventInput { + clientMutationId?: string; + appLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface AppLimitEventPatch { name?: string | null; - description?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateAppLimitEventInput { + clientMutationId?: string; + id: string; + appLimitEventPatch: AppLimitEventPatch; +} +export interface DeleteAppLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgLimitEventInput { + clientMutationId?: string; + orgLimitEvent: { + name?: string; + actorId?: string; + entityId?: string; + eventType?: string; + delta?: string; + numBefore?: string; + numAfter?: string; + maxAtEvent?: string; + reason?: string; + }; +} +export interface OrgLimitEventPatch { + name?: string | null; + actorId?: string | null; + entityId?: string | null; + eventType?: string | null; + delta?: string | null; + numBefore?: string | null; + numAfter?: string | null; + maxAtEvent?: string | null; + reason?: string | null; +} +export interface UpdateOrgLimitEventInput { + clientMutationId?: string; + id: string; + orgLimitEventPatch: OrgLimitEventPatch; +} +export interface DeleteOrgLimitEventInput { + clientMutationId?: string; + id: string; +} +export interface CreatePlansModuleInput { + clientMutationId?: string; + plansModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + plansTableId?: string; + plansTableName?: string; + planLimitsTableId?: string; + planLimitsTableName?: string; + applyPlanFunction?: string; + applyPlanAggregateFunction?: string; + prefix?: string; + }; +} +export interface PlansModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + plansTableId?: string | null; + plansTableName?: string | null; + planLimitsTableId?: string | null; + planLimitsTableName?: string | null; + applyPlanFunction?: string | null; + applyPlanAggregateFunction?: string | null; prefix?: string | null; - parentMembershipType?: number | null; - hasUsersTableEntry?: boolean | null; } -export interface UpdateMembershipTypeInput { +export interface UpdatePlansModuleInput { clientMutationId?: string; - id: number; - membershipTypePatch: MembershipTypePatch; + id: string; + plansModulePatch: PlansModulePatch; } -export interface DeleteMembershipTypeInput { +export interface DeletePlansModuleInput { clientMutationId?: string; - id: number; + id: string; } export interface CreateRlsModuleInput { clientMutationId?: string; @@ -17916,62 +19230,45 @@ export interface DeleteSqlActionInput { clientMutationId?: string; id: number; } -export interface CreateOrgMembershipSettingInput { - clientMutationId?: string; - orgMembershipSetting: { - createdBy?: string; - updatedBy?: string; - entityId: string; - deleteMemberCascadeChildren?: boolean; - createChildCascadeOwners?: boolean; - createChildCascadeAdmins?: boolean; - createChildCascadeMembers?: boolean; - allowExternalMembers?: boolean; - populateMemberEmail?: boolean; - }; -} -export interface OrgMembershipSettingPatch { - createdBy?: string | null; - updatedBy?: string | null; - entityId?: string | null; - deleteMemberCascadeChildren?: boolean | null; - createChildCascadeOwners?: boolean | null; - createChildCascadeAdmins?: boolean | null; - createChildCascadeMembers?: boolean | null; - allowExternalMembers?: boolean | null; - populateMemberEmail?: boolean | null; -} -export interface UpdateOrgMembershipSettingInput { - clientMutationId?: string; - id: string; - orgMembershipSettingPatch: OrgMembershipSettingPatch; -} -export interface DeleteOrgMembershipSettingInput { - clientMutationId?: string; - id: string; -} -export interface CreateUserInput { +export interface CreateBillingModuleInput { clientMutationId?: string; - user: { - username?: string; - displayName?: string; - profilePicture?: ConstructiveInternalTypeImage; - type?: number; + billingModule: { + databaseId: string; + schemaId?: string; + privateSchemaId?: string; + metersTableId?: string; + metersTableName?: string; + planSubscriptionsTableId?: string; + planSubscriptionsTableName?: string; + ledgerTableId?: string; + ledgerTableName?: string; + balancesTableId?: string; + balancesTableName?: string; + recordUsageFunction?: string; + prefix?: string; }; } -export interface UserPatch { - username?: string | null; - displayName?: string | null; - profilePicture?: ConstructiveInternalTypeImage | null; - type?: number | null; - profilePictureUpload?: File | null; +export interface BillingModulePatch { + databaseId?: string | null; + schemaId?: string | null; + privateSchemaId?: string | null; + metersTableId?: string | null; + metersTableName?: string | null; + planSubscriptionsTableId?: string | null; + planSubscriptionsTableName?: string | null; + ledgerTableId?: string | null; + ledgerTableName?: string | null; + balancesTableId?: string | null; + balancesTableName?: string | null; + recordUsageFunction?: string | null; + prefix?: string | null; } -export interface UpdateUserInput { +export interface UpdateBillingModuleInput { clientMutationId?: string; id: string; - userPatch: UserPatch; + billingModulePatch: BillingModulePatch; } -export interface DeleteUserInput { +export interface DeleteBillingModuleInput { clientMutationId?: string; id: string; } @@ -18013,6 +19310,69 @@ export interface DeleteAstMigrationInput { clientMutationId?: string; id: number; } +export interface CreateUserInput { + clientMutationId?: string; + user: { + username?: string; + displayName?: string; + profilePicture?: ConstructiveInternalTypeImage; + type?: number; + }; +} +export interface UserPatch { + username?: string | null; + displayName?: string | null; + profilePicture?: ConstructiveInternalTypeImage | null; + type?: number | null; + profilePictureUpload?: File | null; +} +export interface UpdateUserInput { + clientMutationId?: string; + id: string; + userPatch: UserPatch; +} +export interface DeleteUserInput { + clientMutationId?: string; + id: string; +} +export interface CreateOrgMembershipSettingInput { + clientMutationId?: string; + orgMembershipSetting: { + createdBy?: string; + updatedBy?: string; + entityId: string; + deleteMemberCascadeChildren?: boolean; + createChildCascadeOwners?: boolean; + createChildCascadeAdmins?: boolean; + createChildCascadeMembers?: boolean; + allowExternalMembers?: boolean; + inviteProfileAssignmentMode?: string; + populateMemberEmail?: boolean; + limitAllocationMode?: string; + }; +} +export interface OrgMembershipSettingPatch { + createdBy?: string | null; + updatedBy?: string | null; + entityId?: string | null; + deleteMemberCascadeChildren?: boolean | null; + createChildCascadeOwners?: boolean | null; + createChildCascadeAdmins?: boolean | null; + createChildCascadeMembers?: boolean | null; + allowExternalMembers?: boolean | null; + inviteProfileAssignmentMode?: string | null; + populateMemberEmail?: boolean | null; + limitAllocationMode?: string | null; +} +export interface UpdateOrgMembershipSettingInput { + clientMutationId?: string; + id: string; + orgMembershipSettingPatch: OrgMembershipSettingPatch; +} +export interface DeleteOrgMembershipSettingInput { + clientMutationId?: string; + id: string; +} export interface CreateAppMembershipInput { clientMutationId?: string; appMembership: { @@ -18023,7 +19383,6 @@ export interface CreateAppMembershipInput { isDisabled?: boolean; isVerified?: boolean; isActive?: boolean; - isExternal?: boolean; isOwner?: boolean; isAdmin?: boolean; permissions?: string; @@ -18040,7 +19399,6 @@ export interface AppMembershipPatch { isDisabled?: boolean | null; isVerified?: boolean | null; isActive?: boolean | null; - isExternal?: boolean | null; isOwner?: boolean | null; isAdmin?: boolean | null; permissions?: string | null; @@ -18237,6 +19595,10 @@ export const connectionFieldsMap = { blueprintTemplatesByForkedFromId: 'BlueprintTemplate', blueprintsByTemplateId: 'Blueprint', }, + AgentThread: { + agentMessagesByThreadId: 'AgentMessage', + agentTasksByThreadId: 'AgentTask', + }, User: { ownedDatabases: 'Database', appAdminGrantsByActorId: 'AppAdminGrant', @@ -18271,6 +19633,7 @@ export const connectionFieldsMap = { appLimitsByActorId: 'AppLimit', orgLimitsByActorId: 'OrgLimit', orgLimitsByEntityId: 'OrgLimit', + orgLimitAggregatesByEntityId: 'OrgLimitAggregate', appStepsByActorId: 'AppStep', appAchievementsByActorId: 'AppAchievement', ownedAppLevels: 'AppLevel', @@ -18288,6 +19651,10 @@ export const connectionFieldsMap = { orgClaimedInvitesByReceiverId: 'OrgClaimedInvite', orgClaimedInvitesBySenderId: 'OrgClaimedInvite', auditLogsByActorId: 'AuditLog', + agentThreadsByEntityId: 'AgentThread', + ownedAgentThreads: 'AgentThread', + ownedAgentMessages: 'AgentMessage', + ownedAgentTasks: 'AgentTask', }, } as Record>; // ============ Custom Input Types (from schema) ============ @@ -18548,6 +19915,14 @@ export interface CreateApiKeyInput { mfaLevel?: string; expiresIn?: IntervalInput; } +export interface SendVerificationEmailInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} +export interface ForgotPasswordInput { + clientMutationId?: string; + email?: ConstructiveInternalTypeEmail; +} export interface SignUpInput { clientMutationId?: string; email?: string; @@ -18588,14 +19963,6 @@ export interface ProvisionTableInput { uniqueConstraints?: Record; description?: string; } -export interface SendVerificationEmailInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} -export interface ForgotPasswordInput { - clientMutationId?: string; - email?: ConstructiveInternalTypeEmail; -} export interface RequestUploadUrlInput { /** Bucket key (e.g., "public", "private") */ bucketKey: string; @@ -18615,10 +19982,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -20072,6 +21435,24 @@ export interface ConstructiveInternalTypeOriginFilter { /** Greater than or equal to the specified value (case-insensitive). */ greaterThanOrEqualToInsensitive?: string; } +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} /** A filter to be used against ConstructiveInternalTypeUpload fields. All fields are combined with a logical ‘and.’ */ export interface ConstructiveInternalTypeUploadFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -20323,6 +21704,15 @@ export interface UserToManyOrgLimitFilter { /** Filters to entities where no related entity matches. */ none?: OrgLimitFilter; } +/** A filter to be used against many `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyOrgLimitAggregateFilter { + /** Filters to entities where at least one related entity matches. */ + some?: OrgLimitAggregateFilter; + /** Filters to entities where every related entity matches. */ + every?: OrgLimitAggregateFilter; + /** Filters to entities where no related entity matches. */ + none?: OrgLimitAggregateFilter; +} /** A filter to be used against many `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface UserToManyAppStepFilter { /** Filters to entities where at least one related entity matches. */ @@ -20431,12 +21821,39 @@ export interface UserToManyAuditLogFilter { /** Filters to entities where no related entity matches. */ none?: AuditLogFilter; } -/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ -export interface TrgmSearchInput { - /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ - value: string; - /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ - threshold?: number; +/** A filter to be used against many `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentThreadFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentThreadFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentThreadFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentThreadFilter; +} +/** A filter to be used against many `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentMessageFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentMessageFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentMessageFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentMessageFilter; +} +/** A filter to be used against many `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface UserToManyAgentTaskFilter { + /** Filters to entities where at least one related entity matches. */ + some?: AgentTaskFilter; + /** Filters to entities where every related entity matches. */ + every?: AgentTaskFilter; + /** Filters to entities where no related entity matches. */ + none?: AgentTaskFilter; +} +/** Input for pg_trgm fuzzy text matching. Provide a search value and optional similarity threshold. */ +export interface TrgmSearchInput { + /** The text to fuzzy-match against. Typos and misspellings are tolerated. */ + value: string; + /** Minimum similarity threshold (0.0 to 1.0). Higher = stricter matching. Default is 0.3. */ + threshold?: number; } /** An interval of time that has passed where the smallest distinct unit is a second. */ export interface IntervalInput { @@ -22147,6 +23564,8 @@ export interface LimitsModuleFilter { limitUpdateTrigger?: StringFilter; /** Filter by the object’s `limitCheckFunction` field. */ limitCheckFunction?: StringFilter; + /** Filter by the object’s `aggregateTableId` field. */ + aggregateTableId?: UUIDFilter; /** Filter by the object’s `prefix` field. */ prefix?: StringFilter; /** Filter by the object’s `membershipType` field. */ @@ -22163,6 +23582,10 @@ export interface LimitsModuleFilter { not?: LimitsModuleFilter; /** Filter by the object’s `actorTable` relation. */ actorTable?: TableFilter; + /** Filter by the object’s `aggregateTable` relation. */ + aggregateTable?: TableFilter; + /** A related `aggregateTable` exists. */ + aggregateTableExists?: boolean; /** Filter by the object’s `database` relation. */ database?: DatabaseFilter; /** Filter by the object’s `defaultTable` relation. */ @@ -22436,6 +23859,10 @@ export interface ProfilesModuleFilter { profileDefinitionGrantsTableId?: UUIDFilter; /** Filter by the object’s `profileDefinitionGrantsTableName` field. */ profileDefinitionGrantsTableName?: StringFilter; + /** Filter by the object’s `profileTemplatesTableId` field. */ + profileTemplatesTableId?: UUIDFilter; + /** Filter by the object’s `profileTemplatesTableName` field. */ + profileTemplatesTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `entityTableId` field. */ @@ -22474,6 +23901,8 @@ export interface ProfilesModuleFilter { profileGrantsTable?: TableFilter; /** Filter by the object’s `profilePermissionsTable` relation. */ profilePermissionsTable?: TableFilter; + /** Filter by the object’s `profileTemplatesTable` relation. */ + profileTemplatesTable?: TableFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; /** Filter by the object’s `table` relation. */ @@ -22847,14 +24276,10 @@ export interface StorageModuleFilter { bucketsTableId?: UUIDFilter; /** Filter by the object’s `filesTableId` field. */ filesTableId?: UUIDFilter; - /** Filter by the object’s `uploadRequestsTableId` field. */ - uploadRequestsTableId?: UUIDFilter; /** Filter by the object’s `bucketsTableName` field. */ bucketsTableName?: StringFilter; /** Filter by the object’s `filesTableName` field. */ filesTableName?: StringFilter; - /** Filter by the object’s `uploadRequestsTableName` field. */ - uploadRequestsTableName?: StringFilter; /** Filter by the object’s `membershipType` field. */ membershipType?: IntFilter; /** Filter by the object’s `policies` field. */ @@ -22871,6 +24296,8 @@ export interface StorageModuleFilter { provider?: StringFilter; /** Filter by the object’s `allowedOrigins` field. */ allowedOrigins?: StringListFilter; + /** Filter by the object’s `restrictReads` field. */ + restrictReads?: BooleanFilter; /** Filter by the object’s `uploadUrlExpirySeconds` field. */ uploadUrlExpirySeconds?: IntFilter; /** Filter by the object’s `downloadUrlExpirySeconds` field. */ @@ -22901,8 +24328,6 @@ export interface StorageModuleFilter { privateSchema?: SchemaFilter; /** Filter by the object’s `schema` relation. */ schema?: SchemaFilter; - /** Filter by the object’s `uploadRequestsTable` relation. */ - uploadRequestsTable?: TableFilter; } /** A filter to be used against `EntityTypeProvision` object types. All fields are combined with a logical ‘and.’ */ export interface EntityTypeProvisionFilter { @@ -23309,6 +24734,68 @@ export interface BlueprintTemplateFilter { /** `blueprintsByTemplateId` exist. */ blueprintsByTemplateIdExist?: boolean; } +/** A filter to be used against `AgentMessage` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentMessageFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `authorRole` field. */ + authorRole?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `parts` field. */ + parts?: JSONFilter; + /** Checks for all expressions in this list. */ + and?: AgentMessageFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentMessageFilter[]; + /** Negates the expression. */ + not?: AgentMessageFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} +/** A filter to be used against `AgentTask` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentTaskFilter { + /** Filter by the object’s `threadId` field. */ + threadId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `description` field. */ + description?: StringFilter; + /** Filter by the object’s `source` field. */ + source?: StringFilter; + /** Filter by the object’s `error` field. */ + error?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentTaskFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentTaskFilter[]; + /** Negates the expression. */ + not?: AgentTaskFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `thread` relation. */ + thread?: AgentThreadFilter; +} /** A filter to be used against `Database` object types. All fields are combined with a logical ‘and.’ */ export interface DatabaseFilter { /** Filter by the object’s `id` field. */ @@ -23597,6 +25084,14 @@ export interface DatabaseFilter { notificationsModules?: DatabaseToManyNotificationsModuleFilter; /** `notificationsModules` exist. */ notificationsModulesExist?: boolean; + /** Filter by the object’s `plansModule` relation. */ + plansModule?: PlansModuleFilter; + /** A related `plansModule` exists. */ + plansModuleExists?: boolean; + /** Filter by the object’s `billingModule` relation. */ + billingModule?: BillingModuleFilter; + /** A related `billingModule` exists. */ + billingModuleExists?: boolean; /** Filter by the object’s `databaseProvisionModules` relation. */ databaseProvisionModules?: DatabaseToManyDatabaseProvisionModuleFilter; /** `databaseProvisionModules` exist. */ @@ -23989,9 +25484,15 @@ export interface AppLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Checks for all expressions in this list. */ and?: AppLimitFilter[]; /** Checks for any expressions in this list. */ @@ -24010,9 +25511,15 @@ export interface OrgLimitFilter { /** Filter by the object’s `actorId` field. */ actorId?: UUIDFilter; /** Filter by the object’s `num` field. */ - num?: IntFilter; + num?: BigIntFilter; /** Filter by the object’s `max` field. */ - max?: IntFilter; + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; /** Filter by the object’s `entityId` field. */ entityId?: UUIDFilter; /** Checks for all expressions in this list. */ @@ -24026,6 +25533,33 @@ export interface OrgLimitFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } +/** A filter to be used against `OrgLimitAggregate` object types. All fields are combined with a logical ‘and.’ */ +export interface OrgLimitAggregateFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `name` field. */ + name?: StringFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `num` field. */ + num?: BigIntFilter; + /** Filter by the object’s `max` field. */ + max?: BigIntFilter; + /** Filter by the object’s `softMax` field. */ + softMax?: BigIntFilter; + /** Filter by the object’s `windowStart` field. */ + windowStart?: DatetimeFilter; + /** Filter by the object’s `windowDuration` field. */ + windowDuration?: IntervalFilter; + /** Checks for all expressions in this list. */ + and?: OrgLimitAggregateFilter[]; + /** Checks for any expressions in this list. */ + or?: OrgLimitAggregateFilter[]; + /** Negates the expression. */ + not?: OrgLimitAggregateFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; +} /** A filter to be used against `AppStep` object types. All fields are combined with a logical ‘and.’ */ export interface AppStepFilter { /** Filter by the object’s `id` field. */ @@ -24239,6 +25773,8 @@ export interface AppInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24301,6 +25837,8 @@ export interface OrgInviteFilter { inviteCount?: IntFilter; /** Filter by the object’s `multiple` field. */ multiple?: BooleanFilter; + /** Filter by the object’s `profileId` field. */ + profileId?: UUIDFilter; /** Filter by the object’s `expiresAt` field. */ expiresAt?: DatetimeFilter; /** Filter by the object’s `createdAt` field. */ @@ -24384,6 +25922,47 @@ export interface AuditLogFilter { /** A related `actor` exists. */ actorExists?: boolean; } +/** A filter to be used against `AgentThread` object types. All fields are combined with a logical ‘and.’ */ +export interface AgentThreadFilter { + /** Filter by the object’s `title` field. */ + title?: StringFilter; + /** Filter by the object’s `mode` field. */ + mode?: StringFilter; + /** Filter by the object’s `model` field. */ + model?: StringFilter; + /** Filter by the object’s `systemPrompt` field. */ + systemPrompt?: StringFilter; + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `createdAt` field. */ + createdAt?: DatetimeFilter; + /** Filter by the object’s `updatedAt` field. */ + updatedAt?: DatetimeFilter; + /** Filter by the object’s `ownerId` field. */ + ownerId?: UUIDFilter; + /** Filter by the object’s `entityId` field. */ + entityId?: UUIDFilter; + /** Filter by the object’s `status` field. */ + status?: StringFilter; + /** Checks for all expressions in this list. */ + and?: AgentThreadFilter[]; + /** Checks for any expressions in this list. */ + or?: AgentThreadFilter[]; + /** Negates the expression. */ + not?: AgentThreadFilter; + /** Filter by the object’s `entity` relation. */ + entity?: UserFilter; + /** Filter by the object’s `owner` relation. */ + owner?: UserFilter; + /** Filter by the object’s `agentMessagesByThreadId` relation. */ + agentMessagesByThreadId?: AgentThreadToManyAgentMessageFilter; + /** `agentMessagesByThreadId` exist. */ + agentMessagesByThreadIdExist?: boolean; + /** Filter by the object’s `agentTasksByThreadId` relation. */ + agentTasksByThreadId?: AgentThreadToManyAgentTaskFilter; + /** `agentTasksByThreadId` exist. */ + agentTasksByThreadIdExist?: boolean; +} /** A filter to be used against UUID fields. All fields are combined with a logical ‘and.’ */ export interface UUIDFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -24894,6 +26473,10 @@ export interface UserFilter { orgLimitsByEntityId?: UserToManyOrgLimitFilter; /** `orgLimitsByEntityId` exist. */ orgLimitsByEntityIdExist?: boolean; + /** Filter by the object’s `orgLimitAggregatesByEntityId` relation. */ + orgLimitAggregatesByEntityId?: UserToManyOrgLimitAggregateFilter; + /** `orgLimitAggregatesByEntityId` exist. */ + orgLimitAggregatesByEntityIdExist?: boolean; /** Filter by the object’s `appStepsByActorId` relation. */ appStepsByActorId?: UserToManyAppStepFilter; /** `appStepsByActorId` exist. */ @@ -24962,6 +26545,22 @@ export interface UserFilter { auditLogsByActorId?: UserToManyAuditLogFilter; /** `auditLogsByActorId` exist. */ auditLogsByActorIdExist?: boolean; + /** Filter by the object’s `agentThreadsByEntityId` relation. */ + agentThreadsByEntityId?: UserToManyAgentThreadFilter; + /** `agentThreadsByEntityId` exist. */ + agentThreadsByEntityIdExist?: boolean; + /** Filter by the object’s `ownedAgentThreads` relation. */ + ownedAgentThreads?: UserToManyAgentThreadFilter; + /** `ownedAgentThreads` exist. */ + ownedAgentThreadsExist?: boolean; + /** Filter by the object’s `ownedAgentMessages` relation. */ + ownedAgentMessages?: UserToManyAgentMessageFilter; + /** `ownedAgentMessages` exist. */ + ownedAgentMessagesExist?: boolean; + /** Filter by the object’s `ownedAgentTasks` relation. */ + ownedAgentTasks?: UserToManyAgentTaskFilter; + /** `ownedAgentTasks` exist. */ + ownedAgentTasksExist?: boolean; /** TSV search on the `search_tsv` column. */ tsvSearchTsv?: string; /** TRGM search on the `display_name` column. */ @@ -25150,6 +26749,98 @@ export interface DevicesModuleFilter { /** Filter by the object’s `userDevicesTableByUserDevicesTableId` relation. */ userDevicesTableByUserDevicesTableId?: TableFilter; } +/** A filter to be used against `PlansModule` object types. All fields are combined with a logical ‘and.’ */ +export interface PlansModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `plansTableId` field. */ + plansTableId?: UUIDFilter; + /** Filter by the object’s `plansTableName` field. */ + plansTableName?: StringFilter; + /** Filter by the object’s `planLimitsTableId` field. */ + planLimitsTableId?: UUIDFilter; + /** Filter by the object’s `planLimitsTableName` field. */ + planLimitsTableName?: StringFilter; + /** Filter by the object’s `applyPlanFunction` field. */ + applyPlanFunction?: StringFilter; + /** Filter by the object’s `applyPlanAggregateFunction` field. */ + applyPlanAggregateFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: PlansModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: PlansModuleFilter[]; + /** Negates the expression. */ + not?: PlansModuleFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `planLimitsTable` relation. */ + planLimitsTable?: TableFilter; + /** Filter by the object’s `plansTable` relation. */ + plansTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} +/** A filter to be used against `BillingModule` object types. All fields are combined with a logical ‘and.’ */ +export interface BillingModuleFilter { + /** Filter by the object’s `id` field. */ + id?: UUIDFilter; + /** Filter by the object’s `databaseId` field. */ + databaseId?: UUIDFilter; + /** Filter by the object’s `schemaId` field. */ + schemaId?: UUIDFilter; + /** Filter by the object’s `privateSchemaId` field. */ + privateSchemaId?: UUIDFilter; + /** Filter by the object’s `metersTableId` field. */ + metersTableId?: UUIDFilter; + /** Filter by the object’s `metersTableName` field. */ + metersTableName?: StringFilter; + /** Filter by the object’s `planSubscriptionsTableId` field. */ + planSubscriptionsTableId?: UUIDFilter; + /** Filter by the object’s `planSubscriptionsTableName` field. */ + planSubscriptionsTableName?: StringFilter; + /** Filter by the object’s `ledgerTableId` field. */ + ledgerTableId?: UUIDFilter; + /** Filter by the object’s `ledgerTableName` field. */ + ledgerTableName?: StringFilter; + /** Filter by the object’s `balancesTableId` field. */ + balancesTableId?: UUIDFilter; + /** Filter by the object’s `balancesTableName` field. */ + balancesTableName?: StringFilter; + /** Filter by the object’s `recordUsageFunction` field. */ + recordUsageFunction?: StringFilter; + /** Filter by the object’s `prefix` field. */ + prefix?: StringFilter; + /** Checks for all expressions in this list. */ + and?: BillingModuleFilter[]; + /** Checks for any expressions in this list. */ + or?: BillingModuleFilter[]; + /** Negates the expression. */ + not?: BillingModuleFilter; + /** Filter by the object’s `balancesTable` relation. */ + balancesTable?: TableFilter; + /** Filter by the object’s `database` relation. */ + database?: DatabaseFilter; + /** Filter by the object’s `ledgerTable` relation. */ + ledgerTable?: TableFilter; + /** Filter by the object’s `metersTable` relation. */ + metersTable?: TableFilter; + /** Filter by the object’s `planSubscriptionsTable` relation. */ + planSubscriptionsTable?: TableFilter; + /** Filter by the object’s `privateSchema` relation. */ + privateSchema?: SchemaFilter; + /** Filter by the object’s `schema` relation. */ + schema?: SchemaFilter; +} /** A filter to be used against BitString fields. All fields are combined with a logical ‘and.’ */ export interface BitStringFilter { /** Is null (if `true` is specified) or is not null (if `false` is specified). */ @@ -25264,8 +26955,6 @@ export interface AppMembershipFilter { isVerified?: BooleanFilter; /** Filter by the object’s `isActive` field. */ isActive?: BooleanFilter; - /** Filter by the object’s `isExternal` field. */ - isExternal?: BooleanFilter; /** Filter by the object’s `isOwner` field. */ isOwner?: BooleanFilter; /** Filter by the object’s `isAdmin` field. */ @@ -25336,8 +27025,12 @@ export interface OrgMembershipSettingFilter { createChildCascadeMembers?: BooleanFilter; /** Filter by the object’s `allowExternalMembers` field. */ allowExternalMembers?: BooleanFilter; + /** Filter by the object’s `inviteProfileAssignmentMode` field. */ + inviteProfileAssignmentMode?: StringFilter; /** Filter by the object’s `populateMemberEmail` field. */ populateMemberEmail?: BooleanFilter; + /** Filter by the object’s `limitAllocationMode` field. */ + limitAllocationMode?: StringFilter; /** Checks for all expressions in this list. */ and?: OrgMembershipSettingFilter[]; /** Checks for any expressions in this list. */ @@ -25347,27 +27040,8 @@ export interface OrgMembershipSettingFilter { /** Filter by the object’s `entity` relation. */ entity?: UserFilter; } -/** A connection to a list of `Object` values. */ -// ============ Payload/Return Types (for custom operations) ============ -export interface ObjectConnection { - nodes: Object[]; - edges: ObjectEdge[]; - pageInfo: PageInfo; - totalCount: number; -} -export type ObjectConnectionSelect = { - nodes?: { - select: ObjectSelect; - }; - edges?: { - select: ObjectEdgeSelect; - }; - pageInfo?: { - select: PageInfoSelect; - }; - totalCount?: boolean; -}; /** A connection to a list of `AppPermission` values. */ +// ============ Payload/Return Types (for custom operations) ============ export interface AppPermissionConnection { nodes: AppPermission[]; edges: AppPermissionEdge[]; @@ -25405,6 +27079,25 @@ export type OrgPermissionConnectionSelect = { }; totalCount?: boolean; }; +/** A connection to a list of `Object` values. */ +export interface ObjectConnection { + nodes: Object[]; + edges: ObjectEdge[]; + pageInfo: PageInfo; + totalCount: number; +} +export type ObjectConnectionSelect = { + nodes?: { + select: ObjectSelect; + }; + edges?: { + select: ObjectEdgeSelect; + }; + pageInfo?: { + select: PageInfoSelect; + }; + totalCount?: boolean; +}; /** A connection to a list of `AppLevelRequirement` values. */ export interface AppLevelRequirementConnection { nodes: AppLevelRequirement[]; @@ -25750,6 +27443,20 @@ export type CreateApiKeyPayloadSelect = { select: CreateApiKeyRecordSelect; }; }; +export interface SendVerificationEmailPayload { + clientMutationId?: string | null; + result?: boolean | null; +} +export type SendVerificationEmailPayloadSelect = { + clientMutationId?: boolean; + result?: boolean; +}; +export interface ForgotPasswordPayload { + clientMutationId?: string | null; +} +export type ForgotPasswordPayloadSelect = { + clientMutationId?: boolean; +}; export interface SignUpPayload { clientMutationId?: string | null; result?: SignUpRecord | null; @@ -25788,20 +27495,6 @@ export type ProvisionTablePayloadSelect = { select: ProvisionTableRecordSelect; }; }; -export interface SendVerificationEmailPayload { - clientMutationId?: string | null; - result?: boolean | null; -} -export type SendVerificationEmailPayloadSelect = { - clientMutationId?: boolean; - result?: boolean; -}; -export interface ForgotPasswordPayload { - clientMutationId?: string | null; -} -export type ForgotPasswordPayloadSelect = { - clientMutationId?: boolean; -}; export interface RequestUploadUrlPayload { /** Presigned PUT URL (null if file was deduplicated) */ uploadUrl?: string | null; @@ -25813,8 +27506,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -25822,20 +27513,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ @@ -25859,51 +27536,6 @@ export type ProvisionBucketPayloadSelect = { endpoint?: boolean; error?: boolean; }; -export interface CreateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was created by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type CreateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface UpdateObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was updated by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type UpdateObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; -export interface DeleteObjectPayload { - clientMutationId?: string | null; - /** The `Object` that was deleted by this mutation. */ - object?: Object | null; - objectEdge?: ObjectEdge | null; -} -export type DeleteObjectPayloadSelect = { - clientMutationId?: boolean; - object?: { - select: ObjectSelect; - }; - objectEdge?: { - select: ObjectEdgeSelect; - }; -}; export interface CreateAppPermissionPayload { clientMutationId?: string | null; /** The `AppPermission` that was created by this mutation. */ @@ -25994,6 +27626,51 @@ export type DeleteOrgPermissionPayloadSelect = { select: OrgPermissionEdgeSelect; }; }; +export interface CreateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was created by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type CreateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface UpdateObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was updated by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type UpdateObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; +export interface DeleteObjectPayload { + clientMutationId?: string | null; + /** The `Object` that was deleted by this mutation. */ + object?: Object | null; + objectEdge?: ObjectEdge | null; +} +export type DeleteObjectPayloadSelect = { + clientMutationId?: boolean; + object?: { + select: ObjectSelect; + }; + objectEdge?: { + select: ObjectEdgeSelect; + }; +}; export interface CreateAppLevelRequirementPayload { clientMutationId?: string | null; /** The `AppLevelRequirement` that was created by this mutation. */ @@ -29594,6 +31271,51 @@ export type DeleteOrgLimitPayloadSelect = { select: OrgLimitEdgeSelect; }; }; +export interface CreateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was created by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type CreateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface UpdateOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was updated by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type UpdateOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; +export interface DeleteOrgLimitAggregatePayload { + clientMutationId?: string | null; + /** The `OrgLimitAggregate` that was deleted by this mutation. */ + orgLimitAggregate?: OrgLimitAggregate | null; + orgLimitAggregateEdge?: OrgLimitAggregateEdge | null; +} +export type DeleteOrgLimitAggregatePayloadSelect = { + clientMutationId?: boolean; + orgLimitAggregate?: { + select: OrgLimitAggregateSelect; + }; + orgLimitAggregateEdge?: { + select: OrgLimitAggregateEdgeSelect; + }; +}; export interface CreateAppStepPayload { clientMutationId?: string | null; /** The `AppStep` that was created by this mutation. */ @@ -30134,49 +31856,184 @@ export type DeleteAuditLogPayloadSelect = { select: AuditLogEdgeSelect; }; }; -export interface CreateAppPermissionDefaultPayload { +export interface CreateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was created by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was created by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type CreateAppPermissionDefaultPayloadSelect = { +export type CreateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface UpdateAppPermissionDefaultPayload { +export interface UpdateAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was updated by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was updated by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type UpdateAppPermissionDefaultPayloadSelect = { +export type UpdateAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; }; }; -export interface DeleteAppPermissionDefaultPayload { +export interface DeleteAgentThreadPayload { clientMutationId?: string | null; - /** The `AppPermissionDefault` that was deleted by this mutation. */ - appPermissionDefault?: AppPermissionDefault | null; - appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; + /** The `AgentThread` that was deleted by this mutation. */ + agentThread?: AgentThread | null; + agentThreadEdge?: AgentThreadEdge | null; } -export type DeleteAppPermissionDefaultPayloadSelect = { +export type DeleteAgentThreadPayloadSelect = { clientMutationId?: boolean; - appPermissionDefault?: { - select: AppPermissionDefaultSelect; + agentThread?: { + select: AgentThreadSelect; }; - appPermissionDefaultEdge?: { - select: AppPermissionDefaultEdgeSelect; + agentThreadEdge?: { + select: AgentThreadEdgeSelect; + }; +}; +export interface CreateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was created by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type CreateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface UpdateAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was updated by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type UpdateAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface DeleteAgentMessagePayload { + clientMutationId?: string | null; + /** The `AgentMessage` that was deleted by this mutation. */ + agentMessage?: AgentMessage | null; + agentMessageEdge?: AgentMessageEdge | null; +} +export type DeleteAgentMessagePayloadSelect = { + clientMutationId?: boolean; + agentMessage?: { + select: AgentMessageSelect; + }; + agentMessageEdge?: { + select: AgentMessageEdgeSelect; + }; +}; +export interface CreateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was created by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type CreateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface UpdateAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was updated by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type UpdateAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface DeleteAgentTaskPayload { + clientMutationId?: string | null; + /** The `AgentTask` that was deleted by this mutation. */ + agentTask?: AgentTask | null; + agentTaskEdge?: AgentTaskEdge | null; +} +export type DeleteAgentTaskPayloadSelect = { + clientMutationId?: boolean; + agentTask?: { + select: AgentTaskSelect; + }; + agentTaskEdge?: { + select: AgentTaskEdgeSelect; + }; +}; +export interface CreateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was created by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type CreateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface UpdateRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was updated by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type UpdateRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; + }; +}; +export interface DeleteRoleTypePayload { + clientMutationId?: string | null; + /** The `RoleType` that was deleted by this mutation. */ + roleType?: RoleType | null; + roleTypeEdge?: RoleTypeEdge | null; +} +export type DeleteRoleTypePayloadSelect = { + clientMutationId?: boolean; + roleType?: { + select: RoleTypeSelect; + }; + roleTypeEdge?: { + select: RoleTypeEdgeSelect; }; }; export interface CreateIdentityProviderPayload { @@ -30280,74 +32137,209 @@ export type DeleteStorePayloadSelect = { select: StoreEdgeSelect; }; }; -export interface CreateRoleTypePayload { +export interface CreateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was created by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was created by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type CreateRoleTypePayloadSelect = { +export type CreateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface UpdateRoleTypePayload { +export interface UpdateAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was updated by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was updated by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type UpdateRoleTypePayloadSelect = { +export type UpdateAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface DeleteRoleTypePayload { +export interface DeleteAppPermissionDefaultPayload { clientMutationId?: string | null; - /** The `RoleType` that was deleted by this mutation. */ - roleType?: RoleType | null; - roleTypeEdge?: RoleTypeEdge | null; + /** The `AppPermissionDefault` that was deleted by this mutation. */ + appPermissionDefault?: AppPermissionDefault | null; + appPermissionDefaultEdge?: AppPermissionDefaultEdge | null; } -export type DeleteRoleTypePayloadSelect = { +export type DeleteAppPermissionDefaultPayloadSelect = { clientMutationId?: boolean; - roleType?: { - select: RoleTypeSelect; + appPermissionDefault?: { + select: AppPermissionDefaultSelect; }; - roleTypeEdge?: { - select: RoleTypeEdgeSelect; + appPermissionDefaultEdge?: { + select: AppPermissionDefaultEdgeSelect; }; }; -export interface CreateMigrateFilePayload { +export interface CreateMembershipTypePayload { clientMutationId?: string | null; - /** The `MigrateFile` that was created by this mutation. */ - migrateFile?: MigrateFile | null; + /** The `MembershipType` that was created by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateMigrateFilePayloadSelect = { +export type CreateMembershipTypePayloadSelect = { clientMutationId?: boolean; - migrateFile?: { - select: MigrateFileSelect; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; }; }; -export interface CreateAppLimitDefaultPayload { +export interface UpdateMembershipTypePayload { clientMutationId?: string | null; - /** The `AppLimitDefault` that was created by this mutation. */ - appLimitDefault?: AppLimitDefault | null; - appLimitDefaultEdge?: AppLimitDefaultEdge | null; + /** The `MembershipType` that was updated by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; } -export type CreateAppLimitDefaultPayloadSelect = { +export type UpdateMembershipTypePayloadSelect = { clientMutationId?: boolean; - appLimitDefault?: { - select: AppLimitDefaultSelect; + membershipType?: { + select: MembershipTypeSelect; }; - appLimitDefaultEdge?: { + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface DeleteMembershipTypePayload { + clientMutationId?: string | null; + /** The `MembershipType` that was deleted by this mutation. */ + membershipType?: MembershipType | null; + membershipTypeEdge?: MembershipTypeEdge | null; +} +export type DeleteMembershipTypePayloadSelect = { + clientMutationId?: boolean; + membershipType?: { + select: MembershipTypeSelect; + }; + membershipTypeEdge?: { + select: MembershipTypeEdgeSelect; + }; +}; +export interface CreateMigrateFilePayload { + clientMutationId?: string | null; + /** The `MigrateFile` that was created by this mutation. */ + migrateFile?: MigrateFile | null; +} +export type CreateMigrateFilePayloadSelect = { + clientMutationId?: boolean; + migrateFile?: { + select: MigrateFileSelect; + }; +}; +export interface CreateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was created by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type CreateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface UpdateDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was updated by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type UpdateDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface DeleteDevicesModulePayload { + clientMutationId?: string | null; + /** The `DevicesModule` that was deleted by this mutation. */ + devicesModule?: DevicesModule | null; + devicesModuleEdge?: DevicesModuleEdge | null; +} +export type DeleteDevicesModulePayloadSelect = { + clientMutationId?: boolean; + devicesModule?: { + select: DevicesModuleSelect; + }; + devicesModuleEdge?: { + select: DevicesModuleEdgeSelect; + }; +}; +export interface CreateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was created by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type CreateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface UpdateNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was updated by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type UpdateNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface DeleteNodeTypeRegistryPayload { + clientMutationId?: string | null; + /** The `NodeTypeRegistry` that was deleted by this mutation. */ + nodeTypeRegistry?: NodeTypeRegistry | null; + nodeTypeRegistryEdge?: NodeTypeRegistryEdge | null; +} +export type DeleteNodeTypeRegistryPayloadSelect = { + clientMutationId?: boolean; + nodeTypeRegistry?: { + select: NodeTypeRegistrySelect; + }; + nodeTypeRegistryEdge?: { + select: NodeTypeRegistryEdgeSelect; + }; +}; +export interface CreateAppLimitDefaultPayload { + clientMutationId?: string | null; + /** The `AppLimitDefault` that was created by this mutation. */ + appLimitDefault?: AppLimitDefault | null; + appLimitDefaultEdge?: AppLimitDefaultEdge | null; +} +export type CreateAppLimitDefaultPayloadSelect = { + clientMutationId?: boolean; + appLimitDefault?: { + select: AppLimitDefaultSelect; + }; + appLimitDefaultEdge?: { select: AppLimitDefaultEdgeSelect; }; }; @@ -30426,60 +32418,105 @@ export type DeleteOrgLimitDefaultPayloadSelect = { select: OrgLimitDefaultEdgeSelect; }; }; -export interface CreateDevicesModulePayload { +export interface CreateUserConnectedAccountPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was created by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `UserConnectedAccount` that was created by this mutation. */ + userConnectedAccount?: UserConnectedAccount | null; } -export type CreateDevicesModulePayloadSelect = { +export type CreateUserConnectedAccountPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + userConnectedAccount?: { + select: UserConnectedAccountSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; +}; +export interface CreateCommitPayload { + clientMutationId?: string | null; + /** The `Commit` that was created by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; +} +export type CreateCommitPayloadSelect = { + clientMutationId?: boolean; + commit?: { + select: CommitSelect; + }; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface UpdateDevicesModulePayload { +export interface UpdateCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was updated by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was updated by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type UpdateDevicesModulePayloadSelect = { +export type UpdateCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface DeleteDevicesModulePayload { +export interface DeleteCommitPayload { clientMutationId?: string | null; - /** The `DevicesModule` that was deleted by this mutation. */ - devicesModule?: DevicesModule | null; - devicesModuleEdge?: DevicesModuleEdge | null; + /** The `Commit` that was deleted by this mutation. */ + commit?: Commit | null; + commitEdge?: CommitEdge | null; } -export type DeleteDevicesModulePayloadSelect = { +export type DeleteCommitPayloadSelect = { clientMutationId?: boolean; - devicesModule?: { - select: DevicesModuleSelect; + commit?: { + select: CommitSelect; }; - devicesModuleEdge?: { - select: DevicesModuleEdgeSelect; + commitEdge?: { + select: CommitEdgeSelect; }; }; -export interface CreateUserConnectedAccountPayload { +export interface CreateRateLimitsModulePayload { clientMutationId?: string | null; - /** The `UserConnectedAccount` that was created by this mutation. */ - userConnectedAccount?: UserConnectedAccount | null; + /** The `RateLimitsModule` that was created by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; } -export type CreateUserConnectedAccountPayloadSelect = { +export type CreateRateLimitsModulePayloadSelect = { clientMutationId?: boolean; - userConnectedAccount?: { - select: UserConnectedAccountSelect; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface UpdateRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was updated by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type UpdateRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; + }; +}; +export interface DeleteRateLimitsModulePayload { + clientMutationId?: string | null; + /** The `RateLimitsModule` that was deleted by this mutation. */ + rateLimitsModule?: RateLimitsModule | null; + rateLimitsModuleEdge?: RateLimitsModuleEdge | null; +} +export type DeleteRateLimitsModulePayloadSelect = { + clientMutationId?: boolean; + rateLimitsModule?: { + select: RateLimitsModuleSelect; + }; + rateLimitsModuleEdge?: { + select: RateLimitsModuleEdgeSelect; }; }; export interface CreateAppMembershipDefaultPayload { @@ -30572,139 +32609,71 @@ export type DeleteOrgMembershipDefaultPayloadSelect = { select: OrgMembershipDefaultEdgeSelect; }; }; -export interface CreateCommitPayload { +export interface CreateAppLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was created by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `AppLimitEvent` that was created by this mutation. */ + appLimitEvent?: AppLimitEvent | null; } -export type CreateCommitPayloadSelect = { +export type CreateAppLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + appLimitEvent?: { + select: AppLimitEventSelect; }; }; -export interface UpdateCommitPayload { +export interface CreateOrgLimitEventPayload { clientMutationId?: string | null; - /** The `Commit` that was updated by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `OrgLimitEvent` that was created by this mutation. */ + orgLimitEvent?: OrgLimitEvent | null; } -export type UpdateCommitPayloadSelect = { +export type CreateOrgLimitEventPayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; - }; - commitEdge?: { - select: CommitEdgeSelect; + orgLimitEvent?: { + select: OrgLimitEventSelect; }; }; -export interface DeleteCommitPayload { +export interface CreatePlansModulePayload { clientMutationId?: string | null; - /** The `Commit` that was deleted by this mutation. */ - commit?: Commit | null; - commitEdge?: CommitEdge | null; + /** The `PlansModule` that was created by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteCommitPayloadSelect = { +export type CreatePlansModulePayloadSelect = { clientMutationId?: boolean; - commit?: { - select: CommitSelect; + plansModule?: { + select: PlansModuleSelect; }; - commitEdge?: { - select: CommitEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface CreateRateLimitsModulePayload { +export interface UpdatePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was created by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; + /** The `PlansModule` that was updated by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type CreateRateLimitsModulePayloadSelect = { +export type UpdatePlansModulePayloadSelect = { clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; + plansModule?: { + select: PlansModuleSelect; }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; -export interface UpdateRateLimitsModulePayload { +export interface DeletePlansModulePayload { clientMutationId?: string | null; - /** The `RateLimitsModule` that was updated by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type UpdateRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface DeleteRateLimitsModulePayload { - clientMutationId?: string | null; - /** The `RateLimitsModule` that was deleted by this mutation. */ - rateLimitsModule?: RateLimitsModule | null; - rateLimitsModuleEdge?: RateLimitsModuleEdge | null; -} -export type DeleteRateLimitsModulePayloadSelect = { - clientMutationId?: boolean; - rateLimitsModule?: { - select: RateLimitsModuleSelect; - }; - rateLimitsModuleEdge?: { - select: RateLimitsModuleEdgeSelect; - }; -}; -export interface CreateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was created by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type CreateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface UpdateMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was updated by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; -} -export type UpdateMembershipTypePayloadSelect = { - clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; - }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; - }; -}; -export interface DeleteMembershipTypePayload { - clientMutationId?: string | null; - /** The `MembershipType` that was deleted by this mutation. */ - membershipType?: MembershipType | null; - membershipTypeEdge?: MembershipTypeEdge | null; + /** The `PlansModule` that was deleted by this mutation. */ + plansModule?: PlansModule | null; + plansModuleEdge?: PlansModuleEdge | null; } -export type DeleteMembershipTypePayloadSelect = { +export type DeletePlansModulePayloadSelect = { clientMutationId?: boolean; - membershipType?: { - select: MembershipTypeSelect; + plansModule?: { + select: PlansModuleSelect; }; - membershipTypeEdge?: { - select: MembershipTypeEdgeSelect; + plansModuleEdge?: { + select: PlansModuleEdgeSelect; }; }; export interface CreateRlsModulePayload { @@ -30763,49 +32732,60 @@ export type CreateSqlActionPayloadSelect = { select: SqlActionSelect; }; }; -export interface CreateOrgMembershipSettingPayload { +export interface CreateBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was created by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was created by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type CreateOrgMembershipSettingPayloadSelect = { +export type CreateBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface UpdateOrgMembershipSettingPayload { +export interface UpdateBillingModulePayload { + clientMutationId?: string | null; + /** The `BillingModule` that was updated by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; +} +export type UpdateBillingModulePayloadSelect = { + clientMutationId?: boolean; + billingModule?: { + select: BillingModuleSelect; + }; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; + }; +}; +export interface DeleteBillingModulePayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was updated by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `BillingModule` that was deleted by this mutation. */ + billingModule?: BillingModule | null; + billingModuleEdge?: BillingModuleEdge | null; } -export type UpdateOrgMembershipSettingPayloadSelect = { +export type DeleteBillingModulePayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; + billingModule?: { + select: BillingModuleSelect; }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + billingModuleEdge?: { + select: BillingModuleEdgeSelect; }; }; -export interface DeleteOrgMembershipSettingPayload { +export interface CreateAstMigrationPayload { clientMutationId?: string | null; - /** The `OrgMembershipSetting` that was deleted by this mutation. */ - orgMembershipSetting?: OrgMembershipSetting | null; - orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; + /** The `AstMigration` that was created by this mutation. */ + astMigration?: AstMigration | null; } -export type DeleteOrgMembershipSettingPayloadSelect = { +export type CreateAstMigrationPayloadSelect = { clientMutationId?: boolean; - orgMembershipSetting?: { - select: OrgMembershipSettingSelect; - }; - orgMembershipSettingEdge?: { - select: OrgMembershipSettingEdgeSelect; + astMigration?: { + select: AstMigrationSelect; }; }; export interface CreateUserPayload { @@ -30853,15 +32833,49 @@ export type DeleteUserPayloadSelect = { select: UserEdgeSelect; }; }; -export interface CreateAstMigrationPayload { +export interface CreateOrgMembershipSettingPayload { clientMutationId?: string | null; - /** The `AstMigration` that was created by this mutation. */ - astMigration?: AstMigration | null; + /** The `OrgMembershipSetting` that was created by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; } -export type CreateAstMigrationPayloadSelect = { +export type CreateOrgMembershipSettingPayloadSelect = { clientMutationId?: boolean; - astMigration?: { - select: AstMigrationSelect; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface UpdateOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was updated by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type UpdateOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; + }; +}; +export interface DeleteOrgMembershipSettingPayload { + clientMutationId?: string | null; + /** The `OrgMembershipSetting` that was deleted by this mutation. */ + orgMembershipSetting?: OrgMembershipSetting | null; + orgMembershipSettingEdge?: OrgMembershipSettingEdge | null; +} +export type DeleteOrgMembershipSettingPayloadSelect = { + clientMutationId?: boolean; + orgMembershipSetting?: { + select: OrgMembershipSettingSelect; + }; + orgMembershipSettingEdge?: { + select: OrgMembershipSettingEdgeSelect; }; }; export interface CreateAppMembershipPayload { @@ -30954,16 +32968,16 @@ export type DeleteHierarchyModulePayloadSelect = { select: HierarchyModuleEdgeSelect; }; }; -/** A `Object` edge in the connection. */ -export interface ObjectEdge { +/** A `AppPermission` edge in the connection. */ +export interface AppPermissionEdge { cursor?: string | null; - /** The `Object` at the end of the edge. */ - node?: Object | null; + /** The `AppPermission` at the end of the edge. */ + node?: AppPermission | null; } -export type ObjectEdgeSelect = { +export type AppPermissionEdgeSelect = { cursor?: boolean; node?: { - select: ObjectSelect; + select: AppPermissionSelect; }; }; /** Information about pagination in a connection. */ @@ -30983,18 +32997,6 @@ export type PageInfoSelect = { startCursor?: boolean; endCursor?: boolean; }; -/** A `AppPermission` edge in the connection. */ -export interface AppPermissionEdge { - cursor?: string | null; - /** The `AppPermission` at the end of the edge. */ - node?: AppPermission | null; -} -export type AppPermissionEdgeSelect = { - cursor?: boolean; - node?: { - select: AppPermissionSelect; - }; -}; /** A `OrgPermission` edge in the connection. */ export interface OrgPermissionEdge { cursor?: string | null; @@ -31007,6 +33009,18 @@ export type OrgPermissionEdgeSelect = { select: OrgPermissionSelect; }; }; +/** A `Object` edge in the connection. */ +export interface ObjectEdge { + cursor?: string | null; + /** The `Object` at the end of the edge. */ + node?: Object | null; +} +export type ObjectEdgeSelect = { + cursor?: boolean; + node?: { + select: ObjectSelect; + }; +}; /** A `AppLevelRequirement` edge in the connection. */ export interface AppLevelRequirementEdge { cursor?: string | null; @@ -32087,6 +34101,18 @@ export type OrgLimitEdgeSelect = { select: OrgLimitSelect; }; }; +/** A `OrgLimitAggregate` edge in the connection. */ +export interface OrgLimitAggregateEdge { + cursor?: string | null; + /** The `OrgLimitAggregate` at the end of the edge. */ + node?: OrgLimitAggregate | null; +} +export type OrgLimitAggregateEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitAggregateSelect; + }; +}; /** A `AppStep` edge in the connection. */ export interface AppStepEdge { cursor?: string | null; @@ -32231,40 +34257,40 @@ export type AuditLogEdgeSelect = { select: AuditLogSelect; }; }; -/** A `AppPermissionDefault` edge in the connection. */ -export interface AppPermissionDefaultEdge { +/** A `AgentThread` edge in the connection. */ +export interface AgentThreadEdge { cursor?: string | null; - /** The `AppPermissionDefault` at the end of the edge. */ - node?: AppPermissionDefault | null; + /** The `AgentThread` at the end of the edge. */ + node?: AgentThread | null; } -export type AppPermissionDefaultEdgeSelect = { +export type AgentThreadEdgeSelect = { cursor?: boolean; node?: { - select: AppPermissionDefaultSelect; + select: AgentThreadSelect; }; }; -/** A `Ref` edge in the connection. */ -export interface RefEdge { +/** A `AgentMessage` edge in the connection. */ +export interface AgentMessageEdge { cursor?: string | null; - /** The `Ref` at the end of the edge. */ - node?: Ref | null; + /** The `AgentMessage` at the end of the edge. */ + node?: AgentMessage | null; } -export type RefEdgeSelect = { +export type AgentMessageEdgeSelect = { cursor?: boolean; node?: { - select: RefSelect; + select: AgentMessageSelect; }; }; -/** A `Store` edge in the connection. */ -export interface StoreEdge { +/** A `AgentTask` edge in the connection. */ +export interface AgentTaskEdge { cursor?: string | null; - /** The `Store` at the end of the edge. */ - node?: Store | null; + /** The `AgentTask` at the end of the edge. */ + node?: AgentTask | null; } -export type StoreEdgeSelect = { +export type AgentTaskEdgeSelect = { cursor?: boolean; node?: { - select: StoreSelect; + select: AgentTaskSelect; }; }; /** A `RoleType` edge in the connection. */ @@ -32279,28 +34305,52 @@ export type RoleTypeEdgeSelect = { select: RoleTypeSelect; }; }; -/** A `AppLimitDefault` edge in the connection. */ -export interface AppLimitDefaultEdge { +/** A `Ref` edge in the connection. */ +export interface RefEdge { cursor?: string | null; - /** The `AppLimitDefault` at the end of the edge. */ - node?: AppLimitDefault | null; + /** The `Ref` at the end of the edge. */ + node?: Ref | null; } -export type AppLimitDefaultEdgeSelect = { +export type RefEdgeSelect = { cursor?: boolean; node?: { - select: AppLimitDefaultSelect; + select: RefSelect; }; }; -/** A `OrgLimitDefault` edge in the connection. */ -export interface OrgLimitDefaultEdge { +/** A `Store` edge in the connection. */ +export interface StoreEdge { cursor?: string | null; - /** The `OrgLimitDefault` at the end of the edge. */ - node?: OrgLimitDefault | null; + /** The `Store` at the end of the edge. */ + node?: Store | null; } -export type OrgLimitDefaultEdgeSelect = { +export type StoreEdgeSelect = { cursor?: boolean; node?: { - select: OrgLimitDefaultSelect; + select: StoreSelect; + }; +}; +/** A `AppPermissionDefault` edge in the connection. */ +export interface AppPermissionDefaultEdge { + cursor?: string | null; + /** The `AppPermissionDefault` at the end of the edge. */ + node?: AppPermissionDefault | null; +} +export type AppPermissionDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: AppPermissionDefaultSelect; + }; +}; +/** A `MembershipType` edge in the connection. */ +export interface MembershipTypeEdge { + cursor?: string | null; + /** The `MembershipType` at the end of the edge. */ + node?: MembershipType | null; +} +export type MembershipTypeEdgeSelect = { + cursor?: boolean; + node?: { + select: MembershipTypeSelect; }; }; /** A `DevicesModule` edge in the connection. */ @@ -32315,28 +34365,40 @@ export type DevicesModuleEdgeSelect = { select: DevicesModuleSelect; }; }; -/** A `AppMembershipDefault` edge in the connection. */ -export interface AppMembershipDefaultEdge { +/** A `NodeTypeRegistry` edge in the connection. */ +export interface NodeTypeRegistryEdge { cursor?: string | null; - /** The `AppMembershipDefault` at the end of the edge. */ - node?: AppMembershipDefault | null; + /** The `NodeTypeRegistry` at the end of the edge. */ + node?: NodeTypeRegistry | null; } -export type AppMembershipDefaultEdgeSelect = { +export type NodeTypeRegistryEdgeSelect = { cursor?: boolean; node?: { - select: AppMembershipDefaultSelect; + select: NodeTypeRegistrySelect; }; }; -/** A `OrgMembershipDefault` edge in the connection. */ -export interface OrgMembershipDefaultEdge { +/** A `AppLimitDefault` edge in the connection. */ +export interface AppLimitDefaultEdge { cursor?: string | null; - /** The `OrgMembershipDefault` at the end of the edge. */ - node?: OrgMembershipDefault | null; + /** The `AppLimitDefault` at the end of the edge. */ + node?: AppLimitDefault | null; } -export type OrgMembershipDefaultEdgeSelect = { +export type AppLimitDefaultEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipDefaultSelect; + select: AppLimitDefaultSelect; + }; +}; +/** A `OrgLimitDefault` edge in the connection. */ +export interface OrgLimitDefaultEdge { + cursor?: string | null; + /** The `OrgLimitDefault` at the end of the edge. */ + node?: OrgLimitDefault | null; +} +export type OrgLimitDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgLimitDefaultSelect; }; }; /** A `Commit` edge in the connection. */ @@ -32363,16 +34425,40 @@ export type RateLimitsModuleEdgeSelect = { select: RateLimitsModuleSelect; }; }; -/** A `MembershipType` edge in the connection. */ -export interface MembershipTypeEdge { +/** A `AppMembershipDefault` edge in the connection. */ +export interface AppMembershipDefaultEdge { cursor?: string | null; - /** The `MembershipType` at the end of the edge. */ - node?: MembershipType | null; + /** The `AppMembershipDefault` at the end of the edge. */ + node?: AppMembershipDefault | null; } -export type MembershipTypeEdgeSelect = { +export type AppMembershipDefaultEdgeSelect = { cursor?: boolean; node?: { - select: MembershipTypeSelect; + select: AppMembershipDefaultSelect; + }; +}; +/** A `OrgMembershipDefault` edge in the connection. */ +export interface OrgMembershipDefaultEdge { + cursor?: string | null; + /** The `OrgMembershipDefault` at the end of the edge. */ + node?: OrgMembershipDefault | null; +} +export type OrgMembershipDefaultEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipDefaultSelect; + }; +}; +/** A `PlansModule` edge in the connection. */ +export interface PlansModuleEdge { + cursor?: string | null; + /** The `PlansModule` at the end of the edge. */ + node?: PlansModule | null; +} +export type PlansModuleEdgeSelect = { + cursor?: boolean; + node?: { + select: PlansModuleSelect; }; }; /** A `RlsModule` edge in the connection. */ @@ -32387,16 +34473,16 @@ export type RlsModuleEdgeSelect = { select: RlsModuleSelect; }; }; -/** A `OrgMembershipSetting` edge in the connection. */ -export interface OrgMembershipSettingEdge { +/** A `BillingModule` edge in the connection. */ +export interface BillingModuleEdge { cursor?: string | null; - /** The `OrgMembershipSetting` at the end of the edge. */ - node?: OrgMembershipSetting | null; + /** The `BillingModule` at the end of the edge. */ + node?: BillingModule | null; } -export type OrgMembershipSettingEdgeSelect = { +export type BillingModuleEdgeSelect = { cursor?: boolean; node?: { - select: OrgMembershipSettingSelect; + select: BillingModuleSelect; }; }; /** A `User` edge in the connection. */ @@ -32411,6 +34497,18 @@ export type UserEdgeSelect = { select: UserSelect; }; }; +/** A `OrgMembershipSetting` edge in the connection. */ +export interface OrgMembershipSettingEdge { + cursor?: string | null; + /** The `OrgMembershipSetting` at the end of the edge. */ + node?: OrgMembershipSetting | null; +} +export type OrgMembershipSettingEdgeSelect = { + cursor?: boolean; + node?: { + select: OrgMembershipSettingSelect; + }; +}; /** A `AppMembership` edge in the connection. */ export interface AppMembershipEdge { cursor?: string | null; diff --git a/sdk/constructive-sdk/src/public/orm/models/agentMessage.ts b/sdk/constructive-sdk/src/public/orm/models/agentMessage.ts new file mode 100644 index 000000000..dd3434345 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/agentMessage.ts @@ -0,0 +1,237 @@ +/** + * AgentMessage model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentMessage, + AgentMessageWithRelations, + AgentMessageSelect, + AgentMessageFilter, + AgentMessageOrderBy, + CreateAgentMessageInput, + UpdateAgentMessageInput, + AgentMessagePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentMessageModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessages: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: args?.where, + }, + 'AgentMessageFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessages', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentMessage: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentMessage', + 'agentMessages', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentMessageFilter', + 'AgentMessageOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentMessage', + fieldName: 'agentMessage', + document, + variables, + transform: (data: { + agentMessages?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentMessage: data.agentMessages?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentMessage', + 'createAgentMessage', + 'agentMessage', + args.select, + args.data, + 'CreateAgentMessageInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'createAgentMessage', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentMessagePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentMessage', + 'updateAgentMessage', + 'agentMessage', + args.select, + args.where.id, + args.data, + 'UpdateAgentMessageInput', + 'id', + 'agentMessagePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'updateAgentMessage', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentMessage: { + agentMessage: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentMessage', + 'deleteAgentMessage', + 'agentMessage', + { + id: args.where.id, + }, + 'DeleteAgentMessageInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentMessage', + fieldName: 'deleteAgentMessage', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/agentTask.ts b/sdk/constructive-sdk/src/public/orm/models/agentTask.ts new file mode 100644 index 000000000..7f837b699 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/agentTask.ts @@ -0,0 +1,237 @@ +/** + * AgentTask model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentTask, + AgentTaskWithRelations, + AgentTaskSelect, + AgentTaskFilter, + AgentTaskOrderBy, + CreateAgentTaskInput, + UpdateAgentTaskInput, + AgentTaskPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentTaskModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTasks: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: args?.where, + }, + 'AgentTaskFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTasks', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentTask: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentTask', + 'agentTasks', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentTaskFilter', + 'AgentTaskOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentTask', + fieldName: 'agentTask', + document, + variables, + transform: (data: { + agentTasks?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentTask: data.agentTasks?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentTask', + 'createAgentTask', + 'agentTask', + args.select, + args.data, + 'CreateAgentTaskInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'createAgentTask', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentTaskPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentTask', + 'updateAgentTask', + 'agentTask', + args.select, + args.where.id, + args.data, + 'UpdateAgentTaskInput', + 'id', + 'agentTaskPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'updateAgentTask', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentTask: { + agentTask: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentTask', + 'deleteAgentTask', + 'agentTask', + { + id: args.where.id, + }, + 'DeleteAgentTaskInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentTask', + fieldName: 'deleteAgentTask', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/agentThread.ts b/sdk/constructive-sdk/src/public/orm/models/agentThread.ts new file mode 100644 index 000000000..beb795fd1 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/agentThread.ts @@ -0,0 +1,237 @@ +/** + * AgentThread model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AgentThread, + AgentThreadWithRelations, + AgentThreadSelect, + AgentThreadFilter, + AgentThreadOrderBy, + CreateAgentThreadInput, + UpdateAgentThreadInput, + AgentThreadPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AgentThreadModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThreads: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: args?.where, + }, + 'AgentThreadFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThreads', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + agentThread: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'AgentThread', + 'agentThreads', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'AgentThreadFilter', + 'AgentThreadOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AgentThread', + fieldName: 'agentThread', + document, + variables, + transform: (data: { + agentThreads?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + agentThread: data.agentThreads?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AgentThread', + 'createAgentThread', + 'agentThread', + args.select, + args.data, + 'CreateAgentThreadInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'createAgentThread', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + AgentThreadPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'AgentThread', + 'updateAgentThread', + 'agentThread', + args.select, + args.where.id, + args.data, + 'UpdateAgentThreadInput', + 'id', + 'agentThreadPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'updateAgentThread', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteAgentThread: { + agentThread: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'AgentThread', + 'deleteAgentThread', + 'agentThread', + { + id: args.where.id, + }, + 'DeleteAgentThreadInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AgentThread', + fieldName: 'deleteAgentThread', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts new file mode 100644 index 000000000..8f367e889 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/appLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * AppLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + AppLimitEvent, + AppLimitEventWithRelations, + AppLimitEventSelect, + AppLimitEventFilter, + AppLimitEventOrderBy, + CreateAppLimitEventInput, + UpdateAppLimitEventInput, + AppLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class AppLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'AppLimitEventFilter', + 'AppLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + appLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'AppLimitEvent', + 'appLimitEvents', + args.select, + { + where: args?.where, + }, + 'AppLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'AppLimitEvent', + fieldName: 'appLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createAppLimitEvent: { + appLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'AppLimitEvent', + 'createAppLimitEvent', + 'appLimitEvent', + args.select, + args.data, + 'CreateAppLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'AppLimitEvent', + fieldName: 'createAppLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/billingModule.ts b/sdk/constructive-sdk/src/public/orm/models/billingModule.ts new file mode 100644 index 000000000..73e7928ed --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/billingModule.ts @@ -0,0 +1,237 @@ +/** + * BillingModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + BillingModule, + BillingModuleWithRelations, + BillingModuleSelect, + BillingModuleFilter, + BillingModuleOrderBy, + CreateBillingModuleInput, + UpdateBillingModuleInput, + BillingModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class BillingModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: args?.where, + }, + 'BillingModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + billingModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'BillingModule', + 'billingModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'BillingModuleFilter', + 'BillingModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'BillingModule', + fieldName: 'billingModule', + document, + variables, + transform: (data: { + billingModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + billingModule: data.billingModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'BillingModule', + 'createBillingModule', + 'billingModule', + args.select, + args.data, + 'CreateBillingModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'createBillingModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + BillingModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'BillingModule', + 'updateBillingModule', + 'billingModule', + args.select, + args.where.id, + args.data, + 'UpdateBillingModuleInput', + 'id', + 'billingModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'updateBillingModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteBillingModule: { + billingModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'BillingModule', + 'deleteBillingModule', + 'billingModule', + { + id: args.where.id, + }, + 'DeleteBillingModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'BillingModule', + fieldName: 'deleteBillingModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/index.ts b/sdk/constructive-sdk/src/public/orm/models/index.ts index 960017329..aa7f94162 100644 --- a/sdk/constructive-sdk/src/public/orm/models/index.ts +++ b/sdk/constructive-sdk/src/public/orm/models/index.ts @@ -6,9 +6,9 @@ export { OrgGetManagersRecordModel } from './orgGetManagersRecord'; export { OrgGetSubordinatesRecordModel } from './orgGetSubordinatesRecord'; export { GetAllRecordModel } from './getAllRecord'; -export { ObjectModel } from './object'; export { AppPermissionModel } from './appPermission'; export { OrgPermissionModel } from './orgPermission'; +export { ObjectModel } from './object'; export { AppLevelRequirementModel } from './appLevelRequirement'; export { DatabaseModel } from './database'; export { SchemaModel } from './schema'; @@ -89,6 +89,7 @@ export { OrgChartEdgeGrantModel } from './orgChartEdgeGrant'; export { OrgPermissionDefaultModel } from './orgPermissionDefault'; export { AppLimitModel } from './appLimit'; export { OrgLimitModel } from './orgLimit'; +export { OrgLimitAggregateModel } from './orgLimitAggregate'; export { AppStepModel } from './appStep'; export { AppAchievementModel } from './appAchievement'; export { AppLevelModel } from './appLevel'; @@ -101,25 +102,33 @@ export { AppClaimedInviteModel } from './appClaimedInvite'; export { OrgInviteModel } from './orgInvite'; export { OrgClaimedInviteModel } from './orgClaimedInvite'; export { AuditLogModel } from './auditLog'; -export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { AgentThreadModel } from './agentThread'; +export { AgentMessageModel } from './agentMessage'; +export { AgentTaskModel } from './agentTask'; +export { RoleTypeModel } from './roleType'; export { IdentityProviderModel } from './identityProvider'; export { RefModel } from './ref'; export { StoreModel } from './store'; -export { RoleTypeModel } from './roleType'; +export { AppPermissionDefaultModel } from './appPermissionDefault'; +export { MembershipTypeModel } from './membershipType'; export { MigrateFileModel } from './migrateFile'; +export { DevicesModuleModel } from './devicesModule'; +export { NodeTypeRegistryModel } from './nodeTypeRegistry'; export { AppLimitDefaultModel } from './appLimitDefault'; export { OrgLimitDefaultModel } from './orgLimitDefault'; -export { DevicesModuleModel } from './devicesModule'; export { UserConnectedAccountModel } from './userConnectedAccount'; -export { AppMembershipDefaultModel } from './appMembershipDefault'; -export { OrgMembershipDefaultModel } from './orgMembershipDefault'; export { CommitModel } from './commit'; export { RateLimitsModuleModel } from './rateLimitsModule'; -export { MembershipTypeModel } from './membershipType'; +export { AppMembershipDefaultModel } from './appMembershipDefault'; +export { OrgMembershipDefaultModel } from './orgMembershipDefault'; +export { AppLimitEventModel } from './appLimitEvent'; +export { OrgLimitEventModel } from './orgLimitEvent'; +export { PlansModuleModel } from './plansModule'; export { RlsModuleModel } from './rlsModule'; export { SqlActionModel } from './sqlAction'; -export { OrgMembershipSettingModel } from './orgMembershipSetting'; -export { UserModel } from './user'; +export { BillingModuleModel } from './billingModule'; export { AstMigrationModel } from './astMigration'; +export { UserModel } from './user'; +export { OrgMembershipSettingModel } from './orgMembershipSetting'; export { AppMembershipModel } from './appMembership'; export { HierarchyModuleModel } from './hierarchyModule'; diff --git a/sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts b/sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts new file mode 100644 index 000000000..6e640c1c6 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/nodeTypeRegistry.ts @@ -0,0 +1,237 @@ +/** + * NodeTypeRegistry model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + NodeTypeRegistry, + NodeTypeRegistryWithRelations, + NodeTypeRegistrySelect, + NodeTypeRegistryFilter, + NodeTypeRegistryOrderBy, + CreateNodeTypeRegistryInput, + UpdateNodeTypeRegistryInput, + NodeTypeRegistryPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class NodeTypeRegistryModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistries: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: args?.where, + }, + 'NodeTypeRegistryFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistries', + document, + variables, + }); + } + findOne( + args: { + name: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + nodeTypeRegistry: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'NodeTypeRegistry', + 'nodeTypeRegistries', + args.select, + { + where: { + name: { + equalTo: args.name, + }, + }, + first: 1, + }, + 'NodeTypeRegistryFilter', + 'NodeTypeRegistryOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'NodeTypeRegistry', + fieldName: 'nodeTypeRegistry', + document, + variables, + transform: (data: { + nodeTypeRegistries?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + nodeTypeRegistry: data.nodeTypeRegistries?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'NodeTypeRegistry', + 'createNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.data, + 'CreateNodeTypeRegistryInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'createNodeTypeRegistry', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + name: string; + }, + NodeTypeRegistryPatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'NodeTypeRegistry', + 'updateNodeTypeRegistry', + 'nodeTypeRegistry', + args.select, + args.where.name, + args.data, + 'UpdateNodeTypeRegistryInput', + 'name', + 'nodeTypeRegistryPatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'updateNodeTypeRegistry', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + name: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteNodeTypeRegistry: { + nodeTypeRegistry: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'NodeTypeRegistry', + 'deleteNodeTypeRegistry', + 'nodeTypeRegistry', + { + name: args.where.name, + }, + 'DeleteNodeTypeRegistryInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'NodeTypeRegistry', + fieldName: 'deleteNodeTypeRegistry', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts new file mode 100644 index 000000000..daee50aee --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgLimitAggregate.ts @@ -0,0 +1,237 @@ +/** + * OrgLimitAggregate model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitAggregate, + OrgLimitAggregateWithRelations, + OrgLimitAggregateSelect, + OrgLimitAggregateFilter, + OrgLimitAggregateOrderBy, + CreateOrgLimitAggregateInput, + UpdateOrgLimitAggregateInput, + OrgLimitAggregatePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitAggregateModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregates: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: args?.where, + }, + 'OrgLimitAggregateFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregates', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitAggregate: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitAggregate', + 'orgLimitAggregates', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'OrgLimitAggregateFilter', + 'OrgLimitAggregateOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitAggregate', + fieldName: 'orgLimitAggregate', + document, + variables, + transform: (data: { + orgLimitAggregates?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + orgLimitAggregate: data.orgLimitAggregates?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitAggregate', + 'createOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.data, + 'CreateOrgLimitAggregateInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'createOrgLimitAggregate', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + OrgLimitAggregatePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updateOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'OrgLimitAggregate', + 'updateOrgLimitAggregate', + 'orgLimitAggregate', + args.select, + args.where.id, + args.data, + 'UpdateOrgLimitAggregateInput', + 'id', + 'orgLimitAggregatePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'updateOrgLimitAggregate', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deleteOrgLimitAggregate: { + orgLimitAggregate: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'OrgLimitAggregate', + 'deleteOrgLimitAggregate', + 'orgLimitAggregate', + { + id: args.where.id, + }, + 'DeleteOrgLimitAggregateInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitAggregate', + fieldName: 'deleteOrgLimitAggregate', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts new file mode 100644 index 000000000..6414ba0ed --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/orgLimitEvent.ts @@ -0,0 +1,127 @@ +/** + * OrgLimitEvent model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + OrgLimitEvent, + OrgLimitEventWithRelations, + OrgLimitEventSelect, + OrgLimitEventFilter, + OrgLimitEventOrderBy, + CreateOrgLimitEventInput, + UpdateOrgLimitEventInput, + OrgLimitEventPatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class OrgLimitEventModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'OrgLimitEventFilter', + 'OrgLimitEventOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + orgLimitEvents: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'OrgLimitEvent', + 'orgLimitEvents', + args.select, + { + where: args?.where, + }, + 'OrgLimitEventFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'OrgLimitEvent', + fieldName: 'orgLimitEvents', + document, + variables, + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createOrgLimitEvent: { + orgLimitEvent: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'OrgLimitEvent', + 'createOrgLimitEvent', + 'orgLimitEvent', + args.select, + args.data, + 'CreateOrgLimitEventInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'OrgLimitEvent', + fieldName: 'createOrgLimitEvent', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/models/plansModule.ts b/sdk/constructive-sdk/src/public/orm/models/plansModule.ts new file mode 100644 index 000000000..e310fa581 --- /dev/null +++ b/sdk/constructive-sdk/src/public/orm/models/plansModule.ts @@ -0,0 +1,237 @@ +/** + * PlansModule model for ORM client + * @generated by @constructive-io/graphql-codegen + * DO NOT EDIT - changes will be overwritten + */ +import { OrmClient } from '../client'; +import { + QueryBuilder, + buildFindManyDocument, + buildFindFirstDocument, + buildFindOneDocument, + buildCreateDocument, + buildUpdateByPkDocument, + buildDeleteByPkDocument, +} from '../query-builder'; +import type { + ConnectionResult, + FindManyArgs, + FindFirstArgs, + CreateArgs, + UpdateArgs, + DeleteArgs, + InferSelectResult, + StrictSelect, +} from '../select-types'; +import type { + PlansModule, + PlansModuleWithRelations, + PlansModuleSelect, + PlansModuleFilter, + PlansModuleOrderBy, + CreatePlansModuleInput, + UpdatePlansModuleInput, + PlansModulePatch, +} from '../input-types'; +import { connectionFieldsMap } from '../input-types'; +export class PlansModuleModel { + constructor(private client: OrmClient) {} + findMany( + args: FindManyArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: ConnectionResult>; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + orderBy: args?.orderBy as string[] | undefined, + first: args?.first, + last: args?.last, + after: args?.after, + before: args?.before, + offset: args?.offset, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findFirst( + args: FindFirstArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModules: { + nodes: InferSelectResult[]; + }; + }> { + const { document, variables } = buildFindFirstDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: args?.where, + }, + 'PlansModuleFilter', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModules', + document, + variables, + }); + } + findOne( + args: { + id: string; + select: S; + } & StrictSelect + ): QueryBuilder<{ + plansModule: InferSelectResult | null; + }> { + const { document, variables } = buildFindManyDocument( + 'PlansModule', + 'plansModules', + args.select, + { + where: { + id: { + equalTo: args.id, + }, + }, + first: 1, + }, + 'PlansModuleFilter', + 'PlansModuleOrderBy', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'query', + operationName: 'PlansModule', + fieldName: 'plansModule', + document, + variables, + transform: (data: { + plansModules?: { + nodes?: InferSelectResult[]; + }; + }) => ({ + plansModule: data.plansModules?.nodes?.[0] ?? null, + }), + }); + } + create( + args: CreateArgs & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + createPlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildCreateDocument( + 'PlansModule', + 'createPlansModule', + 'plansModule', + args.select, + args.data, + 'CreatePlansModuleInput', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'createPlansModule', + document, + variables, + }); + } + update( + args: UpdateArgs< + S, + { + id: string; + }, + PlansModulePatch + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + updatePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildUpdateByPkDocument( + 'PlansModule', + 'updatePlansModule', + 'plansModule', + args.select, + args.where.id, + args.data, + 'UpdatePlansModuleInput', + 'id', + 'plansModulePatch', + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'updatePlansModule', + document, + variables, + }); + } + delete( + args: DeleteArgs< + { + id: string; + }, + S + > & { + select: S; + } & StrictSelect + ): QueryBuilder<{ + deletePlansModule: { + plansModule: InferSelectResult; + }; + }> { + const { document, variables } = buildDeleteByPkDocument( + 'PlansModule', + 'deletePlansModule', + 'plansModule', + { + id: args.where.id, + }, + 'DeletePlansModuleInput', + args.select, + connectionFieldsMap + ); + return new QueryBuilder({ + client: this.client, + operation: 'mutation', + operationName: 'PlansModule', + fieldName: 'deletePlansModule', + document, + variables, + }); + } +} diff --git a/sdk/constructive-sdk/src/public/orm/mutation/index.ts b/sdk/constructive-sdk/src/public/orm/mutation/index.ts index ea6ba6a40..3ca6964aa 100644 --- a/sdk/constructive-sdk/src/public/orm/mutation/index.ts +++ b/sdk/constructive-sdk/src/public/orm/mutation/index.ts @@ -48,14 +48,13 @@ import type { CreateUserDatabaseInput, ExtendTokenExpiresInput, CreateApiKeyInput, + SendVerificationEmailInput, + ForgotPasswordInput, SignUpInput, RequestCrossOriginTokenInput, SignInInput, ProvisionTableInput, - SendVerificationEmailInput, - ForgotPasswordInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, SendAccountDeletionEmailPayload, SignOutPayload, @@ -98,14 +97,13 @@ import type { CreateUserDatabasePayload, ExtendTokenExpiresPayload, CreateApiKeyPayload, + SendVerificationEmailPayload, + ForgotPasswordPayload, SignUpPayload, RequestCrossOriginTokenPayload, SignInPayload, ProvisionTablePayload, - SendVerificationEmailPayload, - ForgotPasswordPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, SendAccountDeletionEmailPayloadSelect, SignOutPayloadSelect, @@ -148,14 +146,13 @@ import type { CreateUserDatabasePayloadSelect, ExtendTokenExpiresPayloadSelect, CreateApiKeyPayloadSelect, + SendVerificationEmailPayloadSelect, + ForgotPasswordPayloadSelect, SignUpPayloadSelect, RequestCrossOriginTokenPayloadSelect, SignInPayloadSelect, ProvisionTablePayloadSelect, - SendVerificationEmailPayloadSelect, - ForgotPasswordPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -329,6 +326,12 @@ export interface ExtendTokenExpiresVariables { export interface CreateApiKeyVariables { input: CreateApiKeyInput; } +export interface SendVerificationEmailVariables { + input: SendVerificationEmailInput; +} +export interface ForgotPasswordVariables { + input: ForgotPasswordInput; +} export interface SignUpVariables { input: SignUpInput; } @@ -345,12 +348,6 @@ export interface SignInVariables { export interface ProvisionTableVariables { input: ProvisionTableInput; } -export interface SendVerificationEmailVariables { - input: SendVerificationEmailInput; -} -export interface ForgotPasswordVariables { - input: ForgotPasswordInput; -} /** * Variables for requestUploadUrl * Request a presigned URL for uploading a file directly to S3. @@ -361,15 +358,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -1571,6 +1559,64 @@ export function createMutationOperations(client: OrmClient) { 'CreateApiKeyPayload' ), }), + sendVerificationEmail: ( + args: SendVerificationEmailVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + sendVerificationEmail: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'SendVerificationEmail', + fieldName: 'sendVerificationEmail', + ...buildCustomDocument( + 'mutation', + 'SendVerificationEmail', + 'sendVerificationEmail', + options.select, + args, + [ + { + name: 'input', + type: 'SendVerificationEmailInput!', + }, + ], + connectionFieldsMap, + 'SendVerificationEmailPayload' + ), + }), + forgotPassword: ( + args: ForgotPasswordVariables, + options: { + select: S; + } & StrictSelect + ) => + new QueryBuilder<{ + forgotPassword: InferSelectResult | null; + }>({ + client, + operation: 'mutation', + operationName: 'ForgotPassword', + fieldName: 'forgotPassword', + ...buildCustomDocument( + 'mutation', + 'ForgotPassword', + 'forgotPassword', + options.select, + args, + [ + { + name: 'input', + type: 'ForgotPasswordInput!', + }, + ], + connectionFieldsMap, + 'ForgotPasswordPayload' + ), + }), signUp: ( args: SignUpVariables, options: { @@ -1687,64 +1733,6 @@ export function createMutationOperations(client: OrmClient) { 'ProvisionTablePayload' ), }), - sendVerificationEmail: ( - args: SendVerificationEmailVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - sendVerificationEmail: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'SendVerificationEmail', - fieldName: 'sendVerificationEmail', - ...buildCustomDocument( - 'mutation', - 'SendVerificationEmail', - 'sendVerificationEmail', - options.select, - args, - [ - { - name: 'input', - type: 'SendVerificationEmailInput!', - }, - ], - connectionFieldsMap, - 'SendVerificationEmailPayload' - ), - }), - forgotPassword: ( - args: ForgotPasswordVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - forgotPassword: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ForgotPassword', - fieldName: 'forgotPassword', - ...buildCustomDocument( - 'mutation', - 'ForgotPassword', - 'forgotPassword', - options.select, - args, - [ - { - name: 'input', - type: 'ForgotPasswordInput!', - }, - ], - connectionFieldsMap, - 'ForgotPasswordPayload' - ), - }), requestUploadUrl: ( args: RequestUploadUrlVariables, options: { @@ -1774,35 +1762,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: { diff --git a/sdk/constructive-sdk/src/public/orm/query/index.ts b/sdk/constructive-sdk/src/public/orm/query/index.ts index d79ab541d..ffbd13b23 100644 --- a/sdk/constructive-sdk/src/public/orm/query/index.ts +++ b/sdk/constructive-sdk/src/public/orm/query/index.ts @@ -11,9 +11,9 @@ import type { User, ObjectSelect, UserSelect, - ObjectConnection, AppPermissionConnection, OrgPermissionConnection, + ObjectConnection, AppLevelRequirementConnection, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -73,9 +73,8 @@ export interface AppPermissionsGetMaskByNamesVariables { export interface OrgPermissionsGetMaskByNamesVariables { names?: string[]; } -export interface GetAllObjectsFromRootVariables { - databaseId?: string; - id?: string; +export interface AppPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -86,10 +85,8 @@ export interface GetAllObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetPathObjectsFromRootVariables { - databaseId?: string; - id?: string; - path?: string[]; +export interface OrgPermissionsGetByMaskVariables { + mask?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -100,14 +97,9 @@ export interface GetPathObjectsFromRootVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface GetObjectAtPathVariables { - dbId?: string; - storeId?: string; - path?: string[]; - refname?: string; -} -export interface AppPermissionsGetByMaskVariables { - mask?: string; +export interface GetAllObjectsFromRootVariables { + databaseId?: string; + id?: string; /** Only read the first `n` values of the set. */ first?: number; /** @@ -118,8 +110,10 @@ export interface AppPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } -export interface OrgPermissionsGetByMaskVariables { - mask?: string; +export interface GetPathObjectsFromRootVariables { + databaseId?: string; + id?: string; + path?: string[]; /** Only read the first `n` values of the set. */ first?: number; /** @@ -130,6 +124,12 @@ export interface OrgPermissionsGetByMaskVariables { /** Read all values in the set after (below) this cursor. */ after?: string; } +export interface GetObjectAtPathVariables { + dbId?: string; + storeId?: string; + path?: string[]; + refname?: string; +} export interface StepsRequiredVariables { level?: string; roleId?: string; @@ -598,33 +598,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getAllObjectsFromRoot: ( - args: GetAllObjectsFromRootVariables, + appPermissionsGetByMask: ( + args: AppPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getAllObjectsFromRoot: ObjectConnection | null; + appPermissionsGetByMask: AppPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetAllObjectsFromRoot', - fieldName: 'getAllObjectsFromRoot', + operationName: 'AppPermissionsGetByMask', + fieldName: 'appPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetAllObjectsFromRoot', - 'getAllObjectsFromRoot', + 'AppPermissionsGetByMask', + 'appPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -643,37 +639,29 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getPathObjectsFromRoot: ( - args: GetPathObjectsFromRootVariables, + orgPermissionsGetByMask: ( + args: OrgPermissionsGetByMaskVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - getPathObjectsFromRoot: ObjectConnection | null; + orgPermissionsGetByMask: OrgPermissionConnection | null; }>({ client, operation: 'query', - operationName: 'GetPathObjectsFromRoot', - fieldName: 'getPathObjectsFromRoot', + operationName: 'OrgPermissionsGetByMask', + fieldName: 'orgPermissionsGetByMask', ...buildCustomDocument( 'query', - 'GetPathObjectsFromRoot', - 'getPathObjectsFromRoot', + 'OrgPermissionsGetByMask', + 'orgPermissionsGetByMask', options?.select, args, [ { - name: 'databaseId', - type: 'UUID', - }, - { - name: 'id', - type: 'UUID', - }, - { - name: 'path', - type: '[String]', + name: 'mask', + type: 'BitString', }, { name: 'first', @@ -692,70 +680,82 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - getObjectAtPath: ( - args: GetObjectAtPathVariables, - options: { - select: S; - } & StrictSelect + getAllObjectsFromRoot: ( + args: GetAllObjectsFromRootVariables, + options?: { + select?: Record; + } ) => new QueryBuilder<{ - getObjectAtPath: InferSelectResult | null; + getAllObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'GetObjectAtPath', - fieldName: 'getObjectAtPath', + operationName: 'GetAllObjectsFromRoot', + fieldName: 'getAllObjectsFromRoot', ...buildCustomDocument( 'query', - 'GetObjectAtPath', - 'getObjectAtPath', - options.select, + 'GetAllObjectsFromRoot', + 'getAllObjectsFromRoot', + options?.select, args, [ { - name: 'dbId', + name: 'databaseId', type: 'UUID', }, { - name: 'storeId', + name: 'id', type: 'UUID', }, { - name: 'path', - type: '[String]', + name: 'first', + type: 'Int', }, { - name: 'refname', - type: 'String', + name: 'offset', + type: 'Int', + }, + { + name: 'after', + type: 'Cursor', }, ], connectionFieldsMap, - 'Object' + undefined ), }), - appPermissionsGetByMask: ( - args: AppPermissionsGetByMaskVariables, + getPathObjectsFromRoot: ( + args: GetPathObjectsFromRootVariables, options?: { select?: Record; } ) => new QueryBuilder<{ - appPermissionsGetByMask: AppPermissionConnection | null; + getPathObjectsFromRoot: ObjectConnection | null; }>({ client, operation: 'query', - operationName: 'AppPermissionsGetByMask', - fieldName: 'appPermissionsGetByMask', + operationName: 'GetPathObjectsFromRoot', + fieldName: 'getPathObjectsFromRoot', ...buildCustomDocument( 'query', - 'AppPermissionsGetByMask', - 'appPermissionsGetByMask', + 'GetPathObjectsFromRoot', + 'getPathObjectsFromRoot', options?.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'databaseId', + type: 'UUID', + }, + { + name: 'id', + type: 'UUID', + }, + { + name: 'path', + type: '[String]', }, { name: 'first', @@ -774,45 +774,45 @@ export function createQueryOperations(client: OrmClient) { undefined ), }), - orgPermissionsGetByMask: ( - args: OrgPermissionsGetByMaskVariables, - options?: { - select?: Record; - } + getObjectAtPath: ( + args: GetObjectAtPathVariables, + options: { + select: S; + } & StrictSelect ) => new QueryBuilder<{ - orgPermissionsGetByMask: OrgPermissionConnection | null; + getObjectAtPath: InferSelectResult | null; }>({ client, operation: 'query', - operationName: 'OrgPermissionsGetByMask', - fieldName: 'orgPermissionsGetByMask', + operationName: 'GetObjectAtPath', + fieldName: 'getObjectAtPath', ...buildCustomDocument( 'query', - 'OrgPermissionsGetByMask', - 'orgPermissionsGetByMask', - options?.select, + 'GetObjectAtPath', + 'getObjectAtPath', + options.select, args, [ { - name: 'mask', - type: 'BitString', + name: 'dbId', + type: 'UUID', }, { - name: 'first', - type: 'Int', + name: 'storeId', + type: 'UUID', }, { - name: 'offset', - type: 'Int', + name: 'path', + type: '[String]', }, { - name: 'after', - type: 'Cursor', + name: 'refname', + type: 'String', }, ], connectionFieldsMap, - undefined + 'Object' ), }), stepsRequired: ( diff --git a/sdk/migrate-client/schemas/migrate.graphql b/sdk/migrate-client/schemas/migrate.graphql index 6f8ca5cfa..d394b8b16 100644 --- a/sdk/migrate-client/schemas/migrate.graphql +++ b/sdk/migrate-client/schemas/migrate.graphql @@ -1118,27 +1118,6 @@ type RequestUploadUrlPayload { """Presigned URL expiry time (null if deduplicated)""" expiresAt: Datetime - - """ - File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. - """ - status: String! -} - -input ConfirmUploadInput { - """The file ID returned by requestUploadUrl""" - fileId: UUID! -} - -type ConfirmUploadPayload { - """The confirmed file ID""" - fileId: UUID! - - """New file status""" - status: String! - - """Whether confirmation succeeded""" - success: Boolean! } """The root query type which gives access points into the data universe.""" @@ -1285,18 +1264,6 @@ type Mutation { input: RequestUploadUrlInput! ): RequestUploadUrlPayload - """ - Confirm that a file has been uploaded to S3. - Verifies the object exists in S3, checks content-type, - and transitions the file status from 'pending' to 'ready'. - """ - confirmUpload( - """ - The exclusive input argument for this mutation. An object type, make sure to see documentation for this object’s fields. - """ - input: ConfirmUploadInput! - ): ConfirmUploadPayload - """ Provision an S3 bucket for a logical bucket in the database. Reads the bucket config via RLS, then creates and configures diff --git a/sdk/migrate-client/src/migrate/README.md b/sdk/migrate-client/src/migrate/README.md index f00382b5a..59fc419ab 100644 --- a/sdk/migrate-client/src/migrate/README.md +++ b/sdk/migrate-client/src/migrate/README.md @@ -10,7 +10,7 @@ - **Tables:** 2 - **Custom queries:** 0 -- **Custom mutations:** 5 +- **Custom mutations:** 4 **Generators:** ORM diff --git a/sdk/migrate-client/src/migrate/orm/README.md b/sdk/migrate-client/src/migrate/orm/README.md index 4f28fbc1b..0a66a792b 100644 --- a/sdk/migrate-client/src/migrate/orm/README.md +++ b/sdk/migrate-client/src/migrate/orm/README.md @@ -148,23 +148,6 @@ existing file ID and deduplicated=true with no uploadUrl. const result = await db.mutation.requestUploadUrl({ input: '' }).execute(); ``` -### `db.mutation.confirmUpload` - -Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - -- **Type:** mutation -- **Arguments:** - - | Argument | Type | - |----------|------| - | `input` | ConfirmUploadInput (required) | - -```typescript -const result = await db.mutation.confirmUpload({ input: { fileId: '' } }).execute(); -``` - ### `db.mutation.provisionBucket` Provision an S3 bucket for a logical bucket in the database. diff --git a/sdk/migrate-client/src/migrate/orm/input-types.ts b/sdk/migrate-client/src/migrate/orm/input-types.ts index 35fc08ebf..e3250de1f 100644 --- a/sdk/migrate-client/src/migrate/orm/input-types.ts +++ b/sdk/migrate-client/src/migrate/orm/input-types.ts @@ -472,10 +472,6 @@ export interface RequestUploadUrlInput { /** Original filename (optional, for display and Content-Disposition) */ filename?: string; } -export interface ConfirmUploadInput { - /** The file ID returned by requestUploadUrl */ - fileId: string; -} export interface ProvisionBucketInput { /** The logical bucket key (e.g., "public", "private") */ bucketKey: string; @@ -544,8 +540,6 @@ export interface RequestUploadUrlPayload { deduplicated: boolean; /** Presigned URL expiry time (null if deduplicated) */ expiresAt?: string | null; - /** File status — 'pending' for fresh uploads, 'ready' or 'processed' for deduplicated files. Clients can use this to know immediately whether the file is usable. */ - status: string; } export type RequestUploadUrlPayloadSelect = { uploadUrl?: boolean; @@ -553,20 +547,6 @@ export type RequestUploadUrlPayloadSelect = { key?: boolean; deduplicated?: boolean; expiresAt?: boolean; - status?: boolean; -}; -export interface ConfirmUploadPayload { - /** The confirmed file ID */ - fileId: string; - /** New file status */ - status: string; - /** Whether confirmation succeeded */ - success: boolean; -} -export type ConfirmUploadPayloadSelect = { - fileId?: boolean; - status?: boolean; - success?: boolean; }; export interface ProvisionBucketPayload { /** Whether provisioning succeeded */ diff --git a/sdk/migrate-client/src/migrate/orm/mutation/index.ts b/sdk/migrate-client/src/migrate/orm/mutation/index.ts index c5bde9330..0ebaa3cbf 100644 --- a/sdk/migrate-client/src/migrate/orm/mutation/index.ts +++ b/sdk/migrate-client/src/migrate/orm/mutation/index.ts @@ -10,17 +10,14 @@ import type { ExecuteSqlInput, RunMigrationInput, RequestUploadUrlInput, - ConfirmUploadInput, ProvisionBucketInput, ExecuteSqlPayload, RunMigrationPayload, RequestUploadUrlPayload, - ConfirmUploadPayload, ProvisionBucketPayload, ExecuteSqlPayloadSelect, RunMigrationPayloadSelect, RequestUploadUrlPayloadSelect, - ConfirmUploadPayloadSelect, ProvisionBucketPayloadSelect, } from '../input-types'; import { connectionFieldsMap } from '../input-types'; @@ -40,15 +37,6 @@ existing file ID and deduplicated=true with no uploadUrl. export interface RequestUploadUrlVariables { input: RequestUploadUrlInput; } -/** - * Variables for confirmUpload - * Confirm that a file has been uploaded to S3. -Verifies the object exists in S3, checks content-type, -and transitions the file status from 'pending' to 'ready'. - */ -export interface ConfirmUploadVariables { - input: ConfirmUploadInput; -} /** * Variables for provisionBucket * Provision an S3 bucket for a logical bucket in the database. @@ -148,35 +136,6 @@ export function createMutationOperations(client: OrmClient) { 'RequestUploadUrlPayload' ), }), - confirmUpload: ( - args: ConfirmUploadVariables, - options: { - select: S; - } & StrictSelect - ) => - new QueryBuilder<{ - confirmUpload: InferSelectResult | null; - }>({ - client, - operation: 'mutation', - operationName: 'ConfirmUpload', - fieldName: 'confirmUpload', - ...buildCustomDocument( - 'mutation', - 'ConfirmUpload', - 'confirmUpload', - options.select, - args, - [ - { - name: 'input', - type: 'ConfirmUploadInput!', - }, - ], - connectionFieldsMap, - 'ConfirmUploadPayload' - ), - }), provisionBucket: ( args: ProvisionBucketVariables, options: {